src/main/java/net/glasslauncher/legacy/OptionsWindow.java
private JPanel makeInstSettings() {
        JPanel instsettings = new JPanel();
        instsettings.setOpaque(false);
        instsettings.setLayout(null);

        JLabelFancy javaargslabel = new JLabelFancy("Java Arguments:");
        javaargslabel.setBounds(20, 22, 100, 20);
        instsettings.add(javaargslabel);

        javaargs = new JTextFieldFancy("Java Arguments");
        javaargs.setBounds(150, 20, 400, 24);
        javaargs.setText(instanceConfig.getJavaArgs());
        instsettings.add(javaargs);

        JLabelFancy ramalloclabel = new JLabelFancy("RAM Allocation:");
        ramalloclabel.setBounds(20, 50, 100, 20);
        instsettings.add(ramalloclabel);

        JLabelFancy maxramlabel = new JLabelFancy("Maximum:");
        maxramlabel.setBounds(150, 50, 65, 20);
        instsettings.add(maxramlabel);

        maxram = new JTextFieldFancy("Maximum RAM");
        maxram.setBounds(245, 48, 100, 24);
        maxram.setText(instanceConfig.getMaxRam());
        instsettings.add(maxram);

        JLabelFancy minramlabel = new JLabelFancy("Minimum:");
        minramlabel.setBounds(360, 50, 65, 20);
        instsettings.add(minramlabel);

        minram = new JTextFieldFancy("Minimum RAM");
        minram.setBounds(450, 48, 100, 24);
        minram.setText(instanceConfig.getMinRam());
        instsettings.add(minram);

        JLabelFancy skinproxylabel = new JLabelFancy("Enable Skin Proxy:");
        skinproxylabel.setBounds(20, 96, 120, 20);
        instsettings.add(skinproxylabel);

        skinproxy = new JCheckBox();
        skinproxy.setOpaque(false);
        skinproxy.setBounds(150, 97, 20, 20);
        skinproxy.setSelected(instanceConfig.isProxySkin());
        instsettings.add(skinproxy);

        JLabelFancy capeproxylabel = new JLabelFancy("Enable Cape Proxy:");
        capeproxylabel.setBounds(20, 124, 120, 20);
        instsettings.add(capeproxylabel);

        capeproxy = new JCheckBox();
        capeproxy.setOpaque(false);
        capeproxy.setBounds(150, 125, 20, 20);
        capeproxy.setSelected(instanceConfig.isProxyCape());
        instsettings.add(capeproxy);

        JLabelFancy soundproxylabel = new JLabelFancy("Enable Sound Proxy:");
        soundproxylabel.setBounds(20, 152, 120, 20);
        instsettings.add(soundproxylabel);

        soundproxy = new JCheckBox();
        soundproxy.setOpaque(false);
        soundproxy.setBounds(150, 153, 20, 20);
        soundproxy.setSelected(instanceConfig.isProxySound());
        instsettings.add(soundproxy);

        JLabelFancy loginproxylabel = new JLabelFancy("Enable Login Proxy:");
        loginproxylabel.setBounds(20, 180, 120, 20);
        instsettings.add(loginproxylabel);

        loginproxy = new JCheckBox();
        loginproxy.setOpaque(false);
        loginproxy.setBounds(150, 181, 20, 20);
        loginproxy.setSelected(instanceConfig.isProxyLogin());
        instsettings.add(loginproxy);

        JLabelFancy disableIntermediaryLabel = new JLabelFancy("Disable Intermediary (Can break jar mods if off):");
        disableIntermediaryLabel.setBounds(20, 208, 250, 20);
        instsettings.add(disableIntermediaryLabel);

        disableIntermediary = new JCheckBox();
        disableIntermediary.setOpaque(false);
        disableIntermediary.setBounds(280, 209, 20, 20);
        disableIntermediary.setSelected(instanceConfig.isDisableIntermediary());
        instsettings.add(disableIntermediary);

        JLabelFancy instanceVersionLabel = new JLabelFancy("Minecraft Version:");
        instanceVersionLabel.setBounds(20, 372, 120, 20);
        instsettings.add(instanceVersionLabel);

        instanceVersion = new JComboBox<>();
        for (String version : Config.getMcVersions().getClient().keySet()) {
            instanceVersion.addItem(version);
        }
        instanceVersion.addItem("none");
        instanceVersion.setSelectedItem(instanceConfig.getVersion());
        instanceVersion.setBounds(150, 370, 194, 22);
        instsettings.add(instanceVersion);

        return instsettings;
    }
/**
     * Makes the things that do the thing for the instance JSON.
     *
     * @return The panel object containing all created components.
     */
