Search in sources :

Example 51 with JPanel

use of javax.swing.JPanel in project pcgen by PCGen.

the class AddCombatant method getCenter.

/**
	 * <p>
	 * Initializes all the components of the dialog.
	 * </p>
	 */
protected JComponent getCenter() {
    JPanel center = new JPanel();
    java.awt.GridBagConstraints gridBagConstraints;
    bonusSlider = Utils.buildSlider(-20, 20);
    numberSlider = Utils.buildSlider(1, 20);
    hpSlider = Utils.buildSlider(1, 100, 5, 25);
    typeCombo = new javax.swing.JComboBox();
    jSeparator1 = new javax.swing.JSeparator();
    nameLabel = new javax.swing.JLabel();
    playerLabel = new javax.swing.JLabel();
    bonusLabel = new javax.swing.JLabel();
    numberLabel = new javax.swing.JLabel();
    neg20Label = new javax.swing.JLabel();
    hpLabel = new javax.swing.JLabel();
    typeLabel = new javax.swing.JLabel();
    strLabel = new javax.swing.JLabel();
    dexLabel = new javax.swing.JLabel();
    conLabel = new javax.swing.JLabel();
    intLabel = new javax.swing.JLabel();
    wisLabel = new javax.swing.JLabel();
    chaLabel = new javax.swing.JLabel();
    fortLabel = new javax.swing.JLabel();
    reflexLabel = new javax.swing.JLabel();
    willLabel = new javax.swing.JLabel();
    neg20Label2 = new javax.swing.JLabel();
    crLabel = new javax.swing.JLabel();
    noteLabel = new javax.swing.JLabel();
    nameField = new javax.swing.JTextField();
    playerField = new javax.swing.JTextField();
    crField = Utils.buildFloatField(-10, 50);
    conField = Utils.buildIntegerField(0, 100);
    strField = Utils.buildIntegerField(0, 100);
    dexField = Utils.buildIntegerField(0, 100);
    intField = Utils.buildIntegerField(0, 100);
    wisField = Utils.buildIntegerField(0, 100);
    chaField = Utils.buildIntegerField(0, 100);
    fortitudeField = Utils.buildIntegerField(-20, 50);
    reflexField = Utils.buildIntegerField(-20, 50);
    willField = Utils.buildIntegerField(-20, 50);
    bonusField = Utils.buildIntegerFieldWithSlider(bonusSlider);
    hpField = Utils.buildIntegerFieldWithSlider(hpSlider);
    numberField = Utils.buildIntegerFieldWithSlider(numberSlider);
    center.setLayout(new java.awt.GridBagLayout());
    nameLabel.setText("Name");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 10, 0);
    center.add(nameLabel, gridBagConstraints);
    nameField.setMinimumSize(new java.awt.Dimension(100, 21));
    nameField.setPreferredSize(new java.awt.Dimension(200, 21));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(nameField, gridBagConstraints);
    playerLabel.setText("Player");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    center.add(playerLabel, gridBagConstraints);
    playerField.setPreferredSize(new java.awt.Dimension(200, 21));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(playerField, gridBagConstraints);
    bonusLabel.setText("Bonus");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    center.add(bonusLabel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(bonusSlider, gridBagConstraints);
    numberLabel.setText("Number");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    center.add(numberLabel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(numberSlider, gridBagConstraints);
    neg20Label.setForeground(new java.awt.Color(204, 204, 204));
    neg20Label.setText("-20");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 10);
    center.add(neg20Label, gridBagConstraints);
    hpLabel.setText("Hit Points");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    center.add(hpLabel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(hpSlider, gridBagConstraints);
    typeLabel.setText("Type");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    center.add(typeLabel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.gridwidth = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(typeCombo, gridBagConstraints);
    bonusField.setValue(0);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    center.add(bonusField, gridBagConstraints);
    hpField.setValue(1);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    center.add(hpField, gridBagConstraints);
    numberField.setValue(1);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    center.add(numberField, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
    center.add(jSeparator1, gridBagConstraints);
    strLabel.setText("STR");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    center.add(strLabel, gridBagConstraints);
    dexLabel.setText("DEX");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    center.add(dexLabel, gridBagConstraints);
    conLabel.setText("CON");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    center.add(conLabel, gridBagConstraints);
    intLabel.setText("INT");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 12;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    center.add(intLabel, gridBagConstraints);
    wisLabel.setText("WIS");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 13;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    center.add(wisLabel, gridBagConstraints);
    chaLabel.setText("CHA");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 14;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
    center.add(chaLabel, gridBagConstraints);
    conField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(conField, gridBagConstraints);
    strField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(strField, gridBagConstraints);
    dexField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(dexField, gridBagConstraints);
    intField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 12;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(intField, gridBagConstraints);
    wisField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 13;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(wisField, gridBagConstraints);
    chaField.setValue(10);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 14;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(chaField, gridBagConstraints);
    fortLabel.setText("Fort");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    center.add(fortLabel, gridBagConstraints);
    reflexLabel.setText("Reflex");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 30, 0, 5);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    center.add(reflexLabel, gridBagConstraints);
    willLabel.setText("Will");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    center.add(willLabel, gridBagConstraints);
    fortitudeField.setValue(0);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(fortitudeField, gridBagConstraints);
    reflexField.setValue(0);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(reflexField, gridBagConstraints);
    willField.setValue(0);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(willField, gridBagConstraints);
    neg20Label2.setForeground(new java.awt.Color(204, 204, 204));
    neg20Label2.setText("-20");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 10);
    center.add(neg20Label2, gridBagConstraints);
    crLabel.setText("CR");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(crLabel, gridBagConstraints);
    noteLabel.setText("(Note, use decimal fractions for CR less than 1. Ex: .5 = 1/2)");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(noteLabel, gridBagConstraints);
    crField.setText("1");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    center.add(crField, gridBagConstraints);
    return center;
}
Also used : JPanel(javax.swing.JPanel)

Example 52 with JPanel

use of javax.swing.JPanel in project pcgen by PCGen.

the class CastSpell method addDescriptionPanel.

private void addDescriptionPanel() {
    GridBagConstraints gridBagConstraints = null;
    descPanel = new JPanel(new BorderLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = gridBagRow;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.gridheight = 1;
    gridBagConstraints.fill = GridBagConstraints.BOTH;
    gridBagConstraints.insets = new Insets(3, 3, 3, 3);
    mainPanel.add(descPanel, gridBagConstraints);
    gridBagRow++;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) BorderLayout(java.awt.BorderLayout) GridBagConstraints(java.awt.GridBagConstraints)

Example 53 with JPanel

use of javax.swing.JPanel in project pcgen by PCGen.

the class PreferencesInitiativePanel method initComponents.

private void initComponents() {
    setLayout(new BorderLayout());
    mainPanel = new JPanel();
    rollPCInitiatives = new JCheckBox();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    performancePanel = new JPanel();
    performancePanel.setLayout(new BoxLayout(performancePanel, BoxLayout.Y_AXIS));
    rollPCInitiatives.setText(//$NON-NLS-1$
    LanguageBundle.getString("in_plugin_initiative_rollPcInit"));
    performancePanel.add(rollPCInitiatives);
    mainPanel.add(performancePanel);
    JScrollPane jScrollPane1 = new JScrollPane();
    jScrollPane1.setViewportView(mainPanel);
    add(jScrollPane1, BorderLayout.CENTER);
}
Also used : JCheckBox(javax.swing.JCheckBox) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) BoxLayout(javax.swing.BoxLayout)

Example 54 with JPanel

use of javax.swing.JPanel in project SIMRacingApps by SIMRacingApps.

the class HeaderForm method createPanel.

public JPanel createPanel() {
    JPanel jpanel1 = new JPanel();
    FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(0.2),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _headerTypeLabel.setName("headerTypeLabel");
    _headerTypeLabel.setText(Messages.getString("headerType"));
    jpanel1.add(_headerTypeLabel, cc.xy(2, 2));
    _guiHeaderRadio.setActionCommand("GUI");
    _guiHeaderRadio.setName("guiHeaderRadio");
    _guiHeaderRadio.setText(Messages.getString("gui"));
    _guiHeaderRadio.setToolTipText(Messages.getString("guiTooltip"));
    _headerButtonGroup.add(_guiHeaderRadio);
    jpanel1.add(_guiHeaderRadio, cc.xy(4, 2));
    _consoleHeaderRadio.setActionCommand("Console");
    _consoleHeaderRadio.setName("consoleHeaderRadio");
    _consoleHeaderRadio.setText(Messages.getString("console"));
    _consoleHeaderRadio.setToolTipText(Messages.getString("consoleTooltip"));
    _headerButtonGroup.add(_consoleHeaderRadio);
    jpanel1.add(_consoleHeaderRadio, cc.xy(6, 2));
    _headerObjectsTextArea.setName("headerObjectsTextArea");
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_headerObjectsTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xywh(4, 6, 8, 1));
    _libsTextArea.setName("libsTextArea");
    JScrollPane jscrollpane2 = new JScrollPane();
    jscrollpane2.setViewportView(_libsTextArea);
    jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane2, cc.xywh(4, 8, 8, 1));
    _headerObjectsCheck.setActionCommand("Object files");
    _headerObjectsCheck.setName("headerObjectsCheck");
    _headerObjectsCheck.setText(Messages.getString("objectFiles"));
    jpanel1.add(_headerObjectsCheck, new CellConstraints(2, 6, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    _libsCheck.setActionCommand("w32api");
    _libsCheck.setName("libsCheck");
    _libsCheck.setText(Messages.getString("libs"));
    jpanel1.add(_libsCheck, new CellConstraints(2, 8, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    _linkerOptionsSeparator.setName("linkerOptionsSeparator");
    _linkerOptionsSeparator.setText(Messages.getString("linkerOptions"));
    jpanel1.add(_linkerOptionsSeparator, cc.xywh(2, 4, 10, 1));
    _jniGuiHeaderRadio.setActionCommand(Messages.getString("jniGui"));
    _jniGuiHeaderRadio.setForeground(new Color(255, 102, 0));
    _jniGuiHeaderRadio.setName("jniGuiHeaderRadio");
    _jniGuiHeaderRadio.setText(Messages.getString("jniGui"));
    _jniGuiHeaderRadio.setToolTipText(Messages.getString("jniGuiTooltip"));
    _headerButtonGroup.add(_jniGuiHeaderRadio);
    jpanel1.add(_jniGuiHeaderRadio, cc.xy(8, 2));
    _jniConsoleHeaderRadio.setActionCommand(Messages.getString("jniConsole"));
    _jniConsoleHeaderRadio.setForeground(new Color(255, 102, 0));
    _jniConsoleHeaderRadio.setName("jniConsoleHeaderRadio");
    _jniConsoleHeaderRadio.setText(Messages.getString("jniConsole"));
    _jniConsoleHeaderRadio.setToolTipText(Messages.getString("jniConsoleTooltip"));
    _headerButtonGroup.add(_jniConsoleHeaderRadio);
    jpanel1.add(_jniConsoleHeaderRadio, cc.xy(10, 2));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) Color(java.awt.Color) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 55 with JPanel

use of javax.swing.JPanel in project SIMRacingApps by SIMRacingApps.

the class JreForm method createPanel2.

public JPanel createPanel2() {
    JPanel jpanel1 = new JPanel();
    FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _jrePathField.setName("jrePathField");
    _jrePathField.setToolTipText(Messages.getString("jrePathTip"));
    jpanel1.add(_jrePathField, cc.xy(1, 1));
    _bundledJre64BitCheck.setActionCommand(Messages.getString("bundledJre64Bit"));
    _bundledJre64BitCheck.setName("bundledJre64BitCheck");
    _bundledJre64BitCheck.setText(Messages.getString("bundledJre64Bit"));
    _bundledJre64BitCheck.setToolTipText(Messages.getString("bundledJre64BitTip"));
    jpanel1.add(_bundledJre64BitCheck, cc.xy(3, 1));
    _bundledJreAsFallbackCheck.setActionCommand(Messages.getString("bundledJreAsFallback"));
    _bundledJreAsFallbackCheck.setName("bundledJreAsFallbackCheck");
    _bundledJreAsFallbackCheck.setText(Messages.getString("bundledJreAsFallback"));
    _bundledJreAsFallbackCheck.setToolTipText(Messages.getString("bundledJreAsFallbackTip"));
    jpanel1.add(_bundledJreAsFallbackCheck, cc.xy(5, 1));
    addFillComponents(jpanel1, new int[] { 2, 4 }, new int[0]);
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JPanel(javax.swing.JPanel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Aggregations

JPanel (javax.swing.JPanel)4487 JLabel (javax.swing.JLabel)1843 BorderLayout (java.awt.BorderLayout)1461 JButton (javax.swing.JButton)1180 Dimension (java.awt.Dimension)1107 GridBagLayout (java.awt.GridBagLayout)1071 ActionEvent (java.awt.event.ActionEvent)1019 GridBagConstraints (java.awt.GridBagConstraints)954 JScrollPane (javax.swing.JScrollPane)901 ActionListener (java.awt.event.ActionListener)871 BoxLayout (javax.swing.BoxLayout)801 Insets (java.awt.Insets)724 FlowLayout (java.awt.FlowLayout)667 JTextField (javax.swing.JTextField)532 JCheckBox (javax.swing.JCheckBox)458 GridLayout (java.awt.GridLayout)375 JComboBox (javax.swing.JComboBox)267 EmptyBorder (javax.swing.border.EmptyBorder)252 JTable (javax.swing.JTable)224 Color (java.awt.Color)210