Search in sources :

Example 1 with TitledSeparator

use of com.jeta.forms.components.separator.TitledSeparator in project beast-mcmc by beast-dev.

the class JreForm 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:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:50DLU:GROW(1.0),CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _jrePathLabel.setName("jrePathLabel");
    _jrePathLabel.setText(Messages.getString("jrePath"));
    jpanel1.add(_jrePathLabel, cc.xy(2, 2));
    _jreMinLabel.setName("jreMinLabel");
    _jreMinLabel.setText(Messages.getString("jreMin"));
    jpanel1.add(_jreMinLabel, cc.xy(2, 6));
    _jreMaxLabel.setName("jreMaxLabel");
    _jreMaxLabel.setText(Messages.getString("jreMax"));
    jpanel1.add(_jreMaxLabel, cc.xy(2, 8));
    _jvmOptionsTextLabel.setName("jvmOptionsTextLabel");
    _jvmOptionsTextLabel.setText(Messages.getString("jvmOptions"));
    jpanel1.add(_jvmOptionsTextLabel, new CellConstraints(2, 16, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    _jreMinField.setName("jreMinField");
    jpanel1.add(_jreMinField, cc.xy(4, 6));
    _jreMaxField.setName("jreMaxField");
    jpanel1.add(_jreMaxField, cc.xy(4, 8));
    _jvmOptionsTextArea.setName("jvmOptionsTextArea");
    _jvmOptionsTextArea.setToolTipText(Messages.getString("jvmOptionsTip"));
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_jvmOptionsTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xywh(4, 16, 7, 1));
    _initialHeapSizeLabel.setName("initialHeapSizeLabel");
    _initialHeapSizeLabel.setText(Messages.getString("initialHeapSize"));
    jpanel1.add(_initialHeapSizeLabel, cc.xy(2, 12));
    _maxHeapSizeLabel.setName("maxHeapSizeLabel");
    _maxHeapSizeLabel.setText(Messages.getString("maxHeapSize"));
    jpanel1.add(_maxHeapSizeLabel, cc.xy(2, 14));
    JLabel jlabel1 = new JLabel();
    jlabel1.setText("MB");
    jpanel1.add(jlabel1, cc.xy(6, 12));
    JLabel jlabel2 = new JLabel();
    jlabel2.setText("MB");
    jpanel1.add(jlabel2, cc.xy(6, 14));
    _initialHeapSizeField.setName("initialHeapSizeField");
    jpanel1.add(_initialHeapSizeField, cc.xy(4, 12));
    _maxHeapSizeField.setName("maxHeapSizeField");
    jpanel1.add(_maxHeapSizeField, cc.xy(4, 14));
    _maxHeapPercentField.setName("maxHeapPercentField");
    jpanel1.add(_maxHeapPercentField, cc.xy(8, 14));
    _initialHeapPercentField.setName("initialHeapPercentField");
    jpanel1.add(_initialHeapPercentField, cc.xy(8, 12));
    _jdkPreferenceCombo.setName("jdkPreferenceCombo");
    jpanel1.add(_jdkPreferenceCombo, cc.xywh(8, 6, 3, 1));
    JLabel jlabel3 = new JLabel();
    jlabel3.setText(Messages.getString("availableMemory"));
    jpanel1.add(jlabel3, cc.xy(10, 12));
    JLabel jlabel4 = new JLabel();
    jlabel4.setText(Messages.getString("availableMemory"));
    jpanel1.add(jlabel4, cc.xy(10, 14));
    _runtimeBitsCombo.setName("runtimeBitsCombo");
    _runtimeBitsCombo.setToolTipText("");
    jpanel1.add(_runtimeBitsCombo, cc.xywh(8, 8, 3, 1));
    jpanel1.add(createPanel1(), cc.xywh(2, 18, 9, 1));
    TitledSeparator titledseparator1 = new TitledSeparator();
    titledseparator1.setText(Messages.getString("searchOptions"));
    jpanel1.add(titledseparator1, cc.xywh(2, 4, 9, 1));
    TitledSeparator titledseparator2 = new TitledSeparator();
    titledseparator2.setText(Messages.getString("options"));
    jpanel1.add(titledseparator2, cc.xywh(2, 10, 9, 1));
    jpanel1.add(createPanel2(), cc.xywh(4, 2, 7, 1));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) TitledSeparator(com.jeta.forms.components.separator.TitledSeparator) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 2 with TitledSeparator