Makes the things that do the thing for the instance JSON.
@return The panel object containing all created components.
Makes the things that do the thing for the instance JSON . @return The panel object containing all created components .
private JPanel makeInstSettings() {
        JPanel instsettings = new JPanel();
        instsettings.setOpaque(false);
        instsettings.setLayout(null);
        JLabelFancy javaargslabel = new JLabelFancy("Java Arguments:");
        javaargslabel.setBounds(20, 22, 100, 20);
        instsettings.add(javaargslabel);
        javaargs = new JTextFieldFancy("Java Arguments");
        javaargs.setBounds(150, 20, 400, 24);
        javaargs.setText(instanceConfig.getJavaArgs());
        instsettings.add(javaargs);
        JLabelFancy ramalloclabel = new JLabelFancy("RAM Allocation:");
        ramalloclabel.setBounds(20, 50, 100, 20);
        instsettings.add(ramalloclabel);
        JLabelFancy maxramlabel = new JLabelFancy("Maximum:");
        maxramlabel.setBounds(150, 50, 65, 20);
        instsettings.add(maxramlabel);
        maxram = new JTextFieldFancy("Maximum RAM");
        maxram.setBounds(245, 48, 100, 24);
        maxram.setText(instanceConfig.getMaxRam());
        instsettings.add(maxram);
        JLabelFancy minramlabel = new JLabelFancy("Minimum:");
        minramlabel.setBounds(360, 50, 65, 20);
        instsettings.add(minramlabel);
        minram = new JTextFieldFancy("Minimum RAM");
        minram.setBounds(450, 48, 100, 24);
        minram.setText(instanceConfig.getMinRam());
        instsettings.add(minram);
        JLabelFancy skinproxylabel = new JLabelFancy("Enable Skin Proxy:");
        skinproxylabel.setBounds(20, 96, 120, 20);
        instsettings.add(skinproxylabel);
        skinproxy = new JCheckBox();
        skinproxy.setOpaque(false);
        skinproxy.setBounds(150, 97, 20, 20);
        skinproxy.setSelected(instanceConfig.isProxySkin());
        instsettings.add(skinproxy);
        JLabelFancy capeproxylabel = new JLabelFancy("Enable Cape Proxy:");
        capeproxylabel.setBounds(20, 124, 120, 20);
        instsettings.add(capeproxylabel);
        capeproxy = new JCheckBox();
        capeproxy.setOpaque(false);
        capeproxy.setBounds(150, 125, 20, 20);
        capeproxy.setSelected(instanceConfig.isProxyCape());
        instsettings.add(capeproxy);
        JLabelFancy soundproxylabel = new JLabelFancy("Enable Sound Proxy:");
        soundproxylabel.setBounds(20, 152, 120, 20);
        instsettings.add(soundproxylabel);
        soundproxy = new JCheckBox();
        soundproxy.setOpaque(false);
        soundproxy.setBounds(150, 153, 20, 20);
        soundproxy.setSelected(instanceConfig.isProxySound());
        instsettings.add(soundproxy);
        JLabelFancy loginproxylabel = new JLabelFancy("Enable Login Proxy:");
        loginproxylabel.setBounds(20, 180, 120, 20);
        instsettings.add(loginproxylabel);
        loginproxy = new JCheckBox();
        loginproxy.setOpaque(false);
        loginproxy.setBounds(150, 181, 20, 20);
        loginproxy.setSelected(instanceConfig.isProxyLogin());
        instsettings.add(loginproxy);
        JLabelFancy disableIntermediaryLabel = new JLabelFancy("Disable Intermediary (Can break jar mods if off):");
        disableIntermediaryLabel.setBounds(20, 208, 250, 20);
        instsettings.add(disableIntermediaryLabel);
        disableIntermediary = new JCheckBox();
        disableIntermediary.setOpaque(false);
        disableIntermediary.setBounds(280, 209, 20, 20);
        disableIntermediary.setSelected(instanceConfig.isDisableIntermediary());
        instsettings.add(disableIntermediary);
        JLabelFancy instanceVersionLabel = new JLabelFancy("Minecraft Version:");
        instanceVersionLabel.setBounds(20, 372, 120, 20);
        instsettings.add(instanceVersionLabel);
        instanceVersion = new JComboBox<>();
        for (String version : Config.getMcVersions().getClient().keySet()) {
            instanceVersion.addItem(version);
        }
        instanceVersion.addItem("none");
        instanceVersion.setSelectedItem(instanceConfig.getVersion());
        instanceVersion.setBounds(150, 370, 194, 22);
        instsettings.add(instanceVersion);
        return instsettings;
    }
