Skip to content

Commit

Permalink
Merge pull request #11 from jasmineRepo/dev-ui-formatting
Browse files Browse the repository at this point in the history
update gui
  • Loading branch information
pbronka authored Feb 4, 2023
2 parents ff86c24 + de38044 commit 4df52ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion microsim-gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@
<artifactId>JAS-mine-core</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>3.0</version>
</dependency>

</dependencies>
</dependencies>

<repositories>
<repository>
Expand Down
2 changes: 1 addition & 1 deletion microsim-gui/src/main/java/Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ public class Start {

public static void main(String[] args) {
// TODO Auto-generated method stub

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import javax.swing.UIManager;
import javax.swing.filechooser.FileSystemView;

import com.formdev.flatlaf.FlatLightLaf;

import microsim.engine.EngineListener;
import microsim.engine.SimulationEngine;
import microsim.engine.SimulationManager;
Expand Down Expand Up @@ -210,7 +212,8 @@ public void windowClosing(java.awt.event.WindowEvent e) {
try {
UIManager//.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
//.setLookAndFeel("com.jgoodies.looks.windows.WindowsLookAndFeel");
.setLookAndFeel("net.infonode.gui.laf.InfoNodeLookAndFeel");
//.setLookAndFeel("net.infonode.gui.laf.InfoNodeLookAndFeel");
.setLookAndFeel( new FlatLightLaf() );
SwingUtilities.updateComponentTreeUI(this);
} catch (Exception e) {
System.out.println("Error loading L&F " + e);
Expand Down

0 comments on commit 4df52ac

Please sign in to comment.