Skip to content

Commit

Permalink
ExplorerTool: switch L&F to FlatLAF
Browse files Browse the repository at this point in the history
  • Loading branch information
basix-86 committed Nov 18, 2024
1 parent 31ba0f0 commit f1cb24b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 6 additions & 0 deletions oak-run/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,12 @@
<artifactId>joda-time</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>3.5.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.j2html</groupId>
<artifactId>j2html</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,9 @@ public class Explorer {

private static void initLF() {
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.
UIManager.setLookAndFeel("com.formdev.flatlaf.FlatLightLaf");
} catch (Exception ex) {
System.err.println("Failed to initialize LaF");
}
}

Expand Down

0 comments on commit f1cb24b

Please sign in to comment.