Launcher GUI Help

    Joined
    Aug 25, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen
    Hello, my name is Noah. I am 11 years old and I program in java, html, and css. Anyway, I have noticed that the launcher for starmade is the default GUI of the JButton and JScrollPane objects. Well I am here to show you how to fix this so it detects which OS someone has then makes that the GUI of the objects. Fortunently this is already in the Java liabraries, so we don't have to make this ourself. all you have to do is go into the main method, and add this: public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
    e.printStackTrace();
    }


    }


    And it should work! Hope I helped!