GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
mark.george
/
jrex
Browse code
Formatting
master
1 parent
f0d729d
commit
67f3c0eeab1dfaa739a352e3caaeea376578c4dc
Mark George
authored
on 5 Aug 2020
Patch
Showing
1 changed file
src/main/java/JRex.java
Ignore Space
Show notes
View
src/main/java/JRex.java
import com.formdev.flatlaf.FlatDarkLaf; import com.formdev.flatlaf.FlatLightLaf; import javax.swing.UIManager; import jrex.ui.MainFrame; /** * Main class. * * @author Mark George <mark.george@otago.ac.nz> */ public class JRex { public static void main(String args[]) throws Exception { if (args.length > 0 && "dark".equalsIgnoreCase(args[0])) { UIManager.setLookAndFeel(new FlatDarkLaf()); } else { UIManager.setLookAndFeel(new FlatLightLaf()); } java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { MainFrame frame = new MainFrame(); frame.setLocationRelativeTo(null); frame.setVisible(true); } }); } }
import com.formdev.flatlaf.FlatDarkLaf; import com.formdev.flatlaf.FlatLightLaf; import javax.swing.UIManager; import jrex.ui.MainFrame; /* */ /** * Main class. * * @author Mark George <mark.george@otago.ac.nz> */ public class JRex { public static void main(String args[]) throws Exception { if (args.length > 0 && "dark".equalsIgnoreCase(args[0])) { UIManager.setLookAndFeel(new FlatDarkLaf()); } else { UIManager.setLookAndFeel(new FlatLightLaf()); } java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { MainFrame frame = new MainFrame(); frame.setLocationRelativeTo(null); frame.setVisible(true); } }); } }
Show line notes below