3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Wallet template: use Aqua style on MacOS.

The indeterminate progress bar is a bit buggy in this version but the rest looks correct (for Mountain Lion).
This commit is contained in:
Mike Hearn 2013-09-22 15:01:40 +02:00
parent 6fa719df2a
commit a59e9d4073
2 changed files with 9 additions and 0 deletions

View File

@ -39,5 +39,10 @@
<artifactId>guava</artifactId>
<version>13.0</version>
</dependency>
<dependency>
<groupId>com.aquafx-project</groupId>
<artifactId>aquafx</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,5 +1,6 @@
package wallettemplate;
import com.aquafx_project.AquaFx;
import com.google.bitcoin.core.NetworkParameters;
import com.google.bitcoin.kits.WalletAppKit;
import com.google.bitcoin.params.MainNetParams;
@ -50,6 +51,9 @@ public class Main extends Application {
}
private void init(Stage mainWindow) throws IOException {
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
AquaFx.style();
}
// Load the GUI. The Controller class will be automagically created and wired up.
URL location = getClass().getResource("main.fxml");
FXMLLoader loader = new FXMLLoader(location);