private JPanel makeInstSettings ( ) { JPanel instsettings = new JPanel ( ) ; instsettings . setOpaque ( false ) ; instsettings . setLayout ( null ) ; JLabelFancy javaargslabel = new JLabelFancy ( "Java Arguments:" ) ; javaargslabel . setBounds ( 20 , 22 , 100 , 20 ) ; instsettings . add ( javaargslabel ) ; javaargs = new JTextFieldFancy ( "Java Arguments" ) ; javaargs . setBounds ( 150 , 20 , 400 , 24 ) ; javaargs . setText ( instanceConfig . getJavaArgs ( ) ) ; instsettings . add ( javaargs ) ; JLabelFancy ramalloclabel = new JLabelFancy ( "RAM Allocation:" ) ; ramalloclabel . setBounds ( 20 , 50 , 100 , 20 ) ; instsettings . add ( ramalloclabel ) ; JLabelFancy maxramlabel = new JLabelFancy ( "Maximum:" ) ; maxramlabel . setBounds ( 150 , 50 , 65 , 20 ) ; instsettings . add ( maxramlabel ) ; maxram = new JTextFieldFancy ( "Maximum RAM" ) ; maxram . setBounds ( 245 , 48 , 100 , 24 ) ; maxram . setText ( instanceConfig . getMaxRam ( ) ) ; instsettings . add ( maxram ) ; JLabelFancy minramlabel = new JLabelFancy ( "Minimum:" ) ; minramlabel . setBounds ( 360 , 50 , 65 , 20 ) ; instsettings . add ( minramlabel ) ; minram = new JTextFieldFancy ( "Minimum RAM" ) ; minram . setBounds ( 450 , 48 , 100 , 24 ) ; minram . setText ( instanceConfig . getMinRam ( ) ) ; instsettings . add ( minram ) ; JLabelFancy skinproxylabel = new JLabelFancy ( "Enable Skin Proxy:" ) ; skinproxylabel . setBounds ( 20 , 96 , 120 , 20 ) ; instsettings . add ( skinproxylabel ) ; skinproxy = new JCheckBox ( ) ; skinproxy . setOpaque ( false ) ; skinproxy . setBounds ( 150 , 97 , 20 , 20 ) ; skinproxy . setSelected ( instanceConfig . isProxySkin ( ) ) ; instsettings . add ( skinproxy ) ; JLabelFancy capeproxylabel = new JLabelFancy ( "Enable Cape Proxy:" ) ; capeproxylabel . setBounds ( 20 , 124 , 120 , 20 ) ; instsettings . add ( capeproxylabel ) ; capeproxy = new JCheckBox ( ) ; capeproxy . setOpaque ( false ) ; capeproxy . setBounds ( 150 , 125 , 20 , 20 ) ; capeproxy . setSelected ( instanceConfig . isProxyCape ( ) ) ; instsettings . add ( capeproxy ) ; JLabelFancy soundproxylabel = new JLabelFancy ( "Enable Sound Proxy:" ) ; soundproxylabel . setBounds ( 20 , 152 , 120 , 20 ) ; instsettings . add ( soundproxylabel ) ; soundproxy = new JCheckBox ( ) ; soundproxy . setOpaque ( false ) ; soundproxy . setBounds ( 150 , 153 , 20 , 20 ) ; soundproxy . setSelected ( instanceConfig . isProxySound ( ) ) ; instsettings . add ( soundproxy ) ; JLabelFancy loginproxylabel = new JLabelFancy ( "Enable Login Proxy:" ) ; loginproxylabel . setBounds ( 20 , 180 , 120 , 20 ) ; instsettings . add ( loginproxylabel ) ; loginproxy = new JCheckBox ( ) ; loginproxy . setOpaque ( false ) ; loginproxy . setBounds ( 150 , 181 , 20 , 20 ) ; loginproxy . setSelected ( instanceConfig . isProxyLogin ( ) ) ; instsettings . add ( loginproxy ) ; JLabelFancy disableIntermediaryLabel = new JLabelFancy ( "Disable Intermediary (Can break jar mods if off):" ) ; disableIntermediaryLabel . setBounds ( 20 , 208 , 250 , 20 ) ; instsettings . add ( disableIntermediaryLabel ) ; disableIntermediary = new JCheckBox ( ) ; disableIntermediary . setOpaque ( false ) ; disableIntermediary . setBounds ( 280 , 209 , 20 , 20 ) ; disableIntermediary . setSelected ( instanceConfig . isDisableIntermediary ( ) ) ; instsettings . add ( disableIntermediary ) ; JLabelFancy instanceVersionLabel = new JLabelFancy ( "Minecraft Version:" ) ; instanceVersionLabel . setBounds ( 20 , 372 , 120 , 20 ) ; instsettings . add ( instanceVersionLabel ) ; instanceVersion = new JComboBox < > ( ) ; for ( String version : Config . getMcVersions ( ) . getClient ( ) . keySet ( ) ) { instanceVersion . addItem ( version ) ; } instanceVersion . addItem ( "none" ) ; instanceVersion . setSelectedItem ( instanceConfig . getVersion ( ) ) ; instanceVersion . setBounds ( 150 , 370 , 194 , 22 ) ; instsettings . add ( instanceVersion ) ; return instsettings ; }
Makes the things that do the thing for the instance JSON.
Makes the things that do the thing for the instance JSON .