use of com.jeta.forms.components.separator.TitledSeparator in project chipKIT32-MAX by chipKIT32.

the class BasicForm 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:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _outfileButton.setIcon(loadImage("images/open16.png"));
    _outfileButton.setName("outfileButton");
    jpanel1.add(_outfileButton, cc.xy(12, 2));
    _outfileLabel.setIcon(loadImage("images/asterix.gif"));
    _outfileLabel.setName("outfileLabel");
    _outfileLabel.setText(Messages.getString("outfile"));
    jpanel1.add(_outfileLabel, cc.xy(2, 2));
    _iconLabel.setName("iconLabel");
    _iconLabel.setText(Messages.getString("icon"));
    jpanel1.add(_iconLabel, cc.xy(2, 10));
    _jarLabel.setIcon(loadImage("images/asterix.gif"));
    _jarLabel.setName("jarLabel");
    _jarLabel.setText(Messages.getString("jar"));
    jpanel1.add(_jarLabel, cc.xy(2, 4));
    _jarButton.setIcon(loadImage("images/open16.png"));
    _jarButton.setName("jarButton");
    jpanel1.add(_jarButton, cc.xy(12, 4));
    _iconButton.setIcon(loadImage("images/open16.png"));
    _iconButton.setName("iconButton");
    jpanel1.add(_iconButton, cc.xy(12, 10));
    _cmdLineLabel.setName("cmdLineLabel");
    _cmdLineLabel.setText(Messages.getString("cmdLine"));
    _cmdLineLabel.setToolTipText("");
    jpanel1.add(_cmdLineLabel, cc.xy(2, 14));
    _optionsLabel.setName("optionsLabel");
    _optionsLabel.setText(Messages.getString("options"));
    jpanel1.add(_optionsLabel, cc.xy(2, 18));
    _chdirLabel.setName("chdirLabel");
    _chdirLabel.setText(Messages.getString("chdir"));
    jpanel1.add(_chdirLabel, cc.xy(2, 12));
    _processPriorityLabel.setName("processPriorityLabel");
    _processPriorityLabel.setText(Messages.getString("priority"));
    jpanel1.add(_processPriorityLabel, cc.xy(2, 16));
    _normalPriorityRadio.setActionCommand(Messages.getString("normalPriority"));
    _normalPriorityRadio.setName("normalPriorityRadio");
    _normalPriorityRadio.setText(Messages.getString("normalPriority"));
    _buttongroup1.add(_normalPriorityRadio);
    jpanel1.add(_normalPriorityRadio, cc.xy(4, 16));
    _idlePriorityRadio.setActionCommand(Messages.getString("idlePriority"));
    _idlePriorityRadio.setName("idlePriorityRadio");
    _idlePriorityRadio.setText(Messages.getString("idlePriority"));
    _buttongroup1.add(_idlePriorityRadio);
    jpanel1.add(_idlePriorityRadio, cc.xy(6, 16));
    _highPriorityRadio.setActionCommand(Messages.getString("highPriority"));
    _highPriorityRadio.setName("highPriorityRadio");
    _highPriorityRadio.setText(Messages.getString("highPriority"));
    _buttongroup1.add(_highPriorityRadio);
    jpanel1.add(_highPriorityRadio, cc.xy(8, 16));
    _customProcNameCheck.setActionCommand("Custom process name");
    _customProcNameCheck.setName("customProcNameCheck");
    _customProcNameCheck.setText(Messages.getString("customProcName"));
    jpanel1.add(_customProcNameCheck, cc.xywh(4, 18, 7, 1));
    _stayAliveCheck.setActionCommand("Stay alive after launching a GUI application");
    _stayAliveCheck.setName("stayAliveCheck");
    _stayAliveCheck.setText(Messages.getString("stayAlive"));
    jpanel1.add(_stayAliveCheck, cc.xywh(4, 20, 7, 1));
    _cmdLineField.setName("cmdLineField");
    _cmdLineField.setToolTipText(Messages.getString("cmdLineTip"));
    jpanel1.add(_cmdLineField, cc.xywh(4, 14, 7, 1));
    _chdirField.setName("chdirField");
    _chdirField.setToolTipText(Messages.getString("chdirTip"));
    jpanel1.add(_chdirField, cc.xywh(4, 12, 7, 1));
    _iconField.setName("iconField");
    _iconField.setToolTipText(Messages.getString("iconTip"));
    jpanel1.add(_iconField, cc.xywh(4, 10, 7, 1));
    _dontWrapJarCheck.setActionCommand("Don't wrap the jar, launch it only");
    _dontWrapJarCheck.setName("dontWrapJarCheck");
    _dontWrapJarCheck.setText(Messages.getString("dontWrapJar"));
    jpanel1.add(_dontWrapJarCheck, cc.xywh(4, 6, 7, 1));
    _jarField.setName("jarField");
    _jarField.setToolTipText(Messages.getString("jarTip"));
    jpanel1.add(_jarField, cc.xywh(4, 4, 7, 1));
    _outfileField.setName("outfileField");
    _outfileField.setToolTipText(Messages.getString("outfileTip"));
    jpanel1.add(_outfileField, cc.xywh(4, 2, 7, 1));
    TitledSeparator titledseparator1 = new TitledSeparator();
    titledseparator1.setText(Messages.getString("downloadAndSupport"));
    jpanel1.add(titledseparator1, cc.xywh(2, 22, 11, 1));
    _errorTitleLabel.setName("errorTitleLabel");
    _errorTitleLabel.setText(Messages.getString("errorTitle"));
    jpanel1.add(_errorTitleLabel, cc.xy(2, 24));
    _errorTitleField.setName("errorTitleField");
    _errorTitleField.setToolTipText(Messages.getString("errorTitleTip"));
    jpanel1.add(_errorTitleField, cc.xywh(4, 24, 7, 1));
    _downloadUrlLabel.setIcon(loadImage("images/asterix.gif"));
    _downloadUrlLabel.setName("downloadUrlLabel");
    _downloadUrlLabel.setText(Messages.getString("downloadUrl"));
    jpanel1.add(_downloadUrlLabel, cc.xy(2, 26));
    _downloadUrlField.setName("downloadUrlField");
    jpanel1.add(_downloadUrlField, cc.xywh(4, 26, 7, 1));
    _supportUrlLabel.setName("supportUrlLabel");
    _supportUrlLabel.setText(Messages.getString("supportUrl"));
    jpanel1.add(_supportUrlLabel, cc.xy(2, 28));
    _supportUrlField.setName("supportUrlField");
    jpanel1.add(_supportUrlField, cc.xywh(4, 28, 7, 1));
    JLabel jlabel1 = new JLabel();
    jlabel1.setText(Messages.getString("manifest"));
    jpanel1.add(jlabel1, cc.xy(2, 8));
    _manifestField.setName("manifestField");
    _manifestField.setToolTipText(Messages.getString("manifestTip"));
    jpanel1.add(_manifestField, cc.xywh(4, 8, 7, 1));
    _manifestButton.setIcon(loadImage("images/open16.png"));
    _manifestButton.setName("manifestButton");
    jpanel1.add(_manifestButton, cc.xy(12, 8));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JPanel(javax.swing.JPanel) TitledSeparator(com.jeta.forms.components.separator.TitledSeparator) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 3 with TitledSeparator

