|
|
@@ -10,8 +10,16 @@ import javax.swing.UnsupportedLookAndFeelException;
|
|
|
public class Main {
|
|
|
|
|
|
public static void main(String[] args){
|
|
|
- //sets the systems look and feels
|
|
|
- try{
|
|
|
+
|
|
|
+ //sets the systems look and feels
|
|
|
+
|
|
|
+ //osx
|
|
|
+ if(System.getProperties().getProperty("os.name").equals("Mac OS X")) {
|
|
|
+ System.setProperty("apple.laf.useScreenMenuBar", "true");
|
|
|
+ System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Test");
|
|
|
+ }
|
|
|
+
|
|
|
+ try{
|
|
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
|
|
}catch(ClassNotFoundException | InstantiationException| IllegalAccessException | UnsupportedLookAndFeelException e) {
|
|
|
e.printStackTrace();
|