use of com.jgoodies.forms.layout.FormLayout in project cogtool by cogtool.
the class SplashForm 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: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:9DLU:NONE");
CellConstraints cc = new CellConstraints();
jpanel1.setLayout(formlayout1);
_splashFileLabel.setIcon(loadImage("images/asterix.gif"));
_splashFileLabel.setName("splashFileLabel");
_splashFileLabel.setText(Messages.getString("splashFile"));
jpanel1.add(_splashFileLabel, cc.xy(2, 4));
_waitForWindowLabel.setName("waitForWindowLabel");
_waitForWindowLabel.setText(Messages.getString("waitForWindow"));
jpanel1.add(_waitForWindowLabel, cc.xy(2, 6));
_timeoutLabel.setIcon(loadImage("images/asterix.gif"));
_timeoutLabel.setName("timeoutLabel");
_timeoutLabel.setText(Messages.getString("timeout"));
jpanel1.add(_timeoutLabel, cc.xy(2, 8));
_timeoutErrCheck.setActionCommand("Signal error on timeout");
_timeoutErrCheck.setName("timeoutErrCheck");
_timeoutErrCheck.setText(Messages.getString("timeoutErr"));
_timeoutErrCheck.setToolTipText(Messages.getString("timeoutErrTip"));
jpanel1.add(_timeoutErrCheck, cc.xywh(4, 10, 2, 1));
_splashFileField.setName("splashFileField");
_splashFileField.setToolTipText(Messages.getString("splashFileTip"));
jpanel1.add(_splashFileField, cc.xywh(4, 4, 2, 1));
_timeoutField.setName("timeoutField");
_timeoutField.setToolTipText(Messages.getString("timeoutTip"));
jpanel1.add(_timeoutField, cc.xy(4, 8));
_splashFileButton.setIcon(loadImage("images/open16.png"));
_splashFileButton.setName("splashFileButton");
jpanel1.add(_splashFileButton, cc.xy(7, 4));
_splashCheck.setActionCommand("Enable splash screen");
_splashCheck.setName("splashCheck");
_splashCheck.setText(Messages.getString("enableSplash"));
jpanel1.add(_splashCheck, cc.xywh(4, 2, 2, 1));
_waitForWindowCheck.setActionCommand("Close splash screen when an application window appears");
_waitForWindowCheck.setName("waitForWindowCheck");
_waitForWindowCheck.setText(Messages.getString("waitForWindowText"));
jpanel1.add(_waitForWindowCheck, cc.xywh(4, 6, 2, 1));
addFillComponents(jpanel1, new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 });
return jpanel1;
}
use of com.jgoodies.forms.layout.FormLayout in project intellij-leiningen-plugin by derkork.
the class LeiningenRunConfigurationSettings method createEditor.
@NotNull
protected JComponent createEditor() {
JPanel configurationPanel = new JPanel(new FormLayout("fill:50dlu:grow", "p,p,5dlu,p,p,fill:50dlu:grow"));
CellConstraints c = new CellConstraints();
configurationPanel.add(new JLabel("Working directory"), c.xy(1, 1));
this.wdSelector = new TextFieldWithBrowseButton();
this.wdSelector.addBrowseFolderListener("Select working directory", "This directory must contain a project.clj file. ", null, new FileChooserDescriptor(false, true, false, false, false, false));
configurationPanel.add(this.wdSelector, c.xy(1, 2));
configurationPanel.add(new JLabel("Goals to run (separate with space)"), c.xy(1, 4));
this.goals = new TextFieldWithAutoCompletion<String>(myProject, new TextFieldWithAutoCompletion.StringsCompletionProvider(Arrays.asList(LeiningenConstants.GOALS), null), true, null);
configurationPanel.add(this.goals, c.xy(1, 5));
return configurationPanel;
}
use of com.jgoodies.forms.layout.FormLayout in project antlrworks by antlr.
the class DialogGenerate method initComponents.
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
// Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org)
dialogPane = new JPanel();
contentPane = new JPanel();
label1 = new JLabel();
outputPathField = new JTextField();
browseButton = new JButton();
debugInfoButton = new JCheckBox();
buttonBar = new JPanel();
okButton = new JButton();
cancelButton = new JButton();
CellConstraints cc = new CellConstraints();
//======== this ========
setTitle("Generate");
Container contentPane2 = getContentPane();
contentPane2.setLayout(new BorderLayout());
//======== dialogPane ========
{
dialogPane.setBorder(Borders.DIALOG_BORDER);
dialogPane.setLayout(new BorderLayout());
//======== contentPane ========
{
contentPane.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;200dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
//---- label1 ----
label1.setText("Output path:");
label1.setHorizontalAlignment(SwingConstants.RIGHT);
contentPane.add(label1, cc.xy(1, 1));
contentPane.add(outputPathField, cc.xy(3, 1));
//---- browseButton ----
browseButton.setText("Browse...");
contentPane.add(browseButton, cc.xy(5, 1));
//---- debugInfoButton ----
debugInfoButton.setText("Debug information");
contentPane.add(debugInfoButton, cc.xy(3, 3));
}
dialogPane.add(contentPane, BorderLayout.CENTER);
//======== buttonBar ========
{
buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
buttonBar.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref")));
//---- okButton ----
okButton.setText("OK");
buttonBar.add(okButton, cc.xy(2, 1));
//---- cancelButton ----
cancelButton.setText("Cancel");
buttonBar.add(cancelButton, cc.xy(4, 1));
}
dialogPane.add(buttonBar, BorderLayout.SOUTH);
}
contentPane2.add(dialogPane, BorderLayout.CENTER);
pack();
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
use of com.jgoodies.forms.layout.FormLayout 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;
}
use of com.jgoodies.forms.layout.FormLayout 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;
}
Aggregations