use of com.jeta.forms.components.separator.TitledSeparator in project cogtool by cogtool.

the class BasicForm 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:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _outfileButton.setIcon(loadImage("images/open16.png"));
    _outfileButton.setName("outfileButton");
    jpanel1.add(_outfileButton, cc.xy(12, 2));
    _outfileLabel.setIcon(loadImage("images/asterix.gif"));
    _outfileLabel.setName("outfileLabel");
    _outfileLabel.setText(Messages.getString("outfile"));
    jpanel1.add(_outfileLabel, cc.xy(2, 2));
    _iconLabel.setName("iconLabel");
    _iconLabel.setText(Messages.getString("icon"));
    jpanel1.add(_iconLabel, cc.xy(2, 10));
    _jarLabel.setIcon(loadImage("images/asterix.gif"));
    _jarLabel.setName("jarLabel");
    _jarLabel.setText(Messages.getString("jar"));
    jpanel1.add(_jarLabel, cc.xy(2, 4));
    _jarButton.setIcon(loadImage("images/open16.png"));
    _jarButton.setName("jarButton");
    jpanel1.add(_jarButton, cc.xy(12, 4));
    _iconButton.setIcon(loadImage("images/open16.png"));
    _iconButton.setName("iconButton");
    jpanel1.add(_iconButton, cc.xy(12, 10));
    _cmdLineLabel.setName("cmdLineLabel");
    _cmdLineLabel.setText(Messages.getString("cmdLine"));
    _cmdLineLabel.setToolTipText("");
    jpanel1.add(_cmdLineLabel, cc.xy(2, 14));
    _optionsLabel.setName("optionsLabel");
    _optionsLabel.setText(Messages.getString("options"));
    jpanel1.add(_optionsLabel, cc.xy(2, 18));
    _chdirLabel.setName("chdirLabel");
    _chdirLabel.setText(Messages.getString("chdir"));
    jpanel1.add(_chdirLabel, cc.xy(2, 12));
    _processPriorityLabel.setName("processPriorityLabel");
    _processPriorityLabel.setText(Messages.getString("priority"));
    jpanel1.add(_processPriorityLabel, cc.xy(2, 16));
    _normalPriorityRadio.setActionCommand(Messages.getString("normalPriority"));
    _normalPriorityRadio.setName("normalPriorityRadio");
    _normalPriorityRadio.setText(Messages.getString("normalPriority"));
    _buttongroup1.add(_normalPriorityRadio);
    jpanel1.add(_normalPriorityRadio, cc.xy(4, 16));
    _idlePriorityRadio.setActionCommand(Messages.getString("idlePriority"));
    _idlePriorityRadio.setName("idlePriorityRadio");
    _idlePriorityRadio.setText(Messages.getString("idlePriority"));
    _buttongroup1.add(_idlePriorityRadio);
    jpanel1.add(_idlePriorityRadio, cc.xy(6, 16));
    _highPriorityRadio.setActionCommand(Messages.getString("highPriority"));
    _highPriorityRadio.setName("highPriorityRadio");
    _highPriorityRadio.setText(Messages.getString("highPriority"));
    _buttongroup1.add(_highPriorityRadio);
    jpanel1.add(_highPriorityRadio, cc.xy(8, 16));
    _customProcNameCheck.setActionCommand("Custom process name");
    _customProcNameCheck.setName("customProcNameCheck");
    _customProcNameCheck.setText(Messages.getString("customProcName"));
    jpanel1.add(_customProcNameCheck, cc.xywh(4, 18, 7, 1));
    _stayAliveCheck.setActionCommand("Stay alive after launching a GUI application");
    _stayAliveCheck.setName("stayAliveCheck");
    _stayAliveCheck.setText(Messages.getString("stayAlive"));
    jpanel1.add(_stayAliveCheck, cc.xywh(4, 20, 7, 1));
    _cmdLineField.setName("cmdLineField");
    _cmdLineField.setToolTipText(Messages.getString("cmdLineTip"));
    jpanel1.add(_cmdLineField, cc.xywh(4, 14, 7, 1));
    _chdirField.setName("chdirField");
    _chdirField.setToolTipText(Messages.getString("chdirTip"));
    jpanel1.add(_chdirField, cc.xywh(4, 12, 7, 1));
    _iconField.setName("iconField");
    _iconField.setToolTipText(Messages.getString("iconTip"));
    jpanel1.add(_iconField, cc.xywh(4, 10, 7, 1));
    _dontWrapJarCheck.setActionCommand("Don't wrap the jar, launch it only");
    _dontWrapJarCheck.setName("dontWrapJarCheck");
    _dontWrapJarCheck.setText(Messages.getString("dontWrapJar"));
    jpanel1.add(_dontWrapJarCheck, cc.xywh(4, 6, 7, 1));
    _jarField.setName("jarField");
    _jarField.setToolTipText(Messages.getString("jarTip"));
    jpanel1.add(_jarField, cc.xywh(4, 4, 7, 1));
    _outfileField.setName("outfileField");
    _outfileField.setToolTipText(Messages.getString("outfileTip"));
    jpanel1.add(_outfileField, cc.xywh(4, 2, 7, 1));
    TitledSeparator titledseparator1 = new TitledSeparator();
    titledseparator1.setText(Messages.getString("downloadAndSupport"));
    jpanel1.add(titledseparator1, cc.xywh(2, 22, 11, 1));
    _errorTitleLabel.setName("errorTitleLabel");
    _errorTitleLabel.setText(Messages.getString("errorTitle"));
    jpanel1.add(_errorTitleLabel, cc.xy(2, 24));
    _errorTitleField.setName("errorTitleField");
    _errorTitleField.setToolTipText(Messages.getString("errorTitleTip"));
    jpanel1.add(_errorTitleField, cc.xywh(4, 24, 7, 1));
    _downloadUrlLabel.setIcon(loadImage("images/asterix.gif"));
    _downloadUrlLabel.setName("downloadUrlLabel");
    _downloadUrlLabel.setText(Messages.getString("downloadUrl"));
    jpanel1.add(_downloadUrlLabel, cc.xy(2, 26));
    _downloadUrlField.setName("downloadUrlField");
    jpanel1.add(_downloadUrlField, cc.xywh(4, 26, 7, 1));
    _supportUrlLabel.setName("supportUrlLabel");
    _supportUrlLabel.setText(Messages.getString("supportUrl"));
    jpanel1.add(_supportUrlLabel, cc.xy(2, 28));
    _supportUrlField.setName("supportUrlField");
    jpanel1.add(_supportUrlField, cc.xywh(4, 28, 7, 1));
    JLabel jlabel1 = new JLabel();
    jlabel1.setText(Messages.getString("manifest"));
    jpanel1.add(jlabel1, cc.xy(2, 8));
    _manifestField.setName("manifestField");
    _manifestField.setToolTipText(Messages.getString("manifestTip"));
    jpanel1.add(_manifestField, cc.xywh(4, 8, 7, 1));
    _manifestButton.setIcon(loadImage("images/open16.png"));
    _manifestButton.setName("manifestButton");
    jpanel1.add(_manifestButton, cc.xy(12, 8));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JPanel(javax.swing.JPanel) TitledSeparator(com.jeta.forms.components.separator.TitledSeparator) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 4 with TitledSeparator

