Search in sources :

Example 1 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.

the class ConfigForm method createPanel.

public JPanel createPanel() {
    JPanel jpanel1 = new JPanel();
    FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE", "CENTER:3DLU:NONE,FILL:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _logTextArea.setName("logTextArea");
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_logTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xy(2, 6));
    _logSeparator.setName("logSeparator");
    _logSeparator.setText(Messages.getString("log"));
    jpanel1.add(_logSeparator, cc.xy(2, 4));
    _tab.setName("tab");
    jpanel1.add(_tab, cc.xywh(1, 2, 3, 1));
    addFillComponents(jpanel1, new int[] { 1, 2, 3 }, new int[] { 1, 3, 4, 5, 6, 7 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 2 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.

the class EnvironmentVarsForm 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:GROW(1.0),FILL:7DLU:NONE", "CENTER:9DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _envVarsTextArea.setName("envVarsTextArea");
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_envVarsTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xy(4, 2));
    _envVarsLabel.setName("envVarsLabel");
    _envVarsLabel.setText(Messages.getString("setVariables"));
    jpanel1.add(_envVarsLabel, new CellConstraints(2, 2, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5 }, new int[] { 1, 2, 3 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 3 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.

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: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"));
    _headerButtonGroup.add(_guiHeaderRadio);
    jpanel1.add(_guiHeaderRadio, cc.xy(4, 2));
    _consoleHeaderRadio.setActionCommand("Console");
    _consoleHeaderRadio.setName("consoleHeaderRadio");
    _consoleHeaderRadio.setText(Messages.getString("console"));
    _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, 4, 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, 4, 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, 6, 1));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 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) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 4 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.

the class ClassPathForm 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:GROW(1.0),FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,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:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);
    _classpathField.setName("classpathField");
    jpanel1.add(_classpathField, cc.xywh(4, 11, 7, 1));
    _classpathFieldLabel.setIcon(loadImage("images/asterix.gif"));
    _classpathFieldLabel.setName("classpathFieldLabel");
    _classpathFieldLabel.setText(Messages.getString("editClassPath"));
    jpanel1.add(_classpathFieldLabel, cc.xy(2, 11));
    _classpathListLabel.setName("classpathListLabel");
    _classpathListLabel.setText(Messages.getString("classPath"));
    jpanel1.add(_classpathListLabel, cc.xy(2, 6));
    _classpathList.setName("classpathList");
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_classpathList);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xywh(4, 6, 7, 4));
    _mainclassLabel.setIcon(loadImage("images/asterix.gif"));
    _mainclassLabel.setName("mainclassLabel");
    _mainclassLabel.setText(Messages.getString("mainClass"));
    jpanel1.add(_mainclassLabel, cc.xy(2, 4));
    _mainclassField.setName("mainclassField");
    jpanel1.add(_mainclassField, cc.xywh(4, 4, 7, 1));
    _acceptClasspathButton.setActionCommand("Add");
    _acceptClasspathButton.setIcon(loadImage("images/ok16.png"));
    _acceptClasspathButton.setName("acceptClasspathButton");
    _acceptClasspathButton.setText(Messages.getString("accept"));
    jpanel1.add(_acceptClasspathButton, cc.xy(8, 13));
    _removeClasspathButton.setActionCommand("Remove");
    _removeClasspathButton.setIcon(loadImage("images/cancel16.png"));
    _removeClasspathButton.setName("removeClasspathButton");
    _removeClasspathButton.setText(Messages.getString("remove"));
    jpanel1.add(_removeClasspathButton, cc.xy(10, 13));
    _importClasspathButton.setIcon(loadImage("images/open16.png"));
    _importClasspathButton.setName("importClasspathButton");
    _importClasspathButton.setToolTipText(Messages.getString("importClassPath"));
    jpanel1.add(_importClasspathButton, cc.xy(12, 4));
    _classpathUpButton.setIcon(loadImage("images/up16.png"));
    _classpathUpButton.setName("classpathUpButton");
    jpanel1.add(_classpathUpButton, cc.xy(12, 6));
    _classpathDownButton.setIcon(loadImage("images/down16.png"));
    _classpathDownButton.setName("classpathDownButton");
    jpanel1.add(_classpathDownButton, cc.xy(12, 8));
    _classpathCheck.setActionCommand("Custom classpath");
    _classpathCheck.setName("classpathCheck");
    _classpathCheck.setText(Messages.getString("customClassPath"));
    jpanel1.add(_classpathCheck, cc.xy(4, 2));
    _newClasspathButton.setActionCommand("New");
    _newClasspathButton.setIcon(loadImage("images/new16.png"));
    _newClasspathButton.setName("newClasspathButton");
    _newClasspathButton.setText(Messages.getString("new"));
    jpanel1.add(_newClasspathButton, cc.xy(6, 13));
    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 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 5 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.

the class SingleInstanceForm 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:DEFAULT:GROW(1.0),FILL:7DLU:NONE", "CENTER:9DLU: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);
    _splashFileLabel.setIcon(loadImage("images/asterix.gif"));
    _splashFileLabel.setName("splashFileLabel");
    _splashFileLabel.setText(Messages.getString("mutexName"));
    jpanel1.add(_splashFileLabel, cc.xy(2, 4));
    _mutexNameField.setName("mutexNameField");
    _mutexNameField.setToolTipText(Messages.getString("mutexNameTip"));
    jpanel1.add(_mutexNameField, cc.xywh(4, 4, 2, 1));
    _singleInstanceCheck.setActionCommand("Enable splash screen");
    _singleInstanceCheck.setName("singleInstanceCheck");
    _singleInstanceCheck.setText(Messages.getString("enableSingleInstance"));
    jpanel1.add(_singleInstanceCheck, cc.xywh(4, 2, 2, 1));
    _windowTitleField.setName("windowTitleField");
    _windowTitleField.setToolTipText(Messages.getString("windowTitleTip"));
    jpanel1.add(_windowTitleField, cc.xywh(4, 6, 2, 1));
    _splashFileLabel1.setName("splashFileLabel");
    _splashFileLabel1.setText(Messages.getString("windowTitle"));
    jpanel1.add(_splashFileLabel1, cc.xy(2, 6));
    addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6 }, new int[] { 1, 2, 3, 4, 5, 6, 7 });
    return jpanel1;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JPanel(javax.swing.JPanel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Aggregations

FormLayout (com.jgoodies.forms.layout.FormLayout)318 CellConstraints (com.jgoodies.forms.layout.CellConstraints)136 DefaultFormBuilder (com.jgoodies.forms.builder.DefaultFormBuilder)128 JPanel (javax.swing.JPanel)109 JScrollPane (javax.swing.JScrollPane)76 PanelBuilder (com.jgoodies.forms.builder.PanelBuilder)63 JLabel (javax.swing.JLabel)55 JButton (javax.swing.JButton)41 BorderLayout (java.awt.BorderLayout)32 FormBuilder (com.jgoodies.forms.builder.FormBuilder)19 JTextField (javax.swing.JTextField)19 ButtonBarBuilder (com.jgoodies.forms.builder.ButtonBarBuilder)18 JCheckBox (javax.swing.JCheckBox)18 Dimension (java.awt.Dimension)12 ActionEvent (java.awt.event.ActionEvent)12 DatePanel (jgnash.ui.components.DatePanel)11 TextAdapter (org.apache.cayenne.modeler.util.TextAdapter)11 JRadioButton (javax.swing.JRadioButton)10 ActionListener (java.awt.event.ActionListener)9 AbstractAction (javax.swing.AbstractAction)9