setSize(new Dimension(450, 320));
setSize(new Dimension(450, 330));
  private void jbInit() throws Exception {    colorBorder = new TitledBorder("");    sizeBorder = new TitledBorder("");    ageBorder = new TitledBorder(" PARTICLE AGE ");    speedBorder = new TitledBorder(" PARTICLE SPEED ");    textureBorder = new TitledBorder(" PARTICLE TEXTURE ");    gravityBorder = new TitledBorder(" GRAVITY ");    emitBorder = new TitledBorder(" EMISSION DIRECTION ");    angleBorder = new TitledBorder("");    randomBorder = new TitledBorder("");    this.getContentPane().setLayout(borderLayout1);    appPanel.setLayout(gridBagLayout1);    emitPanel.setLayout(gridBagLayout2);    worldPanel.setLayout(gridBagLayout3);    colorPanel.setLayout(gridBagLayout4);    startColorLabel.setFont(new java.awt.Font("Arial", 1, 13));    startColorLabel.setRequestFocusEnabled(true);    startColorLabel.setText("Starting Color:");    colorLabel.setFont(new java.awt.Font("Arial", 1, 14));    colorLabel.setText(">>");    endColorLabel.setFont(new java.awt.Font("Arial", 1, 13));    endColorLabel.setText("End Color:");    startColorHex.setFont(new java.awt.Font("Arial", 0, 10));    startColorHex.setText("#FFFFFF");    endColorHex.setFont(new java.awt.Font("Arial", 0, 10));    endColorHex.setText("#FFFFFF");    startColorPanel.setBackground(Color.white);    startColorPanel.setBorder(BorderFactory.createRaisedBevelBorder());    startColorPanel.addMouseListener(new java.awt.event.MouseAdapter() {      public void mouseClicked(MouseEvent e) {        startColorPanel_mouseClicked(e);      }    });    endColorPanel.setBackground(Color.white);    endColorPanel.setBorder(BorderFactory.createRaisedBevelBorder());    endColorPanel.addMouseListener(new java.awt.event.MouseAdapter() {      public void mouseClicked(MouseEvent e) {        endColorPanel_mouseClicked(e);      }    });    colorPanel.setBorder(colorBorder);    colorPanel.setOpaque(false);    colorBorder.setTitleColor(Color.black);    colorBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    colorBorder.setTitle(" PARTICLE COLOR ");    colorBorder.setBorder(BorderFactory.createEtchedBorder());    startAlphaLabel.setFont(new java.awt.Font("Arial", 0, 11));    startAlphaLabel.setText("alpha:");    endAlphaLabel.setFont(new java.awt.Font("Arial", 0, 11));    endAlphaLabel.setText("alpha:");    startSizeLabel.setFont(new java.awt.Font("Arial", 1, 13));    startSizeLabel.setText("Start Size:  0.0");    sizePanel.setLayout(gridBagLayout5);    sizePanel.setBorder(sizeBorder);    sizePanel.setOpaque(false);    sizeBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    sizeBorder.setTitle(" PARTICLE SIZE ");    endSizeLabel.setFont(new java.awt.Font("Arial", 1, 13));    endSizeLabel.setText("End Size: 0.0");    endSizeSlider.setMaximum(400);    endSizeSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = endSizeSlider.getValue();        TestRenParticleGUI.manager.setEndSize(val/10f);        updateSizeLabels();        regenCode();      }    });    startSizeSlider.setMaximum(400);    startSizeSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = startSizeSlider.getValue();        TestRenParticleGUI.manager.setStartSize(val/10f);        updateSizeLabels();        regenCode();      }    });    ageBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    ageBorder.setBorder(BorderFactory.createEtchedBorder());    speedPanel.setLayout(gridBagLayout7);    speedPanel.setBorder(speedBorder);    speedPanel.setOpaque(false);    speedLabel.setFont(new java.awt.Font("Arial", 1, 13));    speedLabel.setText("Speed Mod.: 0%");    speedBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    speedSlider.setMaximum(100);    speedSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = speedSlider.getValue();        TestRenParticleGUI.manager.setParticlesSpeed((float)val * .1f);        updateSpeedLabels();        regenCode();      }    });    texturePanel.setBorder(textureBorder);    texturePanel.setLayout(gridBagLayout8);    textureBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    textureLabel.setFont(new java.awt.Font("Arial", 1, 13));    textureLabel.setText("Texture Image:");    changeTextureButton.setEnabled(false);    changeTextureButton.setFont(new java.awt.Font("Arial", 1, 12));    changeTextureButton.setMargin(new Insets(2, 2, 2, 2));    changeTextureButton.setText("Browse...");    imageLabel.setBackground(Color.lightGray);    imageLabel.setBorder(BorderFactory.createLineBorder(SystemColor.controlText,1));    imageLabel.setMaximumSize(new Dimension(128, 128));    imageLabel.setMinimumSize(new Dimension(0, 0));    imageLabel.setOpaque(true);    imageLabel.setText("");    gravityPanel.setBorder(gravityBorder);    gravityPanel.setLayout(gridBagLayout9);    gravityBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    gravXLabel.setText("X");    gravXSlider.setOrientation(JSlider.VERTICAL);    gravXSlider.setInverted(false);    gravXSlider.setMajorTickSpacing(16);    gravXSlider.setMaximum(32);    gravXSlider.setMinimum(-32);    gravXSlider.setMinorTickSpacing(4);    gravXSlider.setPaintLabels(true);    gravXSlider.setPaintTicks(true);    gravXSlider.setPaintTrack(true);    gravXSlider.setValue(0);    gravXSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = gravXSlider.getValue();        if (TestRenParticleGUI.manager != null)          TestRenParticleGUI.manager.getGravityForce().x = (float)val * 0.001f;        regenCode();      }    });    gravYLabel.setText("Y");    gravYSlider.setOrientation(JSlider.VERTICAL);    gravYSlider.setInverted(false);    gravYSlider.setMajorTickSpacing(16);    gravYSlider.setMaximum(32);    gravYSlider.setMinimum(-32);    gravYSlider.setMinorTickSpacing(4);    gravYSlider.setPaintLabels(true);    gravYSlider.setPaintTicks(true);    gravYSlider.setPaintTrack(true);    gravYSlider.setValue(0);    gravYSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = gravYSlider.getValue();        if (TestRenParticleGUI.manager != null)          TestRenParticleGUI.manager.getGravityForce().y = (float)val * 0.001f;        regenCode();      }    });    gravZLabel.setText("Z");    gravZSlider.setOrientation(JSlider.VERTICAL);    gravZSlider.setInverted(false);    gravZSlider.setMajorTickSpacing(16);    gravZSlider.setMaximum(32);    gravZSlider.setMinimum(-32);    gravZSlider.setMinorTickSpacing(4);    gravZSlider.setPaintLabels(true);    gravZSlider.setPaintTicks(true);    gravZSlider.setPaintTrack(true);    gravZSlider.setValue(0);    gravZSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = gravZSlider.getValue();        if (TestRenParticleGUI.manager != null)          TestRenParticleGUI.manager.getGravityForce().z = (float)val * 0.001f;        regenCode();      }    });    agePanel.setLayout(gridBagLayout6);    agePanel.setBorder(ageBorder);    minAgeLabel.setFont(new java.awt.Font("Arial", 1, 13));    minAgeLabel.setText("Minimum Age: 1000ms");    minAgeSlider.setMajorTickSpacing(1000);    minAgeSlider.setMaximum(10000);    minAgeSlider.setMinimum(0);    minAgeSlider.setMinorTickSpacing(100);    minAgeSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = minAgeSlider.getValue();        TestRenParticleGUI.manager.setParticlesMinimumLifeTime((float)val);        updateAgeLabels();        regenCode();      }    });    directionPanel.setBorder(emitBorder);    directionPanel.setLayout(gridBagLayout10);    emitBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    emitBorder.setTitle(" DIRECTION ");    emitZSlider.setOrientation(JSlider.VERTICAL);    emitZSlider.setMajorTickSpacing(5);    emitZSlider.setMinimum(-10);    emitZSlider.setMaximum(10);    emitZSlider.setMinorTickSpacing(1);    emitZSlider.setPaintLabels(true);    emitZSlider.setPaintTicks(true);    emitZSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = emitZSlider.getValue();        if (TestRenParticleGUI.manager != null) {          TestRenParticleGUI.manager.getEmissionDirection().z = (float) val * .1f;          TestRenParticleGUI.manager.updateRotationMatrix();        }        regenCode();      }    });    emitYSlider.setOrientation(JSlider.VERTICAL);    emitYSlider.setMajorTickSpacing(5);    emitYSlider.setMinimum(-10);    emitYSlider.setMaximum(10);    emitYSlider.setMinorTickSpacing(1);    emitYSlider.setPaintLabels(true);    emitYSlider.setPaintTicks(true);    emitYSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = emitYSlider.getValue();        if (TestRenParticleGUI.manager != null) {          TestRenParticleGUI.manager.getEmissionDirection().y = (float)val * .1f;          TestRenParticleGUI.manager.updateRotationMatrix();        }        regenCode();      }    });    emitXSlider.setOrientation(JSlider.VERTICAL);    emitXSlider.setMajorTickSpacing(5);    emitXSlider.setMinimum(-10);    emitXSlider.setMaximum(10);    emitXSlider.setMinorTickSpacing(1);    emitXSlider.setPaintLabels(true);    emitXSlider.setPaintTicks(true);    emitXSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = emitXSlider.getValue();        if (TestRenParticleGUI.manager != null) {          TestRenParticleGUI.manager.getEmissionDirection().x = (float)val * .1f;          TestRenParticleGUI.manager.updateRotationMatrix();        }        regenCode();      }    });    emitXLabel.setFont(new java.awt.Font("Arial", 1, 13));    emitXLabel.setText("X");    emitYLabel.setFont(new java.awt.Font("Arial", 1, 13));    emitYLabel.setText("Y");    emitZLabel.setFont(new java.awt.Font("Arial", 1, 13));    emitZLabel.setText("Z");    anglePanel.setBorder(angleBorder);    anglePanel.setLayout(gridBagLayout11);    angleBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    angleBorder.setTitle(" ANGLE ");    angleLabel.setText("Degrees Off Direction:  0");    angleLabel.setFont(new java.awt.Font("Arial", 1, 13));    angleSlider.setValue(0);    angleSlider.setMinimum(0);    angleSlider.setMaximum(180);    angleSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = angleSlider.getValue();        TestRenParticleGUI.manager.setEmissionMaximumAngle((float)val * FastMath.DEG_TO_RAD);        updateAngleLabels();        regenCode();      }    });    randomPanel.setBorder(randomBorder);    randomPanel.setLayout(gridBagLayout12);    randomBorder.setTitleFont(new java.awt.Font("Arial", 0, 10));    randomBorder.setTitle(" SYSTEM RANDOMNESS ");    randomLabel.setFont(new java.awt.Font("Arial", 1, 13));    randomLabel.setText("Random Factor: 0.0");    randomSlider.setValue(0);    randomSlider.setMaximum(100);    randomSlider.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        int val = randomSlider.getValue();        TestRenParticleGUI.manager.setRandomMod((float)val*.1f);        updateRandomLabels();        regenCode();      }    });    examplesPanel.setLayout(gridBagLayout13);    examplesLabel.setFont(new java.awt.Font("Arial", 1, 13));    examplesLabel.setText("Prebuilt Examples:");    exampleButton.setFont(new java.awt.Font("Arial", 0, 12));    exampleButton.setMargin(new Insets(2, 14, 2, 14));    exampleButton.setText("Apply");    exampleButton.setEnabled(false);    exampleButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        applyExample();      }    });    updateExampleModel();    exampleList = new JList(exampleModel);    exampleList.setFont(new java.awt.Font("Arial", 0, 13));    exampleList.addListSelectionListener(new ListSelectionListener() {      public void valueChanged(ListSelectionEvent e) {        if (exampleList.getSelectedValue() instanceof String)          exampleButton.setEnabled(true);        else          exampleButton.setEnabled(false);      }    });    codePanel.setFont(new java.awt.Font("Arial", 0, 13));    codePanel.setLayout(gridBagLayout14);    appPanel.setFont(new java.awt.Font("Arial", 0, 13));    emitPanel.setFont(new java.awt.Font("Arial", 0, 13));    worldPanel.setFont(new java.awt.Font("Arial", 0, 13));    examplesPanel.setFont(new java.awt.Font("Arial", 0, 13));    mainTabbedPane1.setFont(new java.awt.Font("Arial", 0, 13));    codeLabel.setFont(new java.awt.Font("Arial", 1, 13));    codeLabel.setText("Particle Code:");    codeTextArea.setFont(new java.awt.Font("Monospaced", 0, 10));    codeTextArea.setText("");    codeTextArea.setEditable(false);    codeTextArea.setAutoscrolls(true);    this.getContentPane().add(mainTabbedPane1, BorderLayout.CENTER);    mainTabbedPane1.add(appPanel,   "Appearance");    mainTabbedPane1.add(emitPanel,     "Emission");    emitPanel.add(directionPanel,         new GridBagConstraints(0, 0, 1, 2, 0.5, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 10, 5), 0, 0));    directionPanel.add(emitXSlider,          new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 5, 0), 0, 0));    directionPanel.add(emitYSlider,            new GridBagConstraints(1, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 0, 5, 0), 0, 0));    directionPanel.add(emitZSlider,         new GridBagConstraints(2, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 0, 5, 10), 0, 0));    directionPanel.add(emitXLabel,      new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    directionPanel.add(emitYLabel,     new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    directionPanel.add(emitZLabel,    new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));    mainTabbedPane1.add(worldPanel,    "World");    worldPanel.add(speedPanel,       new GridBagConstraints(0, 0, 1, 1, 0.5, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 5, 5), 0, 0));    startAlphaSpinner.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        TestRenParticleGUI.manager.getStartColor().a = (Integer.parseInt(startAlphaSpinner.getValue().toString()) / 255f);        regenCode();      }    });    endAlphaSpinner.addChangeListener(new ChangeListener() {      public void stateChanged(ChangeEvent e) {        TestRenParticleGUI.manager.getEndColor().a = (Integer.parseInt(endAlphaSpinner.getValue().toString()) / 255f);        regenCode();      }    });    appPanel.add(colorPanel,      new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 5, 5), 0, 0));    colorPanel.add(startColorLabel,             new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 10, 0, 10), 0, 0));    colorPanel.add(colorLabel,        new GridBagConstraints(2, 0, 1, 3, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0));    colorPanel.add(endColorLabel,       new GridBagConstraints(3, 0, 2, 1, 0.0, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 10, 0, 10), 0, 0));    colorPanel.add(startColorPanel,        new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 25, 25));    colorPanel.add(endColorPanel,      new GridBagConstraints(3, 1, 2, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 25, 25));    colorPanel.add(startColorHex,      new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 4, 0), 0, 0));    colorPanel.add(endColorHex,     new GridBagConstraints(3, 2, 2, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 4, 0), 0, 0));    colorPanel.add(startAlphaSpinner,        new GridBagConstraints(1, 3, 1, 1, 0.25, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 20, 0));    colorPanel.add(startAlphaLabel,    new GridBagConstraints(0, 3, 1, 1, 0.25, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    colorPanel.add(endAlphaLabel,    new GridBagConstraints(3, 3, 1, 1, 0.25, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    colorPanel.add(endAlphaSpinner,    new GridBagConstraints(4, 3, 1, 1, 0.25, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 20, 0));    appPanel.add(sizePanel,    new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 5, 5, 10), 0, 0));    sizePanel.add(startSizeLabel,    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 4, 0, 0), 0, 0));    sizePanel.add(startSizeSlider,         new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 4, 0, 0), 100, 0));    sizePanel.add(endSizeLabel,  new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(4, 4, 0, 0), 0, 0));    sizePanel.add(endSizeSlider,     new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 4, 0, 0), 100, 0));    appPanel.add(texturePanel,   new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 10, 5, 10), 0, 0));    texturePanel.add(textureLabel,   new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 4), 0, 0));    texturePanel.add(changeTextureButton,     new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(10, 0, 5, 4), 0, 0));    texturePanel.add(imageLabel,       new GridBagConstraints(1, 0, 1, 2, 0.0, 0.0            ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 32, 32));    speedPanel.add(speedLabel,    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 10, 0, 10), 0, 0));    speedPanel.add(speedSlider,      new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0));    worldPanel.add(gravityPanel,          new GridBagConstraints(1, 0, 1, 3, 0.5, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 5, 10, 10), 0, 0));    gravityPanel.add(gravXSlider,    new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    gravityPanel.add(gravYSlider,       new GridBagConstraints(1, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    gravityPanel.add(gravZSlider,    new GridBagConstraints(2, 0, 1, 1, 0.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    gravityPanel.add(gravXLabel,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    gravityPanel.add(gravYLabel,  new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    gravityPanel.add(gravZLabel,  new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    worldPanel.add(agePanel,      new GridBagConstraints(0, 1, 1, 1, 0.5, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 10, 5, 5), 0, 0));    agePanel.add(minAgeLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));    agePanel.add(minAgeSlider,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0));    worldPanel.add(randomPanel,  new GridBagConstraints(0, 2, 1, 1, 0.5, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 10, 10, 5), 0, 0));    emitPanel.add(anglePanel,   new GridBagConstraints(1, 0, 1, 1, 0.5, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 5, 5, 10), 0, 0));    anglePanel.add(angleLabel,     new GridBagConstraints(0, 0, 1, 1, 0.5, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 5, 5, 10), 0, 0));    anglePanel.add(angleSlider,   new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 10, 5, 10), 0, 0));    anglePanel.add(angleLabel, null);    randomPanel.add(randomLabel,    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 10, 5, 10), 0, 0));    randomPanel.add(randomSlider,     new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0));    mainTabbedPane1.add(examplesPanel,   "Examples");    examplesPanel.add(examplesLabel,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 10, 5, 10), 0, 0));        examplesPanel.add(exampleSP,     new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0                ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 10, 0, 10), 0, 0));    examplesPanel.add(exampleButton,   new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 10, 10, 10), 0, 0));    exampleSP.setViewportView(exampleList);    mainTabbedPane1.add(codePanel,  "Code");    codePanel.add(codeLabel,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 10, 5, 10), 0, 0));    codePanel.add(codeSP,   new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0            ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(5, 10, 10, 10), 0, 0));    codeSP.setViewportView(codeTextArea);    setSize(new Dimension(450, 320));  }