use of com.jeta.forms.components.separator.TitledSeparator in project SIMRacingApps by SIMRacingApps.

the class JreForm 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:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:50DLU:GROW(1.0),CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _jrePathLabel.setName("jrePathLabel");
    _jrePathLabel.setText(Messages.getString("jrePath"));
    jpanel1.add(_jrePathLabel, cc.xy(2, 2));
    _jreMinLabel.setName("jreMinLabel");
    _jreMinLabel.setText(Messages.getString("jreMin"));
    jpanel1.add(_jreMinLabel, cc.xy(2, 6));
    _jreMaxLabel.setName("jreMaxLabel");
    _jreMaxLabel.setText(Messages.getString("jreMax"));
    jpanel1.add(_jreMaxLabel, cc.xy(2, 8));
    _jvmOptionsTextLabel.setName("jvmOptionsTextLabel");
    _jvmOptionsTextLabel.setText(Messages.getString("jvmOptions"));
    jpanel1.add(_jvmOptionsTextLabel, new CellConstraints(2, 16, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    _jreMinField.setName("jreMinField");
    jpanel1.add(_jreMinField, cc.xy(4, 6));
    _jreMaxField.setName("jreMaxField");
    jpanel1.add(_jreMaxField, cc.xy(4, 8));
    _jvmOptionsTextArea.setName("jvmOptionsTextArea");
    _jvmOptionsTextArea.setToolTipText(Messages.getString("jvmOptionsTip"));
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_jvmOptionsTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xywh(4, 16, 7, 1));
    _initialHeapSizeLabel.setName("initialHeapSizeLabel");
    _initialHeapSizeLabel.setText(Messages.getString("initialHeapSize"));
    jpanel1.add(_initialHeapSizeLabel, cc.xy(2, 12));
    _maxHeapSizeLabel.setName("maxHeapSizeLabel");
    _maxHeapSizeLabel.setText(Messages.getString("maxHeapSize"));
    jpanel1.add(_maxHeapSizeLabel, cc.xy(2, 14));
    JLabel jlabel1 = new JLabel();
    jlabel1.setText("MB");
    jpanel1.add(jlabel1, cc.xy(6, 12));
    JLabel jlabel2 = new JLabel();
    jlabel2.setText("MB");
    jpanel1.add(jlabel2, cc.xy(6, 14));
    _initialHeapSizeField.setName("initialHeapSizeField");
    jpanel1.add(_initialHeapSizeField, cc.xy(4, 12));
    _maxHeapSizeField.setName("maxHeapSizeField");
    jpanel1.add(_maxHeapSizeField, cc.xy(4, 14));
    _maxHeapPercentField.setName("maxHeapPercentField");
    jpanel1.add(_maxHeapPercentField, cc.xy(8, 14));
    _initialHeapPercentField.setName("initialHeapPercentField");
    jpanel1.add(_initialHeapPercentField, cc.xy(8, 12));
    _jdkPreferenceCombo.setName("jdkPreferenceCombo");
    jpanel1.add(_jdkPreferenceCombo, cc.xywh(8, 6, 3, 1));
    JLabel jlabel3 = new JLabel();
    jlabel3.setText(Messages.getString("availableMemory"));
    jpanel1.add(jlabel3, cc.xy(10, 12));
    JLabel jlabel4 = new JLabel();
    jlabel4.setText(Messages.getString("availableMemory"));
    jpanel1.add(jlabel4, cc.xy(10, 14));
    _runtimeBitsCombo.setName("runtimeBitsCombo");
    _runtimeBitsCombo.setToolTipText("");
    jpanel1.add(_runtimeBitsCombo, cc.xywh(8, 8, 3, 1));
    jpanel1.add(createPanel1(), cc.xywh(2, 18, 9, 1));
    TitledSeparator titledseparator1 = new TitledSeparator();
    titledseparator1.setText(Messages.getString("searchOptions"));
    jpanel1.add(titledseparator1, cc.xywh(2, 4, 9, 1));
    TitledSeparator titledseparator2 = new TitledSeparator();
    titledseparator2.setText(Messages.getString("options"));
    jpanel1.add(titledseparator2, cc.xywh(2, 10, 9, 1));
    jpanel1.add(createPanel2(), cc.xywh(4, 2, 7, 1));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) TitledSeparator(com.jeta.forms.components.separator.TitledSeparator) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 5 with TitledSeparator

