Skip to content

Commit

Permalink
mac native LAF doesnt work properly with automatic preview. turning i…
Browse files Browse the repository at this point in the history
…t back off
  • Loading branch information
ASneakyFox committed Dec 11, 2014
1 parent b585706 commit b29f235
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions desktop/src/asf/modelpreview/desktop/DesktopLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,15 @@ public void run() {
}
});

boolean isMac = System.getProperty("os.name").toLowerCase().contains("mac");
if(!isMac){
try {
for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
try {
for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
} catch (Exception e) {
// If Nimbus is not available, you can set the GUI to another look and feel.
}
} catch (Exception e) {
// If Nimbus is not available, you can set the GUI to another look and feel.
}


Expand Down

0 comments on commit b29f235

Please sign in to comment.