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:com.spirit.timeTracker.gui.main.JPInfoSubtarea.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown lblId = new JLabel(); txtId = new JTextField(); btnGuardar = new JButton(); lblFechaInicio = new JLabel(); txtFechaInicio = new JTextField(); lblFechaFin = new JLabel(); txtFechaFin = new JTextField(); label1 = new JLabel(); cmbUsrAsignado = new JComboBox(); lblDescipcion = new JLabel(); scrollPane1 = new JScrollPane(); txtDescripcion = new JTextArea(); CellConstraints cc = new CellConstraints(); //======== this ======== 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(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, 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, new ColumnSpec(Sizes.dluX(80)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, 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, new ColumnSpec(Sizes.dluX(80)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, 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.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(Sizes.dluY(10)) })); //---- lblId ---- lblId.setText("Id:"); add(lblId, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtId ---- txtId.setEditable(false);/*from w w w .j a va 2s . c o m*/ add(txtId, cc.xy(5, 3)); //---- lblFechaInicio ---- lblFechaInicio.setText("F. Inicio:"); add(lblFechaInicio, cc.xywh(9, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtFechaInicio ---- txtFechaInicio.setEditable(false); add(txtFechaInicio, cc.xywh(11, 3, 3, 1)); //---- lblFechaFin ---- lblFechaFin.setText("F. Fin:"); add(lblFechaFin, cc.xywh(17, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtFechaFin ---- txtFechaFin.setEditable(false); add(txtFechaFin, cc.xywh(19, 3, 3, 1)); //---- label1 ---- label1.setText("Asignar a:"); add(label1, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbUsrAsignado, cc.xywh(5, 5, 9, 1)); //---- btnGuardar ---- btnGuardar.setText("G"); add(btnGuardar, cc.xy(17, 5)); //---- lblDescipcion ---- lblDescipcion.setText("Descripci\u00f3n"); add(lblDescipcion, cc.xy(3, 7)); //======== scrollPane1 ======== { //---- txtDescripcion ---- txtDescripcion.setWrapStyleWord(false); txtDescripcion.setLineWrap(true); txtDescripcion.setRows(5); scrollPane1.setViewportView(txtDescripcion); } add(scrollPane1, cc.xywh(3, 9, 23, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.timeTracker.gui.main.JPInfoTareaOrdenTrabajo.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown lblAsignado = new JLabel(); txtAsignado = new JTextField(); lblTipo = new JLabel(); lblSubtipo = new JLabel(); txtSubtipo = new JTextField(); txtTipo = new JTextField(); lblFechaEntrega = new JLabel(); txtFechaEntrega = new JTextField(); lblFechaLimite = new JLabel(); txtFechaLimite = new JTextField(); lblEstado = new JLabel(); txtEstado = new JTextField(); btnOrdenEntregada = new JButton(); lblEquipo = new JLabel(); txtEquipo = new JTextField(); lblArchivoDescripcion = new JLabel(); btnArchivoDescripcion = new JButton(); txtArchivoDescripcion = new JTextField(); lblPropuesta = new JLabel(); txtPropuesta = new JTextField(); btnPropuesta = new JButton(); lblDescripcion = new JLabel(); scrollPane1 = new JScrollPane(); txtDescripcion = new JTextArea(); CellConstraints cc = new CellConstraints(); //======== this ======== 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(15)), 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, 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.CENTER, Sizes.dluY(43), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblAsignado ---- lblAsignado.setText("Asignado a:"); add(lblAsignado, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtAsignado ---- txtAsignado.setEditable(false);//from w w w . j a va 2 s . c om add(txtAsignado, cc.xywh(5, 3, 11, 1)); //---- lblTipo ---- lblTipo.setText("Tipo:"); add(lblTipo, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblSubtipo ---- lblSubtipo.setText("Subtipo:"); add(lblSubtipo, cc.xywh(11, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtipo ---- txtSubtipo.setEditable(false); add(txtSubtipo, cc.xywh(13, 5, 3, 1)); //---- txtTipo ---- txtTipo.setEditable(false); add(txtTipo, cc.xywh(5, 5, 3, 1)); //---- lblFechaEntrega ---- lblFechaEntrega.setText("Fecha Entrega:"); add(lblFechaEntrega, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtFechaEntrega ---- txtFechaEntrega.setEditable(false); add(txtFechaEntrega, cc.xywh(5, 7, 3, 1)); //---- lblFechaLimite ---- lblFechaLimite.setText("Fecha L\u00edmite:"); add(lblFechaLimite, cc.xywh(11, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtFechaLimite ---- txtFechaLimite.setEditable(false); add(txtFechaLimite, cc.xywh(13, 7, 3, 1)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtEstado ---- txtEstado.setEditable(false); add(txtEstado, cc.xy(5, 9)); //---- btnOrdenEntregada ---- btnOrdenEntregada.setText("Entregado"); add(btnOrdenEntregada, cc.xy(7, 9)); //---- lblEquipo ---- lblEquipo.setText("Equipo:"); add(lblEquipo, cc.xywh(11, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtEquipo ---- txtEquipo.setEditable(false); add(txtEquipo, cc.xywh(13, 9, 3, 1)); //---- lblArchivoDescripcion ---- lblArchivoDescripcion.setText("Descripci\u00f3n:"); add(lblArchivoDescripcion, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(btnArchivoDescripcion, cc.xywh(15, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- txtArchivoDescripcion ---- txtArchivoDescripcion.setEditable(false); add(txtArchivoDescripcion, cc.xywh(5, 11, 9, 1)); //---- lblPropuesta ---- lblPropuesta.setText("Propuesta:"); add(lblPropuesta, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPropuesta ---- txtPropuesta.setEditable(false); add(txtPropuesta, cc.xywh(5, 13, 9, 1)); add(btnPropuesta, cc.xywh(15, 13, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- lblDescripcion ---- lblDescripcion.setText("Descripci\u00f3n:"); add(lblDescripcion, cc.xy(3, 15)); //======== scrollPane1 ======== { //---- txtDescripcion ---- txtDescripcion.setEditable(false); txtDescripcion.setFont(new Font("Courier", Font.PLAIN, 13)); txtDescripcion.setLineWrap(true); txtDescripcion.setRows(4); scrollPane1.setViewportView(txtDescripcion); } add(scrollPane1, cc.xywh(3, 17, 13, 4)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:cz.vity.freerapid.gui.dialogs.DownloadHistoryDialog.java
@SuppressWarnings({ "deprecation" }) private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown //ResourceBundle bundle = ResourceBundle.getBundle("DownloadHistoryDialog"); JPanel dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JPanel panel1 = new JPanel(); combobox = new JComboBox(); JLabel labelFilter = new JLabel(); fieldFilter = new JTextField(); JScrollPane scrollPane2 = new JScrollPane(); table = new JXTable(); JXButtonPanel buttonBar = new JXButtonPanel(); clearHistoryBtn = new JButton(); okButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {/* ww w. j a v a 2s.co m*/ dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { //======== panel1 ======== { panel1.setBorder(new TitledBorder("")); //---- labelFilter ---- labelFilter.setName("labelFilter"); labelFilter.setLabelFor(fieldFilter); PanelBuilder panel1Builder = new PanelBuilder(new FormLayout( new ColumnSpec[] { ColumnSpec.decode("max(pref;80dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default")), panel1); panel1Builder.add(combobox, cc.xy(1, 1)); panel1Builder.add(labelFilter, cc.xy(3, 1)); panel1Builder.add(fieldFilter, cc.xy(5, 1)); } //======== scrollPane2 ======== { scrollPane2.setViewportView(table); } PanelBuilder contentPanelBuilder = new PanelBuilder( new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }), contentPanel); contentPanelBuilder.add(panel1, cc.xy(1, 1)); contentPanelBuilder.add(scrollPane2, cc.xy(1, 3)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); //---- clearHistoryBtn ---- clearHistoryBtn.setName("clearHistoryBtn"); //---- okButton ---- okButton.setName("okButton"); PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;55dlu)") }, RowSpec.decodeSpecs("fill:pref")), buttonBar); buttonBarBuilder.add(clearHistoryBtn, cc.xy(1, 1)); buttonBarBuilder.add(okButton, cc.xy(5, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); }
From source file:cz.vity.freerapid.gui.dialogs.MultipleSettingsDialog.java
@SuppressWarnings({ "deprecation" }) private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown //ResourceBundle bundle = ResourceBundle.getBundle("MultipleSettingsDialog"); JPanel dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JLabel iconLabel = new JLabel(); titleLabel = new JLabel(); JLabel labelSize = new JLabel(); fieldSize = new JTextField(); JLabel labelDescription = new JLabel(); JScrollPane scrollPane1 = new JScrollPane(); descriptionArea = ComponentFactory.getTextArea(); JPanel optionsPanel = new JPanel(); JLabel saveToLabel = new JLabel(); comboPath = new JComboBox(); btnSelectPath = new JButton(); JXButtonPanel buttonBar = new JXButtonPanel(); okButton = new JButton(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from w ww .ja v a2 s . c o m dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { //---- iconLabel ---- iconLabel.setName("iconLabel"); //---- titleLabel ---- titleLabel.setName("titleLabel"); titleLabel.setFont(new Font("Tahoma", Font.BOLD, 12)); //---- labelSize ---- labelSize.setName("labelSize"); //---- fieldSize ---- fieldSize.setBorder(null); fieldSize.setOpaque(false); fieldSize.setEditable(false); //---- labelDescription ---- labelDescription.setName("labelDescription"); //======== scrollPane1 ======== { scrollPane1.setViewportView(descriptionArea); } //======== optionsPanel ======== { //---- saveToLabel ---- saveToLabel.setName("saveToLabel"); saveToLabel.setLabelFor(comboPath); //---- comboPath ---- comboPath.setEditable(true); //---- btnSelectPath ---- btnSelectPath.setName("btnSelectPath"); PanelBuilder optionsPanelBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default")), optionsPanel); optionsPanelBuilder.add(saveToLabel, cc.xy(1, 1)); optionsPanelBuilder.add(comboPath, cc.xy(3, 1)); optionsPanelBuilder.add(btnSelectPath, cc.xy(5, 1)); } PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(49)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;70dlu)") }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.PREFERRED, FormSpec.NO_GROW), FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(50)), FormSpec.DEFAULT_GROW), FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }), contentPanel); contentPanelBuilder.add(iconLabel, cc.xywh(1, 1, 1, 5, CellConstraints.DEFAULT, CellConstraints.FILL)); contentPanelBuilder.add(titleLabel, cc.xywh(3, 1, 5, 1)); contentPanelBuilder.add(labelSize, cc.xy(3, 3)); contentPanelBuilder.add(fieldSize, cc.xywh(5, 3, 3, 1)); contentPanelBuilder.add(labelDescription, cc.xy(1, 7)); contentPanelBuilder.add(scrollPane1, cc.xywh(1, 9, 7, 1)); contentPanelBuilder.add(optionsPanel, cc.xywh(1, 11, 7, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); //---- okButton ---- okButton.setName("okButton"); //---- cancelButton ---- cancelButton.setName("cancelButton"); PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:pref")), buttonBar); ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 3, 5 } }); buttonBarBuilder.add(okButton, cc.xy(3, 1)); buttonBarBuilder.add(cancelButton, cc.xy(5, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); }
From source file:cz.vity.freerapid.gui.dialogs.NewLinksDialog.java
@SuppressWarnings({ "deprecation" }) private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown //ResourceBundle bundle = ResourceBundle.getBundle("NewLinksDialog"); JPanel dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JLabel labelLinks = new JLabel(); JScrollPane scrollPane1 = new JScrollPane(); urlsArea = ComponentFactory.getURLsEditorPane(); JLabel labelSaveTo = new JLabel(); comboPath = new JComboBox(); btnSelectPath = new JButton(); JLabel labelDescription = new JLabel(); JScrollPane scrollPane2 = new JScrollPane(); descriptionArea = ComponentFactory.getTextArea(); JXButtonPanel buttonBar = new JXButtonPanel(); btnPasteFromClipboard = new JButton(); okButton = new JButton(); btnStartPaused = new JButton(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from w w w . j ava2 s . c o m dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { //---- labelLinks ---- labelLinks.setName("labelLinks"); labelLinks.setLabelFor(urlsArea); //======== scrollPane1 ======== { scrollPane1.setViewportView(urlsArea); } //---- labelSaveTo ---- labelSaveTo.setName("labelSaveTo"); labelSaveTo.setLabelFor(comboPath); //---- comboPath ---- comboPath.setEditable(true); //---- btnSelectPath ---- btnSelectPath.setName("btnSelectPath"); //---- labelDescription ---- labelDescription.setName("labelDescription"); labelDescription.setLabelFor(descriptionArea); //======== scrollPane2 ======== { scrollPane2.setViewportView(descriptionArea); } PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.MIN_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW), FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(55)), FormSpec.DEFAULT_GROW) }), contentPanel); contentPanelBuilder.add(labelLinks, cc.xy(1, 1)); contentPanelBuilder.add(scrollPane1, cc.xywh(1, 3, 5, 1)); contentPanelBuilder.add(labelSaveTo, cc.xy(1, 5)); contentPanelBuilder.add(comboPath, cc.xy(3, 5)); contentPanelBuilder.add(btnSelectPath, cc.xy(5, 5)); contentPanelBuilder.add(labelDescription, cc.xy(1, 7)); contentPanelBuilder.add(scrollPane2, cc.xywh(3, 7, 3, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); //---- btnPasteFromClipboard ---- btnPasteFromClipboard.setName("btnPasteFromClipboard"); //---- okButton ---- okButton.setName("okButton"); //---- btnStartPaused ---- btnStartPaused.setName("btnStartPaused"); //---- cancelButton ---- cancelButton.setName("cancelButton"); PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"), }, RowSpec.decodeSpecs("fill:pref")), buttonBar); ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 5, 9 } }); buttonBarBuilder.add(btnPasteFromClipboard, cc.xy(1, 1)); buttonBarBuilder.add(okButton, cc.xy(5, 1)); buttonBarBuilder.add(btnStartPaused, cc.xy(7, 1)); buttonBarBuilder.add(cancelButton, cc.xy(9, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); }
From source file:cz.vity.freerapid.gui.dialogs.SubmitErrorDialog.java
@SuppressWarnings({ "deprecation" }) private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown JPanel dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JLabel labelName = new JLabel(); fieldName = ComponentFactory.getTextField(); JLabel labelEmail = new JLabel(); fieldEmail = ComponentFactory.getTextField(); JLabel labelComment = new JLabel(); JScrollPane scrollPane1 = new JScrollPane(); commentTextArea = ComponentFactory.getTextArea(); JLabel labelDescribeInfo = new JLabel(); JPanel buttonBar = new JPanel(); btnConnection = new JButton(); btnOk = new JButton(); btnCancel = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {/*from w w w. ja v a2 s . c o m*/ dialogPane.setBorder(Borders.DIALOG); dialogPane.setName("dialogPane"); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setName("contentPanel"); //---- labelName ---- labelName.setLabelFor(fieldName); labelName.setName("labelName"); //---- fieldName ---- fieldName.setColumns(15); fieldName.setName("fieldName"); //---- labelEmail ---- labelEmail.setLabelFor(fieldEmail); labelEmail.setName("labelEmail"); //---- fieldEmail ---- fieldEmail.setColumns(15); fieldEmail.setName("fieldEmail"); //---- labelComment ---- labelComment.setLabelFor(commentTextArea); labelComment.setName("labelComment"); //======== scrollPane1 ======== { scrollPane1.setName("scrollPane1"); //---- commentTextArea ---- commentTextArea.setRows(10); commentTextArea.setLineWrap(true); commentTextArea.setName("commentTextArea"); scrollPane1.setViewportView(commentTextArea); } //---- labelDescribeInfo ---- labelDescribeInfo.setName("labelDescribeInfo"); PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }), contentPanel); contentPanelBuilder.add(labelName, cc.xy(1, 1)); contentPanelBuilder.add(fieldName, cc.xy(3, 1)); contentPanelBuilder.add(labelEmail, cc.xy(5, 1)); contentPanelBuilder.add(fieldEmail, cc.xy(7, 1)); contentPanelBuilder.add(labelComment, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); contentPanelBuilder.add(scrollPane1, cc.xywh(3, 3, 5, 1)); contentPanelBuilder.add(labelDescribeInfo, cc.xywh(3, 5, 5, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setName("buttonBar"); //---- button1 ---- btnConnection.setName("btnConnection"); //---- okButton ---- btnOk.setName("okButton"); //---- cancelButton ---- btnCancel.setName("cancelButton"); PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;10dlu):grow"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ComponentFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref")), buttonBar); buttonBarBuilder.add(btnConnection, cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); buttonBarBuilder.add(btnOk, cc.xy(6, 1)); buttonBarBuilder.add(btnCancel, cc.xy(8, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:cz.vity.freerapid.gui.dialogs.UpdateDialog.java
@SuppressWarnings({ "deprecation" }) private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown //ResourceBundle bundle = ResourceBundle.getBundle("UpdateDialog"); JPanel dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JScrollPane scrollPane1 = new JScrollPane(); table = new JXTable(); JPanel topPanel = new JPanel(); JLabel labelUpdateServer = new JLabel(); labelServer = new JLabel(); labelUpdatesCount = new JLabel(); popmenuButton = ComponentFactory.getPopdownButton(); popmenuButton.setName("popmenuButton"); JXButtonPanel buttonBar = new JXButtonPanel(); btnOK = new JButton(); btnCancel = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from w ww. j ava2s. c om dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12)); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new BorderLayout(4, 4)); //======== scrollPane1 ======== { scrollPane1.setViewportView(table); } contentPanel.add(scrollPane1, BorderLayout.CENTER); //======== topPanel ======== { //---- labelUpdateServer ---- labelUpdateServer.setName("labelUpdateServer"); //---- server ---- labelServer.setName("server"); //---- labelUpdatesCount ---- labelUpdatesCount.setName("labelUpdatesCount"); PanelBuilder topPanelBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default")), topPanel); topPanelBuilder.add(labelUpdateServer, cc.xy(1, 1)); topPanelBuilder.add(labelServer, cc.xy(3, 1)); topPanelBuilder.add(labelUpdatesCount, cc.xy(7, 1)); } contentPanel.add(topPanel, BorderLayout.NORTH); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setCyclic(true); //---- btnOK ---- btnOK.setName("btnOK"); //---- btnCancel ---- btnCancel.setName("btnCancel"); PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.GLUE_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"), FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC }, RowSpec.decodeSpecs("pref")), buttonBar); ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 2, 4, 6 } }); buttonBarBuilder.add(popmenuButton, cc.xy(2, 1)); buttonBarBuilder.add(btnOK, cc.xy(4, 1)); buttonBarBuilder.add(btnCancel, cc.xy(6, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); }
From source file:cz.vity.freerapid.gui.dialogs.userprefs.PluginDetailPanel.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown //ResourceBundle bundle = ResourceBundle.getBundle("PluginDetails"); titleSeparator = new JXTitledSeparator(); JLabel labelVersion = new JLabel(); versionLabel = new JLabel(); JLabel labelAuthor = new JLabel(); authorLabel = new JLabel(); JLabel labelServices = new JLabel(); servicesLabel = new JLabel(); checkboxPluginIsActive = new JCheckBox(); checkboxUpdatePlugins = new JCheckBox(); checkboxClipboardMonitoring = new JCheckBox(); JLabel labelMaxConnections = new JLabel(); labelMaxConnections.setPreferredSize(new Dimension(80, 20)); labelMaxConnections.setMinimumSize(new Dimension(80, 20)); spinnerMaxPluginConnections = new JSpinner(); JLabel labelPriority = new JLabel(); spinnerPluginPriority = new JSpinner(); btnPriorityUp = new JButton(); btnPriorityDown = new JButton(); pluginHyperlink = new JXHyperlink(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(new EmptyBorder(3, 3, 0, 2)); //---- titleSeparator ---- titleSeparator.setTitle(" "); //---- labelVersion ---- labelVersion.setName("labelVersion"); //---- versionLabel ---- versionLabel.setName("versionLabel"); //---- labelAuthor ---- labelAuthor.setName("labelAuthor"); //---- authorLabel ---- authorLabel.setName("authorLabel"); //---- labelServices ---- labelServices.setName("labelServices"); //---- servicesLabel ---- servicesLabel.setName("servicesLabel"); //---- checkboxPluginIsActive ---- checkboxPluginIsActive.setName("checkboxPluginIsActive"); //---- checkboxUpdatePlugins ---- checkboxUpdatePlugins.setName("checkboxUpdatePlugins"); //---- checkboxClipboardMonitoring ---- checkboxClipboardMonitoring.setName("checkboxClipboardMonitoring"); //---- labelMaxConnections ---- labelMaxConnections.setName("labelMaxConnections"); labelMaxConnections.setPreferredSize(new Dimension(180, 14)); //---- spinnerMaxPluginConnections ---- spinnerMaxPluginConnections.setModel(new SpinnerNumberModel(1, 1, null, 1)); //---- labelPriority ---- labelPriority.setName("labelPriority"); //---- spinnerPluginPriority ---- spinnerPluginPriority.setModel(new SpinnerNumberModel(1, 1, 1000, 1)); //---- btnPriorityUp ---- btnPriorityUp.setName("btnPriorityUp"); //---- btnPriorityDown ---- btnPriorityDown.setName("btnPriorityDown"); //---- pluginHyperlink ---- pluginHyperlink.setName("pluginHyperlink"); PanelBuilder builder = new PanelBuilder(new FormLayout( new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;30dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.MINIMUM, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }), this); ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 7, 9 } }); builder.add(titleSeparator, cc.xywh(1, 1, 11, 1)); builder.add(labelVersion, cc.xy(1, 3)); builder.add(versionLabel, cc.xywh(3, 3, 9, 1)); builder.add(labelAuthor, cc.xy(1, 5)); builder.add(authorLabel, cc.xywh(3, 5, 9, 1)); builder.add(labelServices, cc.xy(1, 7)); builder.add(servicesLabel, cc.xywh(3, 7, 7, 1)); builder.add(checkboxPluginIsActive, cc.xywh(1, 9, 11, 1)); builder.add(checkboxUpdatePlugins, cc.xywh(1, 11, 11, 1)); builder.add(checkboxClipboardMonitoring, cc.xywh(1, 13, 11, 1)); builder.add(labelMaxConnections, cc.xywh(1, 15, 3, 1)); builder.add(spinnerMaxPluginConnections, cc.xy(5, 15)); builder.add(labelPriority, cc.xywh(1, 17, 3, 1)); builder.add(spinnerPluginPriority, cc.xy(5, 17)); builder.add(btnPriorityUp, cc.xy(7, 17)); builder.add(btnPriorityDown, cc.xy(9, 17)); builder.add(pluginHyperlink, cc.xywh(1, 19, 9, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:demo.JXPickerDemoForm.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); label7 = new JLabel(); panel1 = new JPanel(); lookAndFeelMetal = new JRadioButton(); lookAndFeelSystem = new JRadioButton(); lookAndFeelMotif = new JRadioButton(); lookAndFeelGoodies = new JRadioButton(); goodiesFormsSeparator1 = compFactory.createSeparator(""); label1 = new JLabel(); comboBox1 = new JComboBox(); label2 = new JLabel(); listPicker = new JXPicker(); label3 = new JLabel(); treePicker = new JXPicker(); label5 = new JLabel(); xDatePicker1 = new JXDatePicker(); label4 = new JLabel(); datePicker = new JXPicker(); label6 = new JLabel(); scrollPane1 = new JScrollPane(); table = new JTable(); aListScrollPane = new JScrollPane(); list = new JList(); monthView = new JXMonthView(); aTableEditorScrollPane = new JScrollPane(); tableEditorTree = new JTree(); tableEditorPicker = new JXPicker(); aTreeScrollPane = new JScrollPane(); tree = new JTree(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU7_BORDER);/*w w w. j ava 2 s . co m*/ setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.UNRELATED_GAP_COLSPEC, new ColumnSpec("max(default;150dlu):grow") }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label7 ---- label7.setText("Look and Feel:"); add(label7, cc.xy(1, 1)); //======== panel1 ======== { panel1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- lookAndFeelMetal ---- lookAndFeelMetal.setText("Metal"); lookAndFeelMetal.setSelected(true); panel1.add(lookAndFeelMetal, cc.xy(1, 1)); //---- lookAndFeelSystem ---- lookAndFeelSystem.setText("System"); panel1.add(lookAndFeelSystem, cc.xy(3, 1)); //---- lookAndFeelMotif ---- lookAndFeelMotif.setText("Motif"); panel1.add(lookAndFeelMotif, cc.xy(5, 1)); //---- lookAndFeelGoodies ---- lookAndFeelGoodies.setText("JGoodies Plastic XP"); panel1.add(lookAndFeelGoodies, cc.xy(7, 1)); } add(panel1, cc.xy(3, 1)); add(goodiesFormsSeparator1, cc.xywh(1, 3, 3, 1)); //---- label1 ---- label1.setText("JComboBox:"); add(label1, cc.xy(1, 5)); //---- comboBox1 ---- comboBox1.setModel(new DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3" })); add(comboBox1, cc.xy(3, 5)); //---- label2 ---- label2.setText("JXPicker w/ JList:"); add(label2, cc.xy(1, 7)); //---- listPicker ---- listPicker.setPopupComponent(aListScrollPane); add(listPicker, cc.xy(3, 7)); //---- label3 ---- label3.setText("JXPicker w/ JTree:"); add(label3, cc.xy(1, 9)); //---- treePicker ---- treePicker.setPopupComponent(aTreeScrollPane); add(treePicker, cc.xy(3, 9)); //---- label5 ---- label5.setText("JXDatePicker:"); add(label5, cc.xy(1, 11)); add(xDatePicker1, cc.xy(3, 11)); //---- label4 ---- label4.setText("JXPicker w/ JXMonthView:"); add(label4, cc.xy(1, 13)); //---- datePicker ---- datePicker.setPopupComponent(monthView); add(datePicker, cc.xy(3, 13)); //---- label6 ---- label6.setText("JTable w/ JXPicker Cell Editor"); add(label6, cc.xy(1, 15)); //======== scrollPane1 ======== { //---- table ---- table.setModel( new DefaultTableModel(new Object[][] { { null }, { null }, { null }, }, new String[] { null })); table.setPreferredScrollableViewportSize(new Dimension(0, 50)); scrollPane1.setViewportView(table); } add(scrollPane1, cc.xy(3, 15)); //======== aListScrollPane ======== { aListScrollPane.setBackground(null); aListScrollPane.setFocusable(false); //---- list ---- list.setModel(new AbstractListModel() { String[] values = { "Item 1", "Item 2", "Item 3" }; public int getSize() { return values.length; } public Object getElementAt(int i) { return values[i]; } }); list.setFocusable(false); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); aListScrollPane.setViewportView(list); } //---- monthView ---- monthView.setFocusable(false); monthView.setBorder(LineBorder.createBlackLineBorder()); //======== aTableEditorScrollPane ======== { aTableEditorScrollPane.setViewportView(tableEditorTree); } //---- tableEditorPicker ---- tableEditorPicker.setPopupComponent(aTableEditorScrollPane); //======== aTreeScrollPane ======== { aTreeScrollPane.setViewportView(tree); } //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(lookAndFeelMetal); buttonGroup1.add(lookAndFeelSystem); buttonGroup1.add(lookAndFeelMotif); buttonGroup1.add(lookAndFeelGoodies); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:edu.byu.plugins.editors.ArchDescriptionDatesFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license repositoryInfo = new JPanel(); label15 = new JLabel(); dateExpression = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_DATE_EXPRESSION)); Date1Label = new JLabel(); panel1 = new JPanel(); label_date1Begin = new JLabel(); date1Begin = BYU_ATBasicComponentFactory .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISODATE_BEGIN)); label_date1End = new JLabel(); date1End = BYU_ATBasicComponentFactory .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISODATE_END)); BulkDatesLabel = new JLabel(); panel2 = new JPanel(); label_bulkDateBegin = new JLabel(); bulkDateBegin = BYU_ATBasicComponentFactory .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_BEGIN)); label_bulkDateEnd = new JLabel(); bulkDateEnd = BYU_ATBasicComponentFactory .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_END)); rights = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_CERTAINTY, ArchDescriptionDates.class); label3 = new JLabel(); extentType = ATBasicComponentFactory.createComboBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_DATE_TYPE, ArchDescriptionDates.class); label4 = new JLabel(); extentType2 = ATBasicComponentFactory.createComboBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_ERA, ArchDescriptionDates.class); label5 = new JLabel(); extentType3 = ATBasicComponentFactory.createComboBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_CALENDAR, ArchDescriptionDates.class); CellConstraints cc = new CellConstraints(); //======== this ======== setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setBackground(new Color(200, 205, 232)); setLayout(new FormLayout("default:grow", "top:default:grow")); //======== repositoryInfo ======== {// w ww. j a va 2s .c o m repositoryInfo.setBorder(Borders.DLU4_BORDER); repositoryInfo.setOpaque(false); repositoryInfo.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryInfo.setBackground(new Color(200, 205, 232)); repositoryInfo.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, 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 })); //---- label15 ---- label15.setText("Date Expression"); label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label15, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_DATE_EXPRESSION); repositoryInfo.add(label15, cc.xy(1, 1)); //---- dateExpression ---- dateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); dateExpression.setColumns(12); repositoryInfo.add(dateExpression, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- Date1Label ---- Date1Label.setText("Inclusive Dates"); Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryInfo.add(Date1Label, cc.xywh(1, 3, 3, 1)); //======== panel1 ======== { panel1.setBackground(new Color(200, 205, 232)); panel1.setLayout(new FormLayout( new ColumnSpec[] { 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, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- label_date1Begin ---- label_date1Begin.setText("Begin"); label_date1Begin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_date1Begin, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ISODATE_BEGIN); panel1.add(label_date1Begin, cc.xy(3, 1)); //---- date1Begin ---- date1Begin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(date1Begin, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_date1End ---- label_date1End.setText("End"); label_date1End.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_date1End, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ISODATE_END); panel1.add(label_date1End, cc.xy(7, 1)); //---- date1End ---- date1End.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(date1End, new CellConstraints(9, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); } repositoryInfo.add(panel1, cc.xywh(1, 5, 3, 1)); //---- BulkDatesLabel ---- BulkDatesLabel.setText("Bulk Dates"); BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryInfo.add(BulkDatesLabel, cc.xywh(1, 7, 3, 1)); //======== panel2 ======== { panel2.setBackground(new Color(200, 205, 232)); panel2.setLayout(new FormLayout( new ColumnSpec[] { 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, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- label_bulkDateBegin ---- label_bulkDateBegin.setText("Begin"); label_bulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_bulkDateBegin, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_BEGIN); panel2.add(label_bulkDateBegin, cc.xy(3, 1)); //---- bulkDateBegin ---- bulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.add(bulkDateBegin, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_bulkDateEnd ---- label_bulkDateEnd.setText("End"); label_bulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_bulkDateEnd, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_END); panel2.add(label_bulkDateEnd, cc.xy(7, 1)); //---- bulkDateEnd ---- bulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.add(bulkDateEnd, new CellConstraints(9, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); } repositoryInfo.add(panel2, cc.xywh(1, 9, 3, 1)); //---- rights ---- rights.setBackground(new Color(231, 188, 251)); rights.setText("Notification"); rights.setOpaque(false); rights.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); rights.setText( ATFieldInfo.getLabel(ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_CERTAINTY)); repositoryInfo.add(rights, cc.xywh(1, 11, 3, 1)); //---- label3 ---- label3.setText("Date Type"); ATFieldInfo.assignLabelInfo(label3, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_DATE_TYPE); repositoryInfo.add(label3, cc.xy(1, 13)); //---- extentType ---- extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType.setOpaque(false); repositoryInfo.add(extentType, new CellConstraints(3, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); //---- label4 ---- label4.setText("Erazzz"); ATFieldInfo.assignLabelInfo(label4, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ERA); repositoryInfo.add(label4, cc.xy(1, 15)); //---- extentType2 ---- extentType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType2.setOpaque(false); repositoryInfo.add(extentType2, new CellConstraints(3, 15, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); //---- label5 ---- label5.setText("Calendar"); ATFieldInfo.assignLabelInfo(label5, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_CALENDAR); repositoryInfo.add(label5, cc.xy(1, 17)); //---- extentType3 ---- extentType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType3.setOpaque(false); repositoryInfo.add(extentType3, new CellConstraints(3, 17, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); } add(repositoryInfo, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }