List of usage examples for com.jgoodies.forms.layout CellConstraints xywh
public CellConstraints xywh(int col, int row, int colSpan, int rowSpan)
Examples:
cc.xywh(1, 3, 2, 1); cc.xywh(1, 3, 7, 3);
From source file:net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolMissingIndicesFrame.java
License:Open Source License
public JPanel createPanel() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout( "FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE", "CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setLayout(formlayout1);// w w w . j a va 2 s.co m pbMain.setName("pbMain"); pbMain.setValue(25); jpanel1.add(pbMain, cc.xywh(2, 15, 3, 1)); jpanel1.add(createpanelTableAndColumn(), cc.xy(2, 2)); jpanel1.add(createpanelButton(), cc.xy(4, 2)); lblTitleTableResult.setBackground(new Color(102, 102, 102)); lblTitleTableResult.setName("lblTitleTableResult"); lblTitleTableResult.setOpaque(true); lblTitleTableResult.setText(" Searching for ..."); jpanel1.add(lblTitleTableResult, cc.xy(2, 4)); lblFooterTableResult.setBackground(new Color(102, 102, 102)); lblFooterTableResult.setName("lblFooterTableResult"); lblFooterTableResult.setOpaque(true); lblFooterTableResult.setText(" Finshed in ..."); jpanel1.add(lblFooterTableResult, cc.xywh(2, 13, 3, 1)); btnPrint.setActionCommand("Print"); btnPrint.setName("btnPrint"); btnPrint.setText("Print"); jpanel1.add(btnPrint, cc.xy(4, 4)); tblResult.setName("tblResult"); JScrollPane jscrollpane1 = new JScrollPane(); jscrollpane1.setViewportView(tblResult); jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); jpanel1.add(jscrollpane1, cc.xywh(2, 7, 1, 5)); btnDdl.setActionCommand("ddl"); btnDdl.setName("btnDdl"); btnDdl.setText("ddl"); btnDdl.setToolTipText("create ddl statement for primary key or unique index"); jpanel1.add(btnDdl, cc.xy(4, 7)); btnRecordCount.setActionCommand("records"); btnRecordCount.setName("btnRecordCount"); btnRecordCount.setText("records"); btnRecordCount.setToolTipText("determine the record count of the displayed tables"); jpanel1.add(btnRecordCount, cc.xy(4, 9)); return jpanel1; }
From source file:net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolMissingIndicesFrame.java
License:Open Source License
public JPanel createpanelTableAndColumn() { JPanel panelTableAndColumn = new JPanel(); panelTableAndColumn.setName("panelTableAndColumn"); EtchedBorder etchedborder1 = new EtchedBorder(EtchedBorder.RAISED, null, null); panelTableAndColumn.setBorder(etchedborder1); FormLayout formlayout1 = new FormLayout( "FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); CellConstraints cc = new CellConstraints(); panelTableAndColumn.setLayout(formlayout1); lblTitleTable.setBackground(new Color(102, 102, 102)); lblTitleTable.setName("lblTitleTable"); lblTitleTable.setOpaque(true);//from w w w .java 2 s. c o m lblTitleTable.setText(" Used tables"); panelTableAndColumn.add(lblTitleTable, cc.xywh(1, 1, 5, 1)); lblTablename.setName("lblTablename"); lblTablename.setText("table name"); panelTableAndColumn.add(lblTablename, cc.xy(2, 3)); tfTablename.setName("tfTablename"); panelTableAndColumn.add(tfTablename, cc.xy(4, 3)); panelTableAndColumn.add(createpanelDisplayType(), cc.xy(4, 5)); lblDisplayType.setName("lblDisplayType"); lblDisplayType.setText("display"); panelTableAndColumn.add(lblDisplayType, cc.xy(2, 5)); return panelTableAndColumn; }
From source file:net.sourceforge.squirrel_sql.plugins.sqlparam.gui.AskParamValueDialog.java
License:Open Source License
private Component createMainPanel() { value.setColumns(20);//from w w w .j a v a 2 s .c o m value.setText(oldValue); value.getDocument().addDocumentListener(new DocumentListener() { public void changedUpdate(DocumentEvent e) { AskParamValueDialog.this.updateCheckbox(); } public void insertUpdate(DocumentEvent e) { AskParamValueDialog.this.updateCheckbox(); } public void removeUpdate(DocumentEvent e) { AskParamValueDialog.this.updateCheckbox(); } }); updateCheckbox(); btnsPnl.addListener(new MyOkClosePanelListener()); final FormLayout layout = new FormLayout( // Columns "right:pref, 8dlu, left:min(100dlu;pref):grow", // Rows "pref, 6dlu, pref, 6dlu, pref, 6dlu, pref, 6dlu, pref, 3dlu, pref, 3dlu, pref"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.setDefaultDialogBorder(); int y = 1; builder.addSeparator(getTitle(), cc.xywh(1, y, 3, 1)); y += 2; //i18n[sqlparam.valueFor=Value for {0}] builder.addLabel(stringMgr.getString("sqlparam.valueFor", parameter), cc.xy(1, y)); builder.add(value, cc.xywh(3, y, 1, 1)); y += 2; //i18n[sqlparam.quoteValues=Quote Values] builder.addLabel(stringMgr.getString("sqlparam.quoteValues"), cc.xy(1, y)); builder.add(quote, cc.xywh(3, y, 1, 1)); y += 2; builder.addSeparator("", cc.xywh(1, y, 3, 1)); y += 2; builder.add(btnsPnl, cc.xywh(1, y, 3, 1)); return builder.getPanel(); }
From source file:net.xeoh.plugins.diagnosisreader.ui.MainWindowTemplate.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license this.dropPanel = new DropPanel(); this.converter = new JComboBox(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Diagnosis Converter"); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); Container contentPane = getContentPane(); contentPane.setLayout(//from ww w . j a va 2 s .c o m new FormLayout("pref, $rgap, center:pref:grow, $lcgap, pref", "pref:grow, $lgap, default")); contentPane.add(this.dropPanel, cc.xywh(1, 1, 5, 2)); contentPane.add(this.converter, cc.xy(3, 3)); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.accada.reader.rp.client.ParameterPanel.java
License:Open Source License
private void layoutComponents() { FormLayout layout = new FormLayout("65dlu, 4dlu, 50dlu, left:pref:grow,4dlu,pref,4dlu,pref", // columns "pref, 2dlu, pref, 4dlu, pref, 2dlu, top:35dlu"); // rows setLayout(layout);//from w w w.j a v a 2 s .com CellConstraints cc = new CellConstraints(); add(paramLabel, cc.xy(1, 1)); add(typeComboBox, cc.xy(1, 3)); add(valField, cc.xywh(3, 3, 2, 1)); add(addButton, cc.xy(6, 3)); add(changeButton, cc.xy(8, 3)); add(new JScrollPane(paramList), cc.xywh(1, 5, 4, 3)); add(removeParamButton, cc.xy(6, 5)); add(removeAllParamButton, cc.xy(6, 7)); }
From source file:org.accada.reader.rp.client.TestClient.java
License:Open Source License
/** * Creates the panel with the UI to create a command. * @return Panel with the command UI.// w w w . j a va2s . c om */ private JPanel getCommandCreatorPanel() { JPanel cmdCreatorPanel = new JPanel(); cmdCreatorPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Command"), BorderFactory.createEmptyBorder(5, 5, 5, 5)), cmdCreatorPanel.getBorder())); FormLayout layout = new FormLayout("65dlu, 4dlu, left:pref:grow , 4dlu ,4dlu,pref", // columns "pref, 2dlu, pref, 2dlu, pref, 8dlu, pref"); // rows cmdCreatorPanel.setLayout(layout); objLabel = new JLabel("Object"); cmdLabel = new JLabel("Command"); objComboBox = new JComboBox(); objComboBox.setModel(new ObjectComboBoxModel()); objComboBox.addActionListener(new ObjectChangeAction(this)); targetLabel = new JLabel("Target:"); targetField = new JTextField(); createCmdButton = new JButton(); createCmdButton.setAction(new CreateCommandAction(this)); cmdComboBox = new JComboBox(); cmdComboBox.setModel(MethodComboBoxModel.getInstance().rdModel); parameterPanel = new ParameterPanel(this); CellConstraints cc = new CellConstraints(); cmdCreatorPanel.add(objLabel, cc.xy(1, 1)); cmdCreatorPanel.add(cmdLabel, cc.xy(3, 1)); cmdCreatorPanel.add(objComboBox, cc.xy(1, 3)); cmdCreatorPanel.add(cmdComboBox, cc.xywh(3, 3, 2, 1)); cmdCreatorPanel.add(createCmdButton, cc.xy(6, 3)); cmdCreatorPanel.add(targetLabel, cc.xy(1, 5)); cmdCreatorPanel.add(targetField, cc.xywh(3, 5, 2, 1)); cmdCreatorPanel.add(parameterPanel, cc.xywh(1, 7, 6, 1)); return cmdCreatorPanel; }
From source file:org.accada.reader.rp.client.TestClient.java
License:Open Source License
/** * Creates the top-most panel with all the connection related * suff.//www .ja v a 2 s .c o m * * @return */ private JPanel getConnectPanel() { JPanel connectPanel = new JPanel(); connectPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Connection"), BorderFactory.createEmptyBorder(5, 5, 5, 5)), connectPanel.getBorder())); FormLayout layout = new FormLayout("pref, 4dlu, pref , left:pref:grow, 4dlu,pref,4dlu, pref, 4dlu, pref", // columns "pref, 2dlu, pref, 1dlu, pref"); // rows connectPanel.setLayout(layout); hostField = new JTextField("localhost"); portField = new JTextField("8000"); hostLabel = new JLabel("Host: "); portLabel = new JLabel("Port: "); formatLabel = new JLabel("Format:"); transportLabel = new JLabel("Transport:"); connectButton = new JButton(); connectButton.setAction(new ConnectAction(this)); ButtonGroup connectionGroup = new ButtonGroup(); tcpConnectionButton = new JRadioButton(); tcpConnectionButton.setAction(new SetTransportProtocolTcp(this)); httpConnectionButton = new JRadioButton(); httpConnectionButton.setAction(new SetTransportProtocolHttp(this)); httpConnectionButton.setSelected(true); handshake.setTransportProtocol(Handshake.HTTP); ButtonGroup formatGroup = new ButtonGroup(); xmlFormatButton = new JRadioButton(); ; xmlFormatButton.setAction(new SetMessageFormatXML(this)); textFormatButton = new JRadioButton(); textFormatButton.setAction(new SetMessageFormatText(this)); xmlFormatButton.setSelected(true); handshake.setMessageFormat(Handshake.FORMAT_XML); /*//Shows the EPC logo ImageIcon epcLogo = createImageIcon("resources/epc_logo.gif"); JLabel logoLabel = new JLabel(); logoLabel.setIcon(epcLogo); */ CellConstraints cc = new CellConstraints(); connectionGroup.add(tcpConnectionButton); connectionGroup.add(httpConnectionButton); formatGroup.add(xmlFormatButton); formatGroup.add(textFormatButton); connectPanel.add(hostLabel, cc.xy(1, 1)); connectPanel.add(hostField, cc.xywh(3, 1, 3, 1)); connectPanel.add(portLabel, cc.xy(6, 1)); connectPanel.add(portField, cc.xy(8, 1)); connectPanel.add(transportLabel, cc.xy(1, 3)); connectPanel.add(tcpConnectionButton, cc.xy(3, 3)); connectPanel.add(httpConnectionButton, cc.xy(4, 3)); connectPanel.add(formatLabel, cc.xy(1, 5)); connectPanel.add(xmlFormatButton, cc.xy(3, 5)); connectPanel.add(textFormatButton, cc.xy(4, 5)); connectPanel.add(connectButton, cc.xy(10, 1)); // connectPanel.add(logoLabel, cc.xywh(5,3,6,3)); return connectPanel; }
From source file:org.antlr.works.dialog.AWPrefsDialog.java
License:BSD License
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(); tabbedPane1 = new JTabbedPane(); tabGeneral = new JPanel(); label2 = new JLabel(); label5 = new JLabel(); lafCombo = new JComboBox(); startupActionCombo = new JComboBox(); restoreWindowsBoundButton = new JCheckBox(); desktopModeButton = new JCheckBox(); label25 = new JLabel(); outputPathField = new JTextField(); browseOutputPathButton = new JButton(); label24 = new JLabel(); dotToolPathField = new JTextField(); browseDotToolPathButton = new JButton(); label37 = new JLabel(); antlr3OptionsField = new JTextField(); tabEditor = new JPanel(); label3 = new JLabel(); editorFontCombo = new JComboBox(); editorFontSizeSpinner = new JSpinner(); autoSaveButton = new JCheckBox(); autoSaveDelayField = new JTextField(); label11 = new JLabel(); backupFileButton = new JCheckBox(); highlightCursorLineButton = new JCheckBox(); smoothScrollingButton = new JCheckBox(); autoIndentColonInRuleButton = new JCheckBox(); showLineNumbers = new JCheckBox(); vstyleAutocompletionButton = new JCheckBox(); label1 = new JLabel(); tabWidthField = new JTextField(); label22 = new JLabel(); parserDelayField = new JTextField(); label23 = new JLabel(); tabSyntax = new JPanel(); label26 = new JLabel(); parserColorPanel = new JPanel(); parserBoldButton = new JCheckBox(); parserItalicButton = new JCheckBox(); label27 = new JLabel(); lexerColorPanel = new JPanel(); lexerBoldButton = new JCheckBox(); lexerItalicButton = new JCheckBox(); label28 = new JLabel(); labelColorPanel = new JPanel(); labelsBoldButton = new JCheckBox(); labelsItalicButton = new JCheckBox(); label29 = new JLabel(); refsActionColorPanel = new JPanel(); refsActionBoldButton = new JCheckBox(); refsActionItalicButton = new JCheckBox(); label38 = new JLabel(); blockLabelsColorPanel = new JPanel(); blockLabelsBoldButton = new JCheckBox(); blockLabelsItalicButton = new JCheckBox(); label30 = new JLabel(); commentsColorPanel = new JPanel(); commentsBoldButton = new JCheckBox(); commentsItalicButton = new JCheckBox(); label31 = new JLabel(); stringsColorPanel = new JPanel(); stringsBoldButton = new JCheckBox(); stringsItalicButton = new JCheckBox(); label32 = new JLabel(); keywordsColorPanel = new JPanel(); keywordsBoldButton = new JCheckBox(); keywordsItalicButton = new JCheckBox(); syntaxDefaultButton = new JButton(); tabCompiler = new JPanel(); jikesRadio = new JRadioButton(); integratedRadio = new JRadioButton(); javacRadio = new JRadioButton(); javacCustomPathButton = new JCheckBox(); javacPathField = new JTextField(); browseJavacPath = new JButton(); label4 = new JLabel(); jikesPathField = new JTextField(); browseJikesPath = new JButton(); label9 = new JLabel(); classpathSystemButton = new JCheckBox(); classpathCustomButton = new JCheckBox(); customClasspathField = new JTextField(); browseCustomClassPathButton = new JButton(); tabDebugger = new JPanel(); label33 = new JLabel(); debugDefaultLocalPortField = new JTextField(); label34 = new JLabel(); debugLaunchTimeoutField = new JTextField(); label35 = new JLabel(); label12 = new JLabel(); debugNonConsumedColorPanel = new JPanel(); label13 = new JLabel(); debugConsumedColorPanel = new JPanel(); label14 = new JLabel(); debugHiddenColorPanel = new JPanel(); label15 = new JLabel(); debugDeadColorPanel = new JPanel(); label16 = new JLabel(); debugLTColorPanel = new JPanel(); label36 = new JLabel(); detachablePanelChildrenButton = new JCheckBox(); askGenButton = new JCheckBox(); panel1 = new JPanel(); label8 = new JLabel(); checkGrammarSuccessButton = new JCheckBox(); generateCodeSuccessButton = new JCheckBox(); fileModifiedOnDiskButton = new JCheckBox(); interpreterLimitationButton = new JCheckBox(); label6 = new JLabel(); clearConsoleBeforeCheckButton = new JCheckBox(); tabUpdates = new JPanel(); label7 = new JLabel(); updateTypeCombo = new JComboBox(); checkForUpdatesButton = new JButton(); label10 = new JLabel(); downloadPathField = new JTextField(); browseUpdateDownloadPathButton = new JButton(); tabTestRig = new JPanel(); label17 = new JLabel(); testRigLanguageComboBox = new JComboBox(); testRigDefaultRadio = new JRadioButton(); testRigTextRadio = new JRadioButton(); scrollPane1 = new JScrollPane(); testTextArea = new JTextPane(); buttonBar = new JPanel(); applyButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Preferences"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); //======== dialogPane ======== {/*w ww. ja v a2s .c o m*/ dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setMinimumSize(new Dimension(540, 350)); dialogPane.setLayout(new BorderLayout()); //======== contentPane ======== { contentPane.setLayout(new FormLayout("default, default:grow", "fill:default:grow")); //======== tabbedPane1 ======== { //======== tabGeneral ======== { tabGeneral.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;20dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;40dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label2 ---- label2.setText("At startup:"); tabGeneral.add(label2, cc.xy(3, 3)); //---- label5 ---- label5.setText("Look and feel:"); tabGeneral.add(label5, cc.xy(3, 7)); tabGeneral.add(lafCombo, cc.xywh(5, 7, 3, 1)); //---- startupActionCombo ---- startupActionCombo.setModel(new DefaultComboBoxModel(new String[] { "Create a new document", "Open the last opened document", "Open the last saved document", "Open all opened documents when ANTLRWorks was closed" })); tabGeneral.add(startupActionCombo, cc.xywh(5, 3, 3, 1)); //---- restoreWindowsBoundButton ---- restoreWindowsBoundButton.setText("Restore project's windows position and size"); tabGeneral.add(restoreWindowsBoundButton, cc.xywh(5, 5, 3, 1)); //---- desktopModeButton ---- desktopModeButton.setText("Desktop Mode"); desktopModeButton .setToolTipText("This option will take effect after restarting ANTLRWorks"); tabGeneral.add(desktopModeButton, cc.xywh(5, 9, 3, 1)); //---- label25 ---- label25.setText("Output path:"); tabGeneral.add(label25, cc.xy(3, 11)); //---- outputPathField ---- outputPathField.setToolTipText( "Relative path will be generated in the same directory as the grammar itself"); tabGeneral.add(outputPathField, cc.xywh(5, 11, 3, 1)); //---- browseOutputPathButton ---- browseOutputPathButton.setText("Browse..."); tabGeneral.add(browseOutputPathButton, cc.xy(9, 11)); //---- label24 ---- label24.setText("DOT path:"); tabGeneral.add(label24, cc.xy(3, 13)); //---- dotToolPathField ---- dotToolPathField.setToolTipText("Absolute path to the DOT command-line tool"); tabGeneral.add(dotToolPathField, cc.xywh(5, 13, 3, 1)); //---- browseDotToolPathButton ---- browseDotToolPathButton.setText("Browse..."); tabGeneral.add(browseDotToolPathButton, cc.xy(9, 13)); //---- label37 ---- label37.setText("ANTLR options:"); tabGeneral.add(label37, cc.xy(3, 15)); tabGeneral.add(antlr3OptionsField, cc.xywh(5, 15, 3, 1)); } tabbedPane1.addTab("General", tabGeneral); //======== tabEditor ======== { tabEditor.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;45dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- label3 ---- label3.setText("Font:"); tabEditor.add(label3, cc.xy(3, 3)); //---- editorFontCombo ---- editorFontCombo.setActionCommand("editorFontCombo"); tabEditor.add(editorFontCombo, cc.xywh(5, 3, 5, 1)); //---- editorFontSizeSpinner ---- editorFontSizeSpinner.setModel(new SpinnerNumberModel(12, 8, null, 1)); tabEditor.add(editorFontSizeSpinner, cc.xy(11, 3)); //---- autoSaveButton ---- autoSaveButton.setText("Auto-save every"); tabEditor.add(autoSaveButton, cc.xywh(5, 5, 3, 1)); tabEditor.add(autoSaveDelayField, cc.xy(9, 5)); //---- label11 ---- label11.setText("minutes"); tabEditor.add(label11, cc.xy(11, 5)); //---- backupFileButton ---- backupFileButton.setText("Create backup file"); tabEditor.add(backupFileButton, cc.xywh(5, 7, 5, 1)); //---- highlightCursorLineButton ---- highlightCursorLineButton.setText("Highlight cursor line"); tabEditor.add(highlightCursorLineButton, cc.xywh(5, 9, 5, 1)); //---- smoothScrollingButton ---- smoothScrollingButton.setText("Smooth scrolling"); tabEditor.add(smoothScrollingButton, cc.xywh(5, 11, 3, 1)); //---- autoIndentColonInRuleButton ---- autoIndentColonInRuleButton.setText("Auto-indent ':' in rule"); tabEditor.add(autoIndentColonInRuleButton, cc.xywh(5, 13, 7, 1)); //---- showLineNumbers ---- showLineNumbers.setText("Show line numbers"); tabEditor.add(showLineNumbers, cc.xywh(5, 15, 5, 1)); //---- vstyleAutocompletionButton ---- vstyleAutocompletionButton.setText("Visual Studio auto-completion menu"); vstyleAutocompletionButton.setToolTipText( "Displayed when a space is pressed, remember previous auto-completed word, continues to auto-complete without decreasing the word choice as you type"); tabEditor.add(vstyleAutocompletionButton, cc.xywh(5, 17, 9, 1)); //---- label1 ---- label1.setText("Tab width:"); label1.setHorizontalAlignment(SwingConstants.RIGHT); tabEditor.add(label1, cc.xy(3, 19)); //---- tabWidthField ---- tabWidthField.setText("8"); tabEditor.add(tabWidthField, cc.xy(5, 19)); //---- label22 ---- label22.setText("Update delay:"); tabEditor.add(label22, cc.xy(3, 21)); //---- parserDelayField ---- parserDelayField.setText("250"); tabEditor.add(parserDelayField, cc.xy(5, 21)); //---- label23 ---- label23.setText("ms"); tabEditor.add(label23, cc.xy(7, 21)); } tabbedPane1.addTab("Editor", tabEditor); //======== tabSyntax ======== { tabSyntax.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label26 ---- label26.setText("Parser References:"); tabSyntax.add(label26, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== parserColorPanel ======== { parserColorPanel.setForeground(Color.black); parserColorPanel.setPreferredSize(new Dimension(70, 20)); parserColorPanel.setBackground(new Color(255, 255, 51)); parserColorPanel.setBorder(LineBorder.createBlackLineBorder()); parserColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(parserColorPanel, cc.xy(5, 3)); //---- parserBoldButton ---- parserBoldButton.setText("Bold"); parserBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(parserBoldButton, cc.xy(7, 3)); //---- parserItalicButton ---- parserItalicButton.setText("Italic"); parserItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(parserItalicButton, cc.xy(9, 3)); //---- label27 ---- label27.setText("Lexer References:"); tabSyntax.add(label27, cc.xy(3, 5)); //======== lexerColorPanel ======== { lexerColorPanel.setForeground(Color.black); lexerColorPanel.setPreferredSize(new Dimension(70, 20)); lexerColorPanel.setBackground(new Color(255, 255, 51)); lexerColorPanel.setBorder(LineBorder.createBlackLineBorder()); lexerColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(lexerColorPanel, cc.xy(5, 5)); //---- lexerBoldButton ---- lexerBoldButton.setText("Bold"); lexerBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(lexerBoldButton, cc.xy(7, 5)); //---- lexerItalicButton ---- lexerItalicButton.setText("Italic"); lexerItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(lexerItalicButton, cc.xy(9, 5)); //---- label28 ---- label28.setText("Labels:"); tabSyntax.add(label28, cc.xy(3, 7)); //======== labelColorPanel ======== { labelColorPanel.setForeground(Color.black); labelColorPanel.setPreferredSize(new Dimension(70, 20)); labelColorPanel.setBackground(new Color(255, 255, 51)); labelColorPanel.setBorder(LineBorder.createBlackLineBorder()); labelColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(labelColorPanel, cc.xy(5, 7)); //---- labelsBoldButton ---- labelsBoldButton.setText("Bold"); labelsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(labelsBoldButton, cc.xy(7, 7)); //---- labelsItalicButton ---- labelsItalicButton.setText("Italic"); labelsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(labelsItalicButton, cc.xy(9, 7)); //---- label29 ---- label29.setText("References in action:"); tabSyntax.add(label29, cc.xy(3, 9)); //======== refsActionColorPanel ======== { refsActionColorPanel.setForeground(Color.black); refsActionColorPanel.setPreferredSize(new Dimension(70, 20)); refsActionColorPanel.setBackground(new Color(255, 255, 51)); refsActionColorPanel.setBorder(LineBorder.createBlackLineBorder()); refsActionColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(refsActionColorPanel, cc.xy(5, 9)); //---- refsActionBoldButton ---- refsActionBoldButton.setText("Bold"); refsActionBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(refsActionBoldButton, cc.xy(7, 9)); //---- refsActionItalicButton ---- refsActionItalicButton.setText("Italic"); refsActionItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(refsActionItalicButton, cc.xy(9, 9)); //---- label38 ---- label38.setText("Blocks:"); tabSyntax.add(label38, cc.xy(3, 11)); //======== blockLabelsColorPanel ======== { blockLabelsColorPanel.setForeground(Color.black); blockLabelsColorPanel.setPreferredSize(new Dimension(70, 20)); blockLabelsColorPanel.setBackground(new Color(255, 255, 51)); blockLabelsColorPanel.setBorder(LineBorder.createBlackLineBorder()); blockLabelsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(blockLabelsColorPanel, cc.xy(5, 11)); //---- blockLabelsBoldButton ---- blockLabelsBoldButton.setText("Bold"); blockLabelsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(blockLabelsBoldButton, cc.xy(7, 11)); //---- blockLabelsItalicButton ---- blockLabelsItalicButton.setText("Italic"); blockLabelsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(blockLabelsItalicButton, cc.xy(9, 11)); //---- label30 ---- label30.setText("Comments:"); tabSyntax.add(label30, cc.xy(3, 13)); //======== commentsColorPanel ======== { commentsColorPanel.setForeground(Color.black); commentsColorPanel.setPreferredSize(new Dimension(70, 20)); commentsColorPanel.setBackground(new Color(255, 255, 51)); commentsColorPanel.setBorder(LineBorder.createBlackLineBorder()); commentsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(commentsColorPanel, cc.xy(5, 13)); //---- commentsBoldButton ---- commentsBoldButton.setText("Bold"); commentsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(commentsBoldButton, cc.xy(7, 13)); //---- commentsItalicButton ---- commentsItalicButton.setText("Italic"); commentsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(commentsItalicButton, cc.xy(9, 13)); //---- label31 ---- label31.setText("Strings:"); tabSyntax.add(label31, cc.xy(3, 15)); //======== stringsColorPanel ======== { stringsColorPanel.setForeground(Color.black); stringsColorPanel.setPreferredSize(new Dimension(70, 20)); stringsColorPanel.setBackground(new Color(255, 255, 51)); stringsColorPanel.setBorder(LineBorder.createBlackLineBorder()); stringsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(stringsColorPanel, cc.xy(5, 15)); //---- stringsBoldButton ---- stringsBoldButton.setText("Bold"); stringsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(stringsBoldButton, cc.xy(7, 15)); //---- stringsItalicButton ---- stringsItalicButton.setText("Italic"); stringsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(stringsItalicButton, cc.xy(9, 15)); //---- label32 ---- label32.setText("Keywords:"); tabSyntax.add(label32, cc.xy(3, 17)); //======== keywordsColorPanel ======== { keywordsColorPanel.setForeground(Color.black); keywordsColorPanel.setPreferredSize(new Dimension(70, 20)); keywordsColorPanel.setBackground(new Color(255, 255, 51)); keywordsColorPanel.setBorder(LineBorder.createBlackLineBorder()); keywordsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(keywordsColorPanel, cc.xy(5, 17)); //---- keywordsBoldButton ---- keywordsBoldButton.setText("Bold"); keywordsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); tabSyntax.add(keywordsBoldButton, cc.xy(7, 17)); //---- keywordsItalicButton ---- keywordsItalicButton.setText("Italic"); keywordsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); tabSyntax.add(keywordsItalicButton, cc.xy(9, 17)); //---- syntaxDefaultButton ---- syntaxDefaultButton.setText("Default"); tabSyntax.add(syntaxDefaultButton, cc.xy(13, 19)); } tabbedPane1.addTab("Syntax", tabSyntax); //======== tabCompiler ======== { tabCompiler .setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.DEFAULT_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- jikesRadio ---- jikesRadio.setText("jikes"); tabCompiler.add(jikesRadio, cc.xywh(3, 7, 2, 1)); //---- integratedRadio ---- integratedRadio.setText("com.sun.tools.javac"); integratedRadio.setActionCommand("integrated"); tabCompiler.add(integratedRadio, cc.xywh(3, 11, 3, 1)); //---- javacRadio ---- javacRadio.setText("javac"); javacRadio.setSelected(true); tabCompiler.add(javacRadio, cc.xywh(3, 3, 2, 1)); //---- javacCustomPathButton ---- javacCustomPathButton.setText("Path:"); javacCustomPathButton.setToolTipText( "Check to specify a custom path if the default system path doesn't include javac"); tabCompiler.add(javacCustomPathButton, cc.xywh(4, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); tabCompiler.add(javacPathField, cc.xy(5, 5)); //---- browseJavacPath ---- browseJavacPath.setText("Browse..."); tabCompiler.add(browseJavacPath, cc.xy(6, 5)); //---- label4 ---- label4.setText("Path:"); tabCompiler.add(label4, cc.xywh(4, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); tabCompiler.add(jikesPathField, cc.xy(5, 9)); //---- browseJikesPath ---- browseJikesPath.setText("Browse..."); tabCompiler.add(browseJikesPath, cc.xy(6, 9)); //---- label9 ---- label9.setText("Classpath:"); tabCompiler.add(label9, cc.xy(3, 15)); //---- classpathSystemButton ---- classpathSystemButton.setText("System"); tabCompiler.add(classpathSystemButton, cc.xy(4, 15)); //---- classpathCustomButton ---- classpathCustomButton.setText("Custom:"); tabCompiler.add(classpathCustomButton, cc.xy(4, 17)); tabCompiler.add(customClasspathField, cc.xy(5, 17)); //---- browseCustomClassPathButton ---- browseCustomClassPathButton.setText("Browse..."); tabCompiler.add(browseCustomClassPathButton, cc.xy(6, 17)); } tabbedPane1.addTab("Compiler", tabCompiler); //======== tabDebugger ======== { tabDebugger.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;20dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label33 ---- label33.setText("Default local port:"); tabDebugger.add(label33, cc.xy(3, 3)); //---- debugDefaultLocalPortField ---- debugDefaultLocalPortField.setText("491000"); tabDebugger.add(debugDefaultLocalPortField, cc.xy(5, 3)); //---- label34 ---- label34.setText("Remote parser launch time-out:"); tabDebugger.add(label34, cc.xy(9, 3)); //---- debugLaunchTimeoutField ---- debugLaunchTimeoutField.setText("5"); tabDebugger.add(debugLaunchTimeoutField, cc.xy(11, 3)); //---- label35 ---- label35.setText("seconds"); tabDebugger.add(label35, cc.xy(13, 3)); //---- label12 ---- label12.setText("Non-consumed token:"); label12.setHorizontalAlignment(SwingConstants.RIGHT); tabDebugger.add(label12, cc.xy(3, 7)); //======== debugNonConsumedColorPanel ======== { debugNonConsumedColorPanel.setForeground(Color.black); debugNonConsumedColorPanel.setPreferredSize(new Dimension(70, 20)); debugNonConsumedColorPanel.setBackground(new Color(255, 255, 51)); debugNonConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugNonConsumedColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugNonConsumedColorPanel, cc.xy(5, 7)); //---- label13 ---- label13.setText("Consumed token:"); label13.setHorizontalAlignment(SwingConstants.RIGHT); tabDebugger.add(label13, cc.xy(3, 9)); //======== debugConsumedColorPanel ======== { debugConsumedColorPanel.setForeground(Color.black); debugConsumedColorPanel.setPreferredSize(new Dimension(70, 20)); debugConsumedColorPanel.setBackground(new Color(255, 255, 51)); debugConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugConsumedColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugConsumedColorPanel, cc.xy(5, 9)); //---- label14 ---- label14.setText("Hidden token:"); label14.setHorizontalAlignment(SwingConstants.RIGHT); tabDebugger.add(label14, cc.xy(3, 11)); //======== debugHiddenColorPanel ======== { debugHiddenColorPanel.setForeground(Color.black); debugHiddenColorPanel.setPreferredSize(new Dimension(70, 20)); debugHiddenColorPanel.setBackground(new Color(255, 255, 51)); debugHiddenColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugHiddenColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugHiddenColorPanel, cc.xy(5, 11)); //---- label15 ---- label15.setText("Dead token:"); label15.setHorizontalAlignment(SwingConstants.RIGHT); tabDebugger.add(label15, cc.xy(3, 13)); //======== debugDeadColorPanel ======== { debugDeadColorPanel.setForeground(Color.black); debugDeadColorPanel.setPreferredSize(new Dimension(70, 20)); debugDeadColorPanel.setBackground(new Color(255, 255, 51)); debugDeadColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugDeadColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugDeadColorPanel, cc.xy(5, 13)); //---- label16 ---- label16.setText("Lookahead token:"); label16.setHorizontalAlignment(SwingConstants.RIGHT); tabDebugger.add(label16, cc.xy(3, 15)); //======== debugLTColorPanel ======== { debugLTColorPanel.setForeground(Color.black); debugLTColorPanel.setPreferredSize(new Dimension(70, 20)); debugLTColorPanel.setBackground(new Color(255, 255, 51)); debugLTColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugLTColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugLTColorPanel, cc.xy(5, 15)); //---- label36 ---- label36.setText("Detachable panels:"); tabDebugger.add(label36, cc.xy(3, 19)); //---- detachablePanelChildrenButton ---- detachablePanelChildrenButton.setText("Children of project's window"); tabDebugger.add(detachablePanelChildrenButton, cc.xywh(5, 19, 5, 1)); //---- askGenButton ---- askGenButton.setText("Ask before generating and compiling"); tabDebugger.add(askGenButton, cc.xywh(5, 21, 5, 1)); } tabbedPane1.addTab("Debugger", tabDebugger); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label8 ---- label8.setText("Display alerts:"); panel1.add(label8, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- checkGrammarSuccessButton ---- checkGrammarSuccessButton.setText("Successfull check grammar"); panel1.add(checkGrammarSuccessButton, cc.xy(5, 3)); //---- generateCodeSuccessButton ---- generateCodeSuccessButton.setText("Successfull code generation"); panel1.add(generateCodeSuccessButton, cc.xy(5, 5)); //---- fileModifiedOnDiskButton ---- fileModifiedOnDiskButton.setText("File modified on disk"); panel1.add(fileModifiedOnDiskButton, cc.xy(5, 7)); //---- interpreterLimitationButton ---- interpreterLimitationButton.setText("Interpreter limitations"); panel1.add(interpreterLimitationButton, cc.xy(5, 9)); //---- label6 ---- label6.setText("Console:"); panel1.add(label6, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- clearConsoleBeforeCheckButton ---- clearConsoleBeforeCheckButton.setText("Clear before checking grammar"); panel1.add(clearConsoleBeforeCheckButton, cc.xy(5, 11)); } tabbedPane1.addTab("Advanced", panel1); //======== tabUpdates ======== { tabUpdates.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label7 ---- label7.setText("Check for ANTLRWorks updates:"); label7.setHorizontalAlignment(SwingConstants.LEFT); tabUpdates.add(label7, cc.xy(3, 3)); //---- updateTypeCombo ---- updateTypeCombo.setModel(new DefaultComboBoxModel( new String[] { "Manually", "At startup", "Daily", "Weekly" })); tabUpdates.add(updateTypeCombo, cc.xywh(3, 5, 4, 1)); //---- checkForUpdatesButton ---- checkForUpdatesButton.setText("Check Now"); tabUpdates.add(checkForUpdatesButton, cc.xy(7, 5)); //---- label10 ---- label10.setText("Download path:"); label10.setHorizontalAlignment(SwingConstants.LEFT); tabUpdates.add(label10, cc.xy(3, 9)); tabUpdates.add(downloadPathField, cc.xywh(3, 11, 3, 1)); //---- browseUpdateDownloadPathButton ---- browseUpdateDownloadPathButton.setText("Browse..."); browseUpdateDownloadPathButton.setActionCommand("Browse"); tabUpdates.add(browseUpdateDownloadPathButton, cc.xy(7, 11)); } tabbedPane1.addTab("Updates", tabUpdates); //======== tabTestRig ======== { tabTestRig.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- label17 ---- label17.setText("Test Rig for:"); tabTestRig.add(label17, cc.xywh(3, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- testRigLanguageComboBox ---- testRigLanguageComboBox .setModel(new DefaultComboBoxModel(new String[] { "Java", "Python" })); tabTestRig.add(testRigLanguageComboBox, cc.xy(7, 3)); //---- testRigDefaultRadio ---- testRigDefaultRadio.setText("Use default Test Rig Template"); testRigDefaultRadio.setSelected(true); tabTestRig.add(testRigDefaultRadio, cc.xywh(5, 5, 5, 1)); //---- testRigTextRadio ---- testRigTextRadio.setText("Text:"); tabTestRig.add(testRigTextRadio, cc.xywh(5, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setViewportView(testTextArea); } tabTestRig.add(scrollPane1, cc.xywh(7, 7, 3, 1)); } tabbedPane1.addTab("Test Rig", tabTestRig); } contentPane.add(tabbedPane1, cc.xywh(1, 1, 2, 1)); } 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 }, RowSpec.decodeSpecs("pref"))); //---- applyButton ---- applyButton.setText("Apply"); buttonBar.add(applyButton, cc.xy(2, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane2.add(dialogPane, BorderLayout.CENTER); pack(); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.antlr.works.dialog.DebuggerInputDialog.java
License:BSD License
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(); textInputRadio = new JRadioButton(); scrollPane1 = new JScrollPane(); inputTextArea = new JTextPane(); fileInputRadio = new JRadioButton(); inputFileField = new JTextField(); browseInputFileButton = new JButton(); label2 = new JLabel(); rulesCombo = new JComboBox(); label3 = new JLabel(); eolCombo = new JComboBox(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Input Text"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); //======== dialogPane ======== {//from w ww . j a v a 2 s .co m dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); //======== contentPane ======== { contentPane.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- textInputRadio ---- textInputRadio.setText("Text:"); textInputRadio.setSelected(true); contentPane.add(textInputRadio, cc.xy(1, 1)); //======== scrollPane1 ======== { scrollPane1.setPreferredSize(new Dimension(300, 200)); scrollPane1.setViewportView(inputTextArea); } contentPane.add(scrollPane1, cc.xywh(3, 1, 5, 5)); //---- fileInputRadio ---- fileInputRadio.setText("File:"); contentPane.add(fileInputRadio, cc.xy(1, 7)); contentPane.add(inputFileField, cc.xywh(3, 7, 3, 1)); //---- browseInputFileButton ---- browseInputFileButton.setText("Browse..."); contentPane.add(browseInputFileButton, cc.xy(7, 7)); //---- label2 ---- label2.setText("Start Rule:"); contentPane.add(label2, cc.xywh(1, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); contentPane.add(rulesCombo, cc.xywh(3, 9, 5, 1)); //---- label3 ---- label3.setText("Line Endings:"); contentPane.add(label3, cc.xywh(1, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- eolCombo ---- eolCombo.setModel( new DefaultComboBoxModel(new String[] { "Unix (LF)", "Mac (CR)", "Windows (CRLF)" })); contentPane.add(eolCombo, cc.xy(3, 11)); } 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); setSize(625, 395); //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(textInputRadio); buttonGroup1.add(fileInputRadio); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.antlr.works.dialog.DialogAbout.java
License:BSD License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org) appIconButton = new JButton(); descriptionLabel = new JLabel(); titleLabel = new JLabel(); versionLabel = new JLabel(); copyrightLabel = new JLabel(); tabbedPane1 = new JTabbedPane(); panel2 = new JPanel(); acknowledgeTextArea = new JTextArea(); panel1 = new JPanel(); scrollPane1 = new JScrollPane(); infoTable = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setResizable(false);//www . ja v a 2 s .c om setTitle("About"); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("top:max(default;15dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("bottom:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("top:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("fill:max(default;60dlu):grow"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- appIconButton ---- appIconButton.setIcon(null); appIconButton.setBorderPainted(false); appIconButton.setContentAreaFilled(false); appIconButton.setDefaultCapable(false); appIconButton.setEnabled(true); appIconButton.setFocusable(false); appIconButton.setFocusPainted(false); appIconButton.setPreferredSize(new Dimension(124, 144)); appIconButton.setMaximumSize(new Dimension(136, 144)); appIconButton.setMinimumSize(new Dimension(136, 144)); contentPane.add(appIconButton, cc.xywh(3, 3, 1, 8)); //---- descriptionLabel ---- descriptionLabel .setText("A graphical development environment for developing and debugging ANTLR v3 grammars"); descriptionLabel.setHorizontalAlignment(SwingConstants.LEFT); descriptionLabel.setHorizontalTextPosition(SwingConstants.LEFT); descriptionLabel.setVerticalTextPosition(SwingConstants.TOP); descriptionLabel.setVerticalAlignment(SwingConstants.TOP); contentPane.add(descriptionLabel, cc.xywh(5, 7, 1, 2)); //---- titleLabel ---- titleLabel.setText("ANTLRWorks"); titleLabel.setFont(new Font("Lucida Grande", Font.BOLD, 36)); contentPane.add(titleLabel, cc.xy(5, 3)); //---- versionLabel ---- versionLabel.setText("Version 1.0 early access 1"); contentPane.add(versionLabel, cc.xy(5, 5)); //---- copyrightLabel ---- copyrightLabel.setText("Copyright (c) 2005 Jean Bovet & Terence Parr"); contentPane.add(copyrightLabel, cc.xy(5, 9)); //======== tabbedPane1 ======== { //======== panel2 ======== { panel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- acknowledgeTextArea ---- acknowledgeTextArea.setText( "ANTLR and StringTemplate are (c) 1989-2005 Terence Parr\nXJLibrary is (c) 2004-2005 Jean Bovet\nPortion of the GUI uses JGoodies, (c) 2002-2004 Karsten Lentzsch\nPortion of the GUI was created using JFormDesigner, (c) 2004-2005 Karl Tauber\nBrowserLauncher is (c) 2001 Eric Albert <ejalbert@cs.stanford.edu>\nApplication icon is (c) Matthew McClintock <matthew@mc.clintock.com>\n"); acknowledgeTextArea.setEditable(false); acknowledgeTextArea.setBackground(SystemColor.window); panel2.add(acknowledgeTextArea, cc.xy(3, 3)); } tabbedPane1.addTab("Acknowledgment", panel2); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(10), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //======== scrollPane1 ======== { //---- infoTable ---- infoTable.setModel(new DefaultTableModel( new Object[][] { { null, null }, { null, null }, { null, null }, { null, null }, }, new String[] { "Name", "Version" }) { boolean[] columnEditable = new boolean[] { false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); infoTable.setShowVerticalLines(true); scrollPane1.setViewportView(infoTable); } panel1.add(scrollPane1, cc.xy(3, 3)); } tabbedPane1.addTab("Information", panel1); } contentPane.add(tabbedPane1, cc.xywh(3, 11, 3, 1)); pack(); // JFormDesigner - End of component initialization //GEN-END:initComponents }