List of usage examples for com.jgoodies.forms.layout FormSpecs GROWING_BUTTON_COLSPEC
ColumnSpec GROWING_BUTTON_COLSPEC
To view the source code for com.jgoodies.forms.layout FormSpecs GROWING_BUTTON_COLSPEC.
Click Source Link
From source file:repast.simphony.visualization.gui.styleBuilder.EditedEdgeStyleDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY // //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); panel1 = new JPanel(); shapePanel = new JPanel(); shapeComboBox = new JComboBox(); iconColorbutton = new JButton(); panel3 = new JPanel(); label1 = new JLabel(); label2 = new JLabel(); label3 = new JLabel(); label4 = new JLabel(); sizeComboBox = new JComboBox(); sizeMinComboBox = new JComboBox(); sizeMaxComboBox = new JComboBox(); sizeScaleComboBox = new JComboBox(); panel6 = new JPanel(); label15 = new JLabel(); label16 = new JLabel(); label17 = new JLabel(); label18 = new JLabel(); label12 = new JLabel(); redValueComboBox = new JComboBox(); redMinComboBox = new JComboBox(); redMaxComboBox = new JComboBox(); redScaleComboBox = new JComboBox(); label13 = new JLabel(); greenValueComboBox = new JComboBox(); greenMinComboBox = new JComboBox(); greenMaxComboBox = new JComboBox(); greenScaleComboBox = new JComboBox(); label14 = new JLabel(); blueValueComboBox = new JComboBox(); blueMinComboBox = new JComboBox(); blueMaxComboBox = new JComboBox(); blueScaleComboBox = new JComboBox(); previewPanel = new JPanel(); CellConstraints cc = new CellConstraints(); // ======== this ======== setModal(true);// w w w. j a va 2 s. c o m setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); // ======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); // ======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); // ---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { okButtonActionPerformed(e); } }); buttonBar.add(okButton, cc.xy(2, 1)); // ---- cancelButton ---- cancelButton.setText("Cancel"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelButtonActionPerformed(e); } }); buttonBar.add(cancelButton, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); // ======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GROWING_BUTTON_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ======== shapePanel ======== { shapePanel.setBorder(new TitledBorder("Edge Style and Color")); shapePanel.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(66)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.GROWING_BUTTON_COLSPEC }, RowSpec.decodeSpecs("default"))); // ---- shapeComboBox ---- shapeComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { shapeComboBoxActionPerformed(e); } }); shapePanel.add(shapeComboBox, cc.xy(1, 1)); // ---- iconColorbutton ---- iconColorbutton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { iconColorbuttonActionPerformed(e); } }); shapePanel.add(iconColorbutton, cc.xy(5, 1)); } panel1.add(shapePanel, cc.xywh(1, 1, 11, 1)); // ======== panel3 ======== { panel3.setBorder(new TitledBorder("Edge Thickness")); panel3.setLayout(new FormLayout( new ColumnSpec[] { ColumnSpec.decode("max(pref;66dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ---- label1 ---- label1.setText("Value"); panel3.add(label1, cc.xy(1, 1)); // ---- label2 ---- label2.setText("Minimum"); panel3.add(label2, cc.xy(5, 1)); // ---- label3 ---- label3.setText("Maximum"); panel3.add(label3, cc.xy(9, 1)); // ---- label4 ---- label4.setText("Scaling"); panel3.add(label4, cc.xy(13, 1)); // ---- sizeComboBox ---- sizeComboBox.setEditable(true); sizeComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeComboBoxActionPerformed(e); } }); panel3.add(sizeComboBox, cc.xy(1, 3)); // ---- sizeMinComboBox ---- sizeMinComboBox.setEditable(true); sizeMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeMinComboBoxActionPerformed(e); } }); panel3.add(sizeMinComboBox, cc.xy(5, 3)); // ---- sizeMaxComboBox ---- sizeMaxComboBox.setEditable(true); sizeMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeMaxComboBoxActionPerformed(e); } }); panel3.add(sizeMaxComboBox, cc.xy(9, 3)); // ---- sizeScaleComboBox ---- sizeScaleComboBox.setEditable(true); sizeScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeScaleComboBoxActionPerformed(e); } }); panel3.add(sizeScaleComboBox, cc.xy(13, 3)); } panel1.add(panel3, cc.xywh(1, 3, 11, 1)); // ======== panel6 ======== { panel6.setBorder(new TitledBorder("Variable Icon Color")); panel6.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ---- label15 ---- label15.setText("Value"); panel6.add(label15, cc.xy(3, 1)); // ---- label16 ---- label16.setText("Minimum"); panel6.add(label16, cc.xy(7, 1)); // ---- label17 ---- label17.setText("Maximum"); panel6.add(label17, cc.xy(11, 1)); // ---- label18 ---- label18.setText("Scaling"); panel6.add(label18, cc.xy(15, 1)); // ---- label12 ---- label12.setText("Red"); panel6.add(label12, cc.xy(1, 3)); // ---- redValueComboBox ---- redValueComboBox.setEditable(true); redValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redValueComboBoxActionPerformed(e); } }); panel6.add(redValueComboBox, cc.xy(3, 3)); // ---- redMinComboBox ---- redMinComboBox.setEditable(true); redMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redMinComboBoxActionPerformed(e); } }); panel6.add(redMinComboBox, cc.xy(7, 3)); // ---- redMaxComboBox ---- redMaxComboBox.setEditable(true); redMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redMaxComboBoxActionPerformed(e); } }); panel6.add(redMaxComboBox, cc.xy(11, 3)); // ---- redScaleComboBox ---- redScaleComboBox.setEditable(true); redScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redScaleComboBoxActionPerformed(e); } }); panel6.add(redScaleComboBox, cc.xy(15, 3)); // ---- label13 ---- label13.setText("Green"); panel6.add(label13, cc.xy(1, 5)); // ---- greenValueComboBox ---- greenValueComboBox.setEditable(true); greenValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenValueComboBoxActionPerformed(e); } }); panel6.add(greenValueComboBox, cc.xy(3, 5)); // ---- greenMinComboBox ---- greenMinComboBox.setEditable(true); greenMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenMinComboBoxActionPerformed(e); } }); panel6.add(greenMinComboBox, cc.xy(7, 5)); // ---- greenMaxComboBox ---- greenMaxComboBox.setEditable(true); greenMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenMaxComboBoxActionPerformed(e); } }); panel6.add(greenMaxComboBox, cc.xy(11, 5)); // ---- greenScaleComboBox ---- greenScaleComboBox.setEditable(true); greenScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenScaleComboBoxActionPerformed(e); } }); panel6.add(greenScaleComboBox, cc.xy(15, 5)); // ---- label14 ---- label14.setText("Blue"); panel6.add(label14, cc.xy(1, 7)); // ---- blueValueComboBox ---- blueValueComboBox.setEditable(true); blueValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueValueComboBoxActionPerformed(e); } }); panel6.add(blueValueComboBox, cc.xy(3, 7)); // ---- blueMinComboBox ---- blueMinComboBox.setEditable(true); blueMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueMinComboBoxActionPerformed(e); } }); panel6.add(blueMinComboBox, cc.xy(7, 7)); // ---- blueMaxComboBox ---- blueMaxComboBox.setEditable(true); blueMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueMaxComboBoxActionPerformed(e); } }); panel6.add(blueMaxComboBox, cc.xy(11, 7)); // ---- blueScaleComboBox ---- blueScaleComboBox.setEditable(true); blueScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueScaleComboBoxActionPerformed(e); } }); panel6.add(blueScaleComboBox, cc.xy(15, 7)); } panel1.add(panel6, cc.xy(1, 5)); // ======== previewPanel ======== { previewPanel.setBorder(new TitledBorder("Icon Preview")); previewPanel.setLayout(new FormLayout("default:grow", "default:grow")); } panel1.add(previewPanel, cc.xywh(1, 15, 11, 1)); } dialogPane.add(panel1, BorderLayout.CENTER); } contentPane.add(dialogPane, BorderLayout.CENTER); setSize(615, 530); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:repast.simphony.visualization.gui.styleBuilder.SimpleEditedEdgeStyleDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY // //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); panel1 = new JPanel(); shapePanel = new JPanel(); shapeLbl = new JLabel(); iconColorbutton = new JButton(); panel3 = new JPanel(); label1 = new JLabel(); label2 = new JLabel(); label3 = new JLabel(); label4 = new JLabel(); sizeComboBox = new JComboBox(); sizeMinComboBox = new JComboBox(); sizeMaxComboBox = new JComboBox(); sizeScaleComboBox = new JComboBox(); panel6 = new JPanel(); label15 = new JLabel(); label16 = new JLabel(); label17 = new JLabel(); label18 = new JLabel(); label12 = new JLabel(); redValueComboBox = new JComboBox(); redMinComboBox = new JComboBox(); redMaxComboBox = new JComboBox(); redScaleComboBox = new JComboBox(); label13 = new JLabel(); greenValueComboBox = new JComboBox(); greenMinComboBox = new JComboBox(); greenMaxComboBox = new JComboBox(); greenScaleComboBox = new JComboBox(); label14 = new JLabel(); blueValueComboBox = new JComboBox(); blueMinComboBox = new JComboBox(); blueMaxComboBox = new JComboBox(); blueScaleComboBox = new JComboBox(); previewPanel = new JPanel(); CellConstraints cc = new CellConstraints(); // ======== this ======== setModal(true);//ww w. jav a2s . co m setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); // ======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); // ======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); // ---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { okButtonActionPerformed(e); } }); buttonBar.add(okButton, cc.xy(2, 1)); // ---- cancelButton ---- cancelButton.setText("Cancel"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelButtonActionPerformed(e); } }); buttonBar.add(cancelButton, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); // ======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GROWING_BUTTON_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ======== shapePanel ======== { shapePanel.setBorder(new TitledBorder("Edge Color")); shapePanel.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(66)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.GROWING_BUTTON_COLSPEC }, RowSpec.decodeSpecs("default"))); // ---- shapeComboBox ---- shapePanel.add(shapeLbl, cc.xy(1, 1)); // ---- iconColorbutton ---- iconColorbutton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { iconColorbuttonActionPerformed(e); } }); shapePanel.add(iconColorbutton, cc.xy(5, 1)); } panel1.add(shapePanel, cc.xywh(1, 1, 11, 1)); // ======== panel3 ======== { panel3.setBorder(new TitledBorder("Edge Thickness")); panel3.setLayout(new FormLayout( new ColumnSpec[] { ColumnSpec.decode("max(pref;66dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ---- label1 ---- label1.setText("Value"); panel3.add(label1, cc.xy(1, 1)); // ---- label2 ---- label2.setText("Minimum"); panel3.add(label2, cc.xy(5, 1)); // ---- label3 ---- label3.setText("Maximum"); panel3.add(label3, cc.xy(9, 1)); // ---- label4 ---- label4.setText("Scaling"); panel3.add(label4, cc.xy(13, 1)); // ---- sizeComboBox ---- sizeComboBox.setEditable(true); sizeComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeComboBoxActionPerformed(e); } }); panel3.add(sizeComboBox, cc.xy(1, 3)); // ---- sizeMinComboBox ---- sizeMinComboBox.setEditable(true); sizeMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeMinComboBoxActionPerformed(e); } }); panel3.add(sizeMinComboBox, cc.xy(5, 3)); // ---- sizeMaxComboBox ---- sizeMaxComboBox.setEditable(true); sizeMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeMaxComboBoxActionPerformed(e); } }); panel3.add(sizeMaxComboBox, cc.xy(9, 3)); // ---- sizeScaleComboBox ---- sizeScaleComboBox.setEditable(true); sizeScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sizeScaleComboBoxActionPerformed(e); } }); panel3.add(sizeScaleComboBox, cc.xy(13, 3)); } panel1.add(panel3, cc.xywh(1, 3, 11, 1)); // ======== panel6 ======== { panel6.setBorder(new TitledBorder("Variable Icon Color")); panel6.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); // ---- label15 ---- label15.setText("Value"); panel6.add(label15, cc.xy(3, 1)); // ---- label16 ---- label16.setText("Minimum"); panel6.add(label16, cc.xy(7, 1)); // ---- label17 ---- label17.setText("Maximum"); panel6.add(label17, cc.xy(11, 1)); // ---- label18 ---- label18.setText("Scaling"); panel6.add(label18, cc.xy(15, 1)); // ---- label12 ---- label12.setText("Red"); panel6.add(label12, cc.xy(1, 3)); // ---- redValueComboBox ---- redValueComboBox.setEditable(true); redValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redValueComboBoxActionPerformed(e); } }); panel6.add(redValueComboBox, cc.xy(3, 3)); // ---- redMinComboBox ---- redMinComboBox.setEditable(true); redMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redMinComboBoxActionPerformed(e); } }); panel6.add(redMinComboBox, cc.xy(7, 3)); // ---- redMaxComboBox ---- redMaxComboBox.setEditable(true); redMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redMaxComboBoxActionPerformed(e); } }); panel6.add(redMaxComboBox, cc.xy(11, 3)); // ---- redScaleComboBox ---- redScaleComboBox.setEditable(true); redScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { redScaleComboBoxActionPerformed(e); } }); panel6.add(redScaleComboBox, cc.xy(15, 3)); // ---- label13 ---- label13.setText("Green"); panel6.add(label13, cc.xy(1, 5)); // ---- greenValueComboBox ---- greenValueComboBox.setEditable(true); greenValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenValueComboBoxActionPerformed(e); } }); panel6.add(greenValueComboBox, cc.xy(3, 5)); // ---- greenMinComboBox ---- greenMinComboBox.setEditable(true); greenMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenMinComboBoxActionPerformed(e); } }); panel6.add(greenMinComboBox, cc.xy(7, 5)); // ---- greenMaxComboBox ---- greenMaxComboBox.setEditable(true); greenMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenMaxComboBoxActionPerformed(e); } }); panel6.add(greenMaxComboBox, cc.xy(11, 5)); // ---- greenScaleComboBox ---- greenScaleComboBox.setEditable(true); greenScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { greenScaleComboBoxActionPerformed(e); } }); panel6.add(greenScaleComboBox, cc.xy(15, 5)); // ---- label14 ---- label14.setText("Blue"); panel6.add(label14, cc.xy(1, 7)); // ---- blueValueComboBox ---- blueValueComboBox.setEditable(true); blueValueComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueValueComboBoxActionPerformed(e); } }); panel6.add(blueValueComboBox, cc.xy(3, 7)); // ---- blueMinComboBox ---- blueMinComboBox.setEditable(true); blueMinComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueMinComboBoxActionPerformed(e); } }); panel6.add(blueMinComboBox, cc.xy(7, 7)); // ---- blueMaxComboBox ---- blueMaxComboBox.setEditable(true); blueMaxComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueMaxComboBoxActionPerformed(e); } }); panel6.add(blueMaxComboBox, cc.xy(11, 7)); // ---- blueScaleComboBox ---- blueScaleComboBox.setEditable(true); blueScaleComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { blueScaleComboBoxActionPerformed(e); } }); panel6.add(blueScaleComboBox, cc.xy(15, 7)); } panel1.add(panel6, cc.xy(1, 5)); } dialogPane.add(panel1, BorderLayout.CENTER); } contentPane.add(dialogPane, BorderLayout.CENTER); setSize(615, 530); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }