List of usage examples for com.jgoodies.forms.layout Sizes DEFAULT
ComponentSize DEFAULT
To view the source code for com.jgoodies.forms.layout Sizes DEFAULT.
Click Source Link
From source file:org.archiviststoolkit.plugin.dbdialog.RemoteDBConnectDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); contentPanel = new JPanel(); label1 = new JLabel(); connectionUrl = new JComboBox(); label2 = new JLabel(); textField1 = new JTextField(); label3 = new JLabel(); passwordField1 = new JPasswordField(); label4 = new JLabel(); comboBox2 = new JComboBox(); label7 = new JLabel(); comboBox1 = new JComboBox(); label6 = new JLabel(); textField2 = new JTextField(); scrollPane1 = new JScrollPane(); list1 = new FilteringJList(); list1.installJTextField(textField2); label5 = new JLabel(); progressBar1 = new JProgressBar(); buttonBar = new JPanel(); button1 = new JButton(); label8 = new JLabel(); userComboBox = new JComboBox(); okButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {/* w ww . j a va 2 s . c o m*/ dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel .setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new 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 })); //---- label1 ---- label1.setText("Connection URL"); contentPanel.add(label1, cc.xy(1, 1)); //---- connectionUrl ---- connectionUrl.setEditable(true); connectionUrl.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { updateConnectionUrlInformation(); } }); contentPanel.add(connectionUrl, cc.xy(3, 1)); //---- label2 ---- label2.setText("Username"); contentPanel.add(label2, cc.xy(1, 3)); //---- textField1 ---- textField1.setColumns(25); contentPanel.add(textField1, cc.xy(3, 3)); //---- label3 ---- label3.setText("Password"); contentPanel.add(label3, cc.xy(1, 5)); contentPanel.add(passwordField1, cc.xy(3, 5)); //---- label4 ---- label4.setText("Database Type"); contentPanel.add(label4, cc.xy(1, 7)); //---- comboBox2 ---- comboBox2.setModel(new DefaultComboBoxModel( new String[] { "MySQL", "Oracle", "Microsoft SQL Server", "Internal Database" })); contentPanel.add(comboBox2, cc.xy(3, 7)); //---- label7 ---- label7.setText("Record Type"); contentPanel.add(label7, cc.xy(1, 9)); //---- comboBox1 ---- comboBox1.setModel(new DefaultComboBoxModel(new String[] { "Resource Records", "Digital Object Records", "Accession Records", "Name Records", "Subject Records" })); contentPanel.add(comboBox1, cc.xy(3, 9)); //---- label6 ---- label6.setText("Filter Results"); contentPanel.add(label6, cc.xy(1, 11)); contentPanel.add(textField2, cc.xy(3, 11)); //======== scrollPane1 ======== { scrollPane1.setViewportView(list1); } contentPanel.add(scrollPane1, cc.xywh(1, 13, 3, 1)); //---- label5 ---- label5.setText("Progress"); contentPanel.add(label5, cc.xy(1, 15)); contentPanel.add(progressBar1, cc.xy(3, 15)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.GLUE_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- button1 ---- button1.setText("Connect"); button1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { connectToDatabase(); } }); buttonBar.add(button1, cc.xy(2, 1)); //---- label8 ---- label8.setText("Select User"); buttonBar.add(label8, cc.xy(4, 1)); //---- userComboBox ---- userComboBox.setModel(new DefaultComboBoxModel(new String[] { "No Users Loaded" })); buttonBar.add(userComboBox, cc.xy(6, 1)); //---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { okButtonActionPerformed(); } }); buttonBar.add(okButton, cc.xy(8, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.plugin.dbdialog.RemoteDBConnectDialogLight.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); contentPanel = new JPanel(); label1 = new JLabel(); connectionUrl = new JComboBox(); label2 = new JLabel(); textField1 = new JTextField(); label3 = new JLabel(); passwordField1 = new JPasswordField(); label4 = new JLabel(); comboBox2 = new JComboBox(); label5 = new JLabel(); progressBar1 = new JProgressBar(); buttonBar = new JPanel(); button1 = new JButton(); statusLabel = new JLabel(); label8 = new JLabel(); userComboBox = new JComboBox(); okButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from ww w. j a v a 2s .c o m dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel .setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new 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 })); //---- label1 ---- label1.setText("Connection URL"); contentPanel.add(label1, cc.xy(1, 1)); //---- connectionUrl ---- connectionUrl.setEditable(true); connectionUrl.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { updateConnectionUrlInformation(); } }); contentPanel.add(connectionUrl, cc.xy(3, 1)); //---- label2 ---- label2.setText("Username"); contentPanel.add(label2, cc.xy(1, 3)); //---- textField1 ---- textField1.setColumns(25); contentPanel.add(textField1, cc.xy(3, 3)); //---- label3 ---- label3.setText("Password"); contentPanel.add(label3, cc.xy(1, 5)); contentPanel.add(passwordField1, cc.xy(3, 5)); //---- label4 ---- label4.setText("Database Type"); contentPanel.add(label4, cc.xy(1, 7)); //---- comboBox2 ---- comboBox2.setModel(new DefaultComboBoxModel( new String[] { "MySQL", "Oracle", "Microsoft SQL Server", "Internal Database" })); contentPanel.add(comboBox2, cc.xy(3, 7)); //---- label5 ---- label5.setText("Progress"); contentPanel.add(label5, cc.xy(1, 9)); contentPanel.add(progressBar1, cc.xy(3, 9)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.GLUE_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- button1 ---- button1.setText("Connect"); button1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { connectToDatabase(); } }); buttonBar.add(button1, cc.xy(2, 1)); //---- statusLabel ---- statusLabel.setText("Not connected ..."); buttonBar.add(statusLabel, cc.xy(4, 1)); //---- label8 ---- label8.setText("Select User"); label8.setVisible(false); buttonBar.add(label8, cc.xy(6, 1)); //---- userComboBox ---- userComboBox.setModel(new DefaultComboBoxModel(new String[] { "No Users Loaded" })); userComboBox.setVisible(false); buttonBar.add(userComboBox, cc.xy(8, 1)); //---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { okButtonActionPerformed(); } }); buttonBar.add(okButton, cc.xy(10, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); setSize(635, 240); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.plugin.demo1.MyEditorPanel1.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license button1 = new JButton(); label1 = new JLabel(); panel1 = new JPanel(); label2 = new JLabel(); textField1 = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new BorderLayout()); //---- button1 ---- button1.setText("Should See Button"); add(button1, BorderLayout.NORTH); //---- label1 ---- label1.setText("Embedded Editor Panel"); label1.setFont(new Font("Lucida Grande", Font.BOLD, 24)); label1.setHorizontalAlignment(SwingConstants.CENTER); add(label1, BorderLayout.CENTER); //======== panel1 ======== {/*from ww w. j ava2 s. com*/ panel1.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- label2 ---- label2.setText("Bound Label"); panel1.add(label2, cc.xy(1, 1)); panel1.add(textField1, cc.xy(3, 1)); } add(panel1, BorderLayout.SOUTH); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.plugin.DOWorkflowDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); contentPanel = new JPanel(); label1 = new JLabel(); nameLabel = new JLabel(); label2 = new JLabel(); persistentLabel = new JLabel(); importButton = new JButton(); exportButton = new JButton(); panel2 = new JPanel(); label4 = new JLabel(); exportBoxNameTextField = new JTextField(); shootlistBarcodeCheckBox = new JCheckBox(); shootlistItemLevelCheckBox = new JCheckBox(); shootlistFileLevelCheckBox = new JCheckBox(); importUseStatementComboBox = new JComboBox(); shootlistHideCheckBox = new JCheckBox(); importShootListButton = new JButton(); panel1 = new JPanel(); barcodeCheckBox = new JCheckBox(); itemLevelCheckBox = new JCheckBox(); fileLevelCheckBox = new JCheckBox(); hideCheckBox = new JCheckBox(); fileListCheckBox = new JCheckBox(); label9 = new JLabel(); panel5 = new JPanel(); exportURIButton = new JButton(); importURIButton = new JButton(); unlinkDigitalObjectButton = new JButton(); testUnlinkCheckBox = new JCheckBox(); panel3 = new JPanel(); label6 = new JLabel(); handleServiceUrlComboBox = new JComboBox(); label7 = new JLabel(); handleUrlTextField = new JTextField(); label3 = new JLabel(); thumbnailURLTextbox = new JTextField(); panel4 = new JPanel(); label5 = new JLabel(); userIDTextField = new JTextField(); label8 = new JLabel(); passwordField = new JPasswordField(); buttonBar = new JPanel(); clearButton = new JButton(); exportTitleCheckBox = new JCheckBox(); optionalColumnsCheckBox = new JCheckBox(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Digital Object Workflow 2.2 (01/29/2013)"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from www . j a va2 s. com dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setBorder(null); contentPanel .setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new 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(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label1 ---- label1.setText("Component Name"); contentPanel.add(label1, cc.xy(1, 1)); //---- nameLabel ---- nameLabel.setText("name"); nameLabel.setForeground(Color.blue); contentPanel.add(nameLabel, cc.xy(3, 1)); //---- label2 ---- label2.setText("Persistent ID"); contentPanel.add(label2, cc.xy(1, 3)); //---- persistentLabel ---- persistentLabel.setText("perstent id"); persistentLabel.setForeground(Color.blue); contentPanel.add(persistentLabel, cc.xy(3, 3)); //---- importButton ---- importButton.setText("Import Digital Object"); importButton.setVisible(false); importButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { importButtonActionPerformed(); } }); contentPanel.add(importButton, cc.xy(1, 5)); //---- exportButton ---- exportButton.setText("Export Work Order"); exportButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportActionPerformed(); } }); contentPanel.add(exportButton, cc.xy(1, 7)); //======== panel2 ======== { panel2.setLayout(new FlowLayout(FlowLayout.LEFT)); //---- label4 ---- label4.setText("Box #"); panel2.add(label4); //---- exportBoxNameTextField ---- exportBoxNameTextField.setColumns(2); panel2.add(exportBoxNameTextField); //---- shootlistBarcodeCheckBox ---- shootlistBarcodeCheckBox.setText("barcode"); panel2.add(shootlistBarcodeCheckBox); //---- shootlistItemLevelCheckBox ---- shootlistItemLevelCheckBox.setText("item level"); panel2.add(shootlistItemLevelCheckBox); //---- shootlistFileLevelCheckBox ---- shootlistFileLevelCheckBox.setText("file level"); panel2.add(shootlistFileLevelCheckBox); //---- importUseStatementComboBox ---- importUseStatementComboBox.setModel( new DefaultComboBoxModel(new String[] { "Select Use Statement", "Audio-Service", "Image-Service", "Image-Service/Thumbnail", "Text-Service", "Video-Service" })); importUseStatementComboBox.setToolTipText( "Select the Default Use Statement to use when creating digital objects on import.\nDefaults to Image-Service if none is selected."); panel2.add(importUseStatementComboBox); //---- shootlistHideCheckBox ---- shootlistHideCheckBox.setText("hide"); shootlistHideCheckBox.setVisible(false); panel2.add(shootlistHideCheckBox); } contentPanel.add(panel2, cc.xy(3, 7)); //---- importShootListButton ---- importShootListButton.setText("Import Work Order"); importShootListButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { importShootListButtonActionPerformed(); } }); contentPanel.add(importShootListButton, cc.xy(1, 9)); //======== panel1 ======== { panel1.setLayout(new FlowLayout(FlowLayout.LEFT)); //---- barcodeCheckBox ---- barcodeCheckBox.setText("barcode"); panel1.add(barcodeCheckBox); //---- itemLevelCheckBox ---- itemLevelCheckBox.setText("item level"); panel1.add(itemLevelCheckBox); //---- fileLevelCheckBox ---- fileLevelCheckBox.setText("file level"); panel1.add(fileLevelCheckBox); //---- hideCheckBox ---- hideCheckBox.setText("hide"); hideCheckBox.setVisible(false); panel1.add(hideCheckBox); //---- fileListCheckBox ---- fileListCheckBox.setText("file list"); panel1.add(fileListCheckBox); } contentPanel.add(panel1, cc.xy(3, 9)); //---- label9 ---- label9.setText("Additional Functions"); label9.setHorizontalAlignment(SwingConstants.CENTER); label9.setFont(new Font("Lucida Grande", Font.BOLD, 13)); contentPanel.add(label9, cc.xy(1, 11)); //======== panel5 ======== { panel5.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- exportURIButton ---- exportURIButton.setText("Export Digital Object URI List"); exportURIButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportURIButtonActionPerformed(); } }); panel5.add(exportURIButton, cc.xy(1, 1)); //---- importURIButton ---- importURIButton.setText("Import Digital Object URI List"); importURIButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { importURIButtonActionPerformed(); } }); panel5.add(importURIButton, cc.xy(1, 3)); //---- unlinkDigitalObjectButton ---- unlinkDigitalObjectButton.setText("Unlink Digital Objects"); unlinkDigitalObjectButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { unlinkDigitalObjectButtonActionPerformed(); } }); panel5.add(unlinkDigitalObjectButton, cc.xy(1, 5)); //---- testUnlinkCheckBox ---- testUnlinkCheckBox.setText("Test Only"); panel5.add(testUnlinkCheckBox, cc.xy(3, 5)); } contentPanel.add(panel5, cc.xy(3, 11)); //======== panel3 ======== { panel3.setBorder(new TitledBorder(null, "URI Source Configuration", TitledBorder.LEADING, TitledBorder.TOP)); panel3.setLayout(new GridBagLayout()); ((GridBagLayout) panel3.getLayout()).columnWidths = new int[] { 0, 0, 0 }; ((GridBagLayout) panel3.getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0 }; ((GridBagLayout) panel3.getLayout()).columnWeights = new double[] { 0.0, 1.0, 1.0E-4 }; ((GridBagLayout) panel3.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 1.0E-4 }; //---- label6 ---- label6.setText("URI Source"); panel3.add(label6, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0)); //---- handleServiceUrlComboBox ---- handleServiceUrlComboBox .setModel(new DefaultComboBoxModel(new String[] { "No URI", "Production Handle Service", "Test Handle Service", "Read From File", "Default URL + Filename" })); panel3.add(handleServiceUrlComboBox, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0)); //---- label7 ---- label7.setText("Default URL"); panel3.add(label7, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0)); //---- handleUrlTextField ---- handleUrlTextField.setText("http://dlib.nyu.edu/object-in-processing"); panel3.add(handleUrlTextField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0)); //---- label3 ---- label3.setText("Thumbnail URL"); panel3.add(label3, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0)); //---- thumbnailURLTextbox ---- thumbnailURLTextbox.setText(DOCreatorNYU.THUMBNAIL_URL); panel3.add(thumbnailURLTextbox, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0)); //======== panel4 ======== { panel4.setLayout(new GridLayout(1, 4)); //---- label5 ---- label5.setText("User ID"); panel4.add(label5); //---- userIDTextField ---- userIDTextField.setText("dlts-rhs"); panel4.add(userIDTextField); //---- label8 ---- label8.setText("Password"); panel4.add(label8); panel4.add(passwordField); } panel3.add(panel4, new GridBagConstraints(0, 3, 2, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } contentPanel.add(panel3, cc.xywh(1, 13, 3, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC, FormFactory.RELATED_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.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- clearButton ---- clearButton.setText("Clear"); clearButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { clearButtonActionPerformed(); } }); buttonBar.add(clearButton, cc.xy(1, 1)); //---- exportTitleCheckBox ---- exportTitleCheckBox.setText("Add Title to Export"); buttonBar.add(exportTitleCheckBox, cc.xy(3, 1)); //---- optionalColumnsCheckBox ---- optionalColumnsCheckBox.setText("Add Optional Columns to Export"); buttonBar.add(optionalColumnsCheckBox, cc.xy(5, 1)); //---- cancelButton ---- cancelButton.setText("Close"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelButtonActionPerformed(); } }); buttonBar.add(cancelButton, cc.xy(9, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); //---- buttonGroup3 ---- ButtonGroup buttonGroup3 = new ButtonGroup(); buttonGroup3.add(shootlistBarcodeCheckBox); buttonGroup3.add(shootlistItemLevelCheckBox); buttonGroup3.add(shootlistFileLevelCheckBox); buttonGroup3.add(shootlistHideCheckBox); //---- buttonGroup4 ---- ButtonGroup buttonGroup4 = new ButtonGroup(); buttonGroup4.add(barcodeCheckBox); buttonGroup4.add(itemLevelCheckBox); buttonGroup4.add(fileLevelCheckBox); buttonGroup4.add(hideCheckBox); buttonGroup4.add(fileListCheckBox); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.plugin.utils.CodeViewerDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); contentPanel = new JPanel(); scrollPane1 = new JScrollPane(); messageTextArea = new JTextArea(); buttonBar = new JPanel(); recordTestPanel = new JPanel(); storeButton = new JButton(); testButton = new JButton(); label1 = new JLabel(); testHostUrlTextField = new JTextField(); deleteButton = new JButton(); okButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Code Viewer"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {// w ww . j a va 2 s. c o m dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12)); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new BorderLayout()); //======== scrollPane1 ======== { //---- messageTextArea ---- messageTextArea.setRows(4); messageTextArea.setEditable(false); scrollPane1.setViewportView(messageTextArea); } contentPanel.add(scrollPane1, BorderLayout.SOUTH); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); buttonBar.setLayout(new GridBagLayout()); ((GridBagLayout) buttonBar.getLayout()).columnWidths = new int[] { 0, 80 }; ((GridBagLayout) buttonBar.getLayout()).columnWeights = new double[] { 1.0, 0.0 }; //======== recordTestPanel ======== { recordTestPanel.setLayout(new FormLayout( new ColumnSpec[] { 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, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- storeButton ---- storeButton.setText("Store"); storeButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { storeButtonActionPerformed(); } }); recordTestPanel.add(storeButton, cc.xy(1, 1)); //---- testButton ---- testButton.setText("Test"); testButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { testButtonActionPerformed(); } }); recordTestPanel.add(testButton, cc.xy(3, 1)); //---- label1 ---- label1.setText("Url"); recordTestPanel.add(label1, cc.xy(5, 1)); recordTestPanel.add(testHostUrlTextField, cc.xy(7, 1)); //---- deleteButton ---- deleteButton.setText("Delete"); deleteButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { deleteButtonActionPerformed(); } }); recordTestPanel.add(deleteButton, cc.xy(9, 1)); } buttonBar.add(recordTestPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0)); //---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { okButtonActionPerformed(); } }); buttonBar.add(okButton, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.structure.DatabaseFieldsForm.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label1 = new JLabel(); fieldName = ATBasicComponentFactory/*from www. j a va 2 s.c om*/ .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_FIELD_NAME)); label16 = new JLabel(); fieldLabel = ATBasicComponentFactory .createTextField(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_FIELD_LABEL)); label12 = new JLabel(); dataType = ATBasicComponentFactory .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_DATA_TYPE)); lookupListLabel = new JLabel(); lookupList = ATBasicComponentFactory .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_LOOKUP_LIST)); panel1 = new JPanel(); includeInSearchEditor = ATBasicComponentFactory.createCheckBox(detailsModel, DatabaseFields.PROPERTYNAME_INCLUDE_IN_SEARCH_EDITOR, DatabaseFields.class, true); label17 = new JLabel(); returnScreenOrder = ATBasicComponentFactory.createBufferedIntegerField(detailsModel, DatabaseFields.PROPERTYNAME_RETURN_SCREEN_ORDER); label14 = new JLabel(); scrollPane2 = new JScrollPane(); definition = ATBasicComponentFactory .createTextArea(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_DEFINITION)); label13 = new JLabel(); scrollPane1 = new JScrollPane(); examples = ATBasicComponentFactory .createTextArea(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_EXAMPLES)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(600, 500)); setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("30px"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px):grow") }, new 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(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label1 ---- label1.setText("Field Name"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label1, cc.xy(1, 1)); //---- fieldName ---- fieldName.setEditable(false); fieldName.setOpaque(false); fieldName.setBorder(null); fieldName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(fieldName, cc.xywh(3, 1, 3, 1)); //---- label16 ---- label16.setText("Field Label"); label16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label16, cc.xy(1, 3)); //---- fieldLabel ---- fieldLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(fieldLabel, cc.xywh(3, 3, 3, 1)); //---- label12 ---- label12.setText("Data Type"); label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label12, cc.xy(1, 5)); //---- dataType ---- dataType.setEditable(false); dataType.setBorder(null); dataType.setOpaque(false); dataType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(dataType, cc.xywh(3, 5, 3, 1)); //---- lookupListLabel ---- lookupListLabel.setText("Lookup List"); lookupListLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(lookupListLabel, cc.xy(1, 7)); //---- lookupList ---- lookupList.setOpaque(false); lookupList.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); lookupList.setEditable(false); lookupList.setBorder(null); add(lookupList, cc.xywh(3, 7, 3, 1)); //======== panel1 ======== { panel1.setBackground(new Color(234, 201, 250)); panel1.setOpaque(false); panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- includeInSearchEditor ---- includeInSearchEditor.setBackground(new Color(234, 201, 250)); includeInSearchEditor.setText("Include In Search Editor"); includeInSearchEditor.setOpaque(false); includeInSearchEditor.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(includeInSearchEditor, cc.xy(1, 1)); } add(panel1, cc.xywh(3, 9, 3, 1)); //---- label17 ---- label17.setText("Return Screen Order"); label17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label17, cc.xy(1, 11)); //---- returnScreenOrder ---- returnScreenOrder.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(returnScreenOrder, cc.xywh(3, 11, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label14 ---- label14.setText("Definition"); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label14, cc.xywh(1, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- definition ---- definition.setRows(5); definition.setLineWrap(true); definition.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); definition.setWrapStyleWord(true); scrollPane2.setViewportView(definition); } add(scrollPane2, cc.xywh(3, 13, 3, 1)); //---- label13 ---- label13.setText("Examples"); label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label13, cc.xywh(1, 15, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- examples ---- examples.setRows(5); examples.setLineWrap(true); examples.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); examples.setWrapStyleWord(true); scrollPane1.setViewportView(examples); } add(scrollPane1, cc.xywh(3, 15, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.structure.DatabaseTablesForm.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label1 = new JLabel(); tableName = ATBasicComponentFactory/*from w ww . j a va 2 s . c o m*/ .createTextField(detailsModel.getModel(DatabaseTables.PROPERTYNAME_TABLE_NAME)); panel1 = new JPanel(); label2 = new JLabel(); scrollPane1 = new JScrollPane(); databaseFieldsTable = new DomainSortableTable(DatabaseFields.class, DatabaseFields.PROPERTYNAME_FIELD_NAME); panel2 = new JPanel(); deleteFieldButton = new JButton(); getFieldsButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(800, 500)); setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px):grow") }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label1 ---- label1.setText("Table Name"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label1, cc.xy(1, 1)); //---- tableName ---- tableName.setEditable(false); tableName.setOpaque(false); tableName.setBorder(null); tableName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(tableName, cc.xy(3, 1)); //======== panel1 ======== { panel1.setBackground(new Color(234, 201, 250)); panel1.setOpaque(false); panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label2 ---- label2.setText("Fields"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(label2, cc.xy(1, 1)); //======== scrollPane1 ======== { scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- databaseFieldsTable ---- databaseFieldsTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); scrollPane1.setViewportView(databaseFieldsTable); } panel1.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //======== panel2 ======== { panel2.setBackground(new Color(234, 201, 250)); panel2.setOpaque(false); panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- deleteFieldButton ---- deleteFieldButton.setText("Delete Field"); deleteFieldButton.setBackground(new Color(234, 201, 250)); deleteFieldButton.setOpaque(false); deleteFieldButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.add(deleteFieldButton, cc.xy(1, 1)); //---- getFieldsButton ---- getFieldsButton.setText("Get Fields"); getFieldsButton.setBackground(new Color(234, 201, 250)); getFieldsButton.setOpaque(false); getFieldsButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); getFieldsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getFieldsActionPerformed(e); } }); panel2.add(getFieldsButton, cc.xy(3, 1)); } panel1.add(panel2, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } add(panel1, cc.xywh(1, 3, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.swing.ExportOptionsEAD.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license numberedComponents = new JCheckBox(); suppressInternalOnly = new JCheckBox(); includeDaos = new JCheckBox(); useDOIDAsHREF = new JCheckBox(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU2_BORDER);//from w ww .j a va2 s. c om setLayout(new FormLayout(ColumnSpec.decodeSpecs("default"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- numberedComponents ---- numberedComponents.setText("Number component levels?"); add(numberedComponents, cc.xy(1, 1)); //---- suppressInternalOnly ---- suppressInternalOnly .setText("<html>Suppress components and notes <br>when marked \"internal only\"? </html>"); suppressInternalOnly.setVerticalAlignment(SwingConstants.TOP); add(suppressInternalOnly, cc.xy(1, 3)); //---- includeDaos ---- includeDaos.setText(" Include DAO's in output?"); add(includeDaos, cc.xy(1, 5)); //---- useDOIDAsHREF ---- useDOIDAsHREF.setText("Use Digital Object ID as HREF?"); add(useDOIDAsHREF, cc.xy(1, 7)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.swing.ExportOptionsMETS.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license modsMetadata = new JRadioButton(); dublinCoreMetadata = new JRadioButton(); suppressInternalOnly = new JCheckBox(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU2_BORDER);//from w ww . j a v a 2 s. co m setLayout(new FormLayout(ColumnSpec.decodeSpecs("default"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW) })); //---- modsMetadata ---- modsMetadata.setText("With MODS descriptive metadata"); add(modsMetadata, cc.xy(1, 1)); //---- dublinCoreMetadata ---- dublinCoreMetadata.setText("With Dublin Core descriptive metadata"); dublinCoreMetadata.setSelected(true); add(dublinCoreMetadata, cc.xy(1, 3)); //---- suppressInternalOnly ---- suppressInternalOnly.setText("Withhold data marked \"internal only\""); suppressInternalOnly.setVerticalAlignment(SwingConstants.TOP); add(suppressInternalOnly, cc.xy(1, 5)); //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(modsMetadata); buttonGroup1.add(dublinCoreMetadata); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.swing.ImportOptionsMARC.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label1 = new JLabel(); repositorySelector = new JComboBox(); label2 = new JLabel(); resourceLevelSelector = ATBasicComponentFactory .createUnboundComboBox(LookupListUtils.getLookupListValues("Resource levels")); label3 = new JLabel(); panel1 = new JPanel(); resourceIdentifier1 = new JTextField(); resourceIdentifier2 = new JTextField(); resourceIdentifier3 = new JTextField(); resourceIdentifier4 = new JTextField(); label4 = new JLabel(); panel2 = new JPanel(); entireMarcRecord = new JRadioButton(); subjectHeadingsOnly = new JRadioButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU2_BORDER);// w ww.j a v a2s .c o m setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new 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 })); //---- label1 ---- label1.setText("Select a Repository"); add(label1, cc.xy(1, 1)); add(repositorySelector, cc.xywh(1, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label2 ---- label2.setText("Resource Level"); add(label2, cc.xy(1, 5)); add(resourceLevelSelector, cc.xywh(1, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label3 ---- label3.setText("Resource Identifier"); add(label3, cc.xy(1, 9)); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); ((FormLayout) panel1.getLayout()).setColumnGroups(new int[][] { { 1, 3, 5, 7 } }); panel1.add(resourceIdentifier1, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); panel1.add(resourceIdentifier2, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); panel1.add(resourceIdentifier3, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); panel1.add(resourceIdentifier4, cc.xywh(7, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } add(panel1, cc.xywh(1, 11, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label4 ---- label4.setText("Import"); add(label4, cc.xy(1, 13)); //======== panel2 ======== { panel2.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- entireMarcRecord ---- entireMarcRecord.setText("Entire MARC record"); panel2.add(entireMarcRecord, cc.xy(1, 1)); //---- subjectHeadingsOnly ---- subjectHeadingsOnly.setText("Subject headings only"); panel2.add(subjectHeadingsOnly, cc.xy(3, 1)); } add(panel2, cc.xy(1, 15)); //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(entireMarcRecord); buttonGroup1.add(subjectHeadingsOnly); // JFormDesigner - End of component initialization //GEN-END:initComponents }