use of com.jeta.forms.components.separator.TitledSeparator in project SIMRacingApps by SIMRacingApps.

the class BasicForm 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:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE", "CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _outfileButton.setIcon(loadImage("images/open16.png"));
    _outfileButton.setName("outfileButton");
    jpanel1.add(_outfileButton, cc.xy(12, 2));
    _outfileLabel.setIcon(loadImage("images/asterix.gif"));
    _outfileLabel.setName("outfileLabel");
    _outfileLabel.setText(Messages.getString("outfile"));
    jpanel1.add(_outfileLabel, cc.xy(2, 2));
    _iconLabel.setName("iconLabel");
    _iconLabel.setText(Messages.getString("icon"));
    jpanel1.add(_iconLabel, cc.xy(2, 10));
    _jarLabel.setIcon(loadImage("images/asterix.gif"));
    _jarLabel.setName("jarLabel");
    _jarLabel.setText(Messages.getString("jar"));
    jpanel1.add(_jarLabel, cc.xy(2, 4));
    _jarButton.setIcon(loadImage("images/open16.png"));
    _jarButton.setName("jarButton");
    jpanel1.add(_jarButton, cc.xy(12, 4));
    _iconButton.setIcon(loadImage("images/open16.png"));
    _iconButton.setName("iconButton");
    jpanel1.add(_iconButton, cc.xy(12, 10));
    _cmdLineLabel.setName("cmdLineLabel");
    _cmdLineLabel.setText(Messages.getString("cmdLine"));
    _cmdLineLabel.setToolTipText("");
    jpanel1.add(_cmdLineLabel, cc.xy(2, 14));
    _optionsLabel.setName("optionsLabel");
    _optionsLabel.setText(Messages.getString("options"));
    jpanel1.add(_optionsLabel, cc.xy(2, 18));
    _chdirLabel.setName("chdirLabel");
    _chdirLabel.setText(Messages.getString("chdir"));
    jpanel1.add(_chdirLabel, cc.xy(2, 12));
    _processPriorityLabel.setName("processPriorityLabel");
    _processPriorityLabel.setText(Messages.getString("priority"));
    jpanel1.add(_processPriorityLabel, cc.xy(2, 16));
    _normalPriorityRadio.setActionCommand(Messages.getString("normalPriority"));
    _normalPriorityRadio.setName("normalPriorityRadio");
    _normalPriorityRadio.setText(Messages.getString("normalPriority"));
    _buttongroup1.add(_normalPriorityRadio);
    jpanel1.add(_normalPriorityRadio, cc.xy(4, 16));
    _idlePriorityRadio.setActionCommand(Messages.getString("idlePriority"));
    _idlePriorityRadio.setName("idlePriorityRadio");
    _idlePriorityRadio.setText(Messages.getString("idlePriority"));
    _buttongroup1.add(_idlePriorityRadio);
    jpanel1.add(_idlePriorityRadio, cc.xy(6, 16));
    _highPriorityRadio.setActionCommand(Messages.getString("highPriority"));
    _highPriorityRadio.setName("highPriorityRadio");
    _highPriorityRadio.setText(Messages.getString("highPriority"));
    _buttongroup1.add(_highPriorityRadio);
    jpanel1.add(_highPriorityRadio, cc.xy(8, 16));
    _cmdLineField.setName("cmdLineField");
    _cmdLineField.setToolTipText(Messages.getString("cmdLineTip"));
    jpanel1.add(_cmdLineField, cc.xywh(4, 14, 7, 1));
    _chdirField.setName("chdirField");
    _chdirField.setToolTipText(Messages.getString("chdirTip"));
    jpanel1.add(_chdirField, cc.xywh(4, 12, 7, 1));
    _iconField.setName("iconField");
    _iconField.setToolTipText(Messages.getString("iconTip"));
    jpanel1.add(_iconField, cc.xywh(4, 10, 7, 1));
    _dontWrapJarCheck.setActionCommand("Don't wrap the jar, launch it only");
    _dontWrapJarCheck.setName("dontWrapJarCheck");
    _dontWrapJarCheck.setText(Messages.getString("dontWrapJar"));
    jpanel1.add(_dontWrapJarCheck, cc.xywh(4, 6, 7, 1));
    _jarField.setName("jarField");
    _jarField.setToolTipText(Messages.getString("jarTip"));
    jpanel1.add(_jarField, cc.xywh(4, 4, 7, 1));
    _outfileField.setName("outfileField");
    _outfileField.setToolTipText(Messages.getString("outfileTip"));
    jpanel1.add(_outfileField, cc.xywh(4, 2, 7, 1));
    TitledSeparator titledseparator1 = new TitledSeparator();
    titledseparator1.setText(Messages.getString("downloadAndSupport"));
    jpanel1.add(titledseparator1, cc.xywh(2, 22, 11, 1));
    _errorTitleLabel.setName("errorTitleLabel");
    _errorTitleLabel.setText(Messages.getString("errorTitle"));
    jpanel1.add(_errorTitleLabel, cc.xy(2, 24));
    _errorTitleField.setName("errorTitleField");
    _errorTitleField.setToolTipText(Messages.getString("errorTitleTip"));
    jpanel1.add(_errorTitleField, cc.xywh(4, 24, 7, 1));
    _downloadUrlLabel.setName("downloadUrlLabel");
    _downloadUrlLabel.setText(Messages.getString("downloadUrl"));
    jpanel1.add(_downloadUrlLabel, cc.xy(2, 26));
    _downloadUrlField.setName("downloadUrlField");
    jpanel1.add(_downloadUrlField, cc.xywh(4, 26, 7, 1));
    _supportUrlLabel.setName("supportUrlLabel");
    _supportUrlLabel.setText(Messages.getString("supportUrl"));
    jpanel1.add(_supportUrlLabel, cc.xy(2, 28));
    _supportUrlField.setName("supportUrlField");
    jpanel1.add(_supportUrlField, cc.xywh(4, 28, 7, 1));
    JLabel jlabel1 = new JLabel();
    jlabel1.setText(Messages.getString("manifest"));
    jpanel1.add(jlabel1, cc.xy(2, 8));
    _manifestField.setName("manifestField");
    _manifestField.setToolTipText(Messages.getString("manifestTip"));
    jpanel1.add(_manifestField, cc.xywh(4, 8, 7, 1));
    _manifestButton.setIcon(loadImage("images/open16.png"));
    _manifestButton.setName("manifestButton");
    jpanel1.add(_manifestButton, cc.xy(12, 8));
    _stayAliveCheck.setActionCommand("Stay alive after launching a GUI application");
    _stayAliveCheck.setName("stayAliveCheck");
    _stayAliveCheck.setText(Messages.getString("stayAlive"));
    jpanel1.add(_stayAliveCheck, cc.xywh(4, 18, 7, 1));
    _restartOnCrashCheck.setActionCommand("Restart the application after a crash");
    _restartOnCrashCheck.setName("restartOnCrashCheck");
    _restartOnCrashCheck.setText(Messages.getString("restartOnCrash"));
    _restartOnCrashCheck.setToolTipText(Messages.getString("restartOnCrashToolTip"));
    jpanel1.add(_restartOnCrashCheck, cc.xywh(4, 20, 7, 1));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JPanel(javax.swing.JPanel) TitledSeparator(com.jeta.forms.components.separator.TitledSeparator) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Aggregations

TitledSeparator (com.jeta.forms.components.separator.TitledSeparator)6 CellConstraints (com.jgoodies.forms.layout.CellConstraints)6 FormLayout (com.jgoodies.forms.layout.FormLayout)6 JLabel (javax.swing.JLabel)6 JPanel (javax.swing.JPanel)6 JScrollPane (javax.swing.JScrollPane)2