List of usage examples for com.jgoodies.forms.layout CellConstraints DEFAULT
Alignment DEFAULT
To view the source code for com.jgoodies.forms.layout CellConstraints DEFAULT.
Click Source Link
From source file:org.archiviststoolkit.editor.FileVersionFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectTerm = new JLabel(); uri = ATBasicComponentFactory//ww w . ja v a 2 s.c om .createTextField(detailsModel.getModel(FileVersions.PROPERTYNAME_FILE_VERSIONS_URI)); label_subjectTermType = new JLabel(); useStatement = ATBasicComponentFactory.createComboBox(detailsModel, FileVersions.PROPERTYNAME_FILE_VERSIONS_USE_STATEMENT, FileVersions.class); actuateLabel = new JLabel(); actuate = ATBasicComponentFactory.createComboBox(detailsModel, FileVersions.PROPERTYNAME_EAD_DAO_ACTUATE, FileVersions.class); showLabel = new JLabel(); show = ATBasicComponentFactory.createComboBox(detailsModel, FileVersions.PROPERTYNAME_EAD_DAO_SHOW, FileVersions.class); button1 = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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 })); //---- label_subjectTerm ---- label_subjectTerm.setText("URI"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, FileVersions.class, FileVersions.PROPERTYNAME_FILE_VERSIONS_URI); add(label_subjectTerm, cc.xy(1, 1)); add(uri, cc.xy(3, 1)); //---- label_subjectTermType ---- label_subjectTermType.setText("Use Statement"); label_subjectTermType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTermType, FileVersions.class, FileVersions.PROPERTYNAME_FILE_VERSIONS_USE_STATEMENT); add(label_subjectTermType, cc.xy(1, 3)); //---- useStatement ---- useStatement.setOpaque(false); useStatement.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(useStatement, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- actuateLabel ---- actuateLabel.setText("EAD DAO Actuate"); actuateLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(actuateLabel, FileVersions.class, FileVersions.PROPERTYNAME_EAD_DAO_ACTUATE); add(actuateLabel, cc.xy(1, 5)); //---- actuate ---- actuate.setOpaque(false); actuate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(actuate, cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- showLabel ---- showLabel.setText("EAD DAO Show"); showLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(showLabel, FileVersions.class, FileVersions.PROPERTYNAME_EAD_DAO_SHOW); add(showLabel, cc.xy(1, 7)); //---- show ---- show.setOpaque(false); show.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(show, cc.xywh(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- button1 ---- button1.setText("Open URI In Web Browser"); button1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { openFileBrowser(); } }); add(button1, cc.xy(3, 9)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.IndexFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel3 = new JPanel(); internalOnly = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescriptionStructuredData.PROPERTYNAME_ARCH_DESCRIPTION_NOTE_INTERNAL_ONLY, Index.class); panel4 = new JPanel(); label4 = new JLabel(); persistentId2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescriptionRepeatingData.PROPERTYNAME_PERSISTENT_ID)); label_title = new JLabel(); title = ATBasicComponentFactory.createTextField(detailsModel.getModel(Index.PROPERTYNAME_TITLE)); label_description = new JLabel(); scrollPane1 = new JScrollPane(); note = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Index.PROPERTYNAME_NOTE), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory.createUnboundComboBox(InLineTagsUtils.getInLineTagList()); label_ingestProblems = new JLabel(); scrollPane2 = new JScrollPane(); ingestProblems = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Index.PROPERTYNAME_EAD_INGEST_PROBLEMS)); scrollPane7 = new JScrollPane(); itemsTable = new DomainSortedTable(IndexItems.class); panel1 = new JPanel(); panel30 = new JPanel(); addItemButton = new JButton(); removeItemButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//from w w w . j a v a2 s. c o m 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, 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, FormFactory.DEFAULT_ROWSPEC })); //======== panel3 ======== { panel3.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) }, RowSpec.decodeSpecs("default"))); //---- internalOnly ---- internalOnly.setBackground(new Color(231, 188, 251)); internalOnly.setText("Internal Only"); internalOnly.setOpaque(false); internalOnly.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel3.add(internalOnly, cc.xy(1, 1)); //======== panel4 ======== { panel4.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label4 ---- label4.setText("Persistent ID"); label4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel4.add(label4, cc.xy(1, 1)); //---- persistentId2 ---- persistentId2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); persistentId2.setColumns(3); persistentId2.setBorder(null); persistentId2.setEditable(false); persistentId2.setOpaque(false); panel4.add(persistentId2, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } panel3.add(panel4, cc.xywh(5, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); } add(panel3, cc.xywh(1, 1, 3, 1)); //---- label_title ---- label_title.setText("Title"); label_title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_title, Index.class, Index.PROPERTYNAME_TITLE); add(label_title, cc.xy(1, 3)); add(title, cc.xy(3, 3)); //---- label_description ---- label_description.setText("Note"); label_description.setVerticalAlignment(SwingConstants.TOP); label_description.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_description, Index.class, Index.PROPERTYNAME_NOTE); add(label_description, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- note ---- note.setRows(4); note.setLineWrap(true); note.setTabSize(20); note.setWrapStyleWord(true); scrollPane1.setViewportView(note); } add(scrollPane1, cc.xy(3, 5)); //======== tagApplicatorPanel ======== { tagApplicatorPanel.setOpaque(false); tagApplicatorPanel .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"))); //---- insertInlineTag ---- insertInlineTag.setOpaque(false); insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); insertInlineTag.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { insertInlineTagActionPerformed(); } }); tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1)); } add(tagApplicatorPanel, cc.xy(3, 7)); //---- label_ingestProblems ---- label_ingestProblems.setText("Ingest Problems"); label_ingestProblems.setVerticalAlignment(SwingConstants.TOP); label_ingestProblems.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_ingestProblems, Index.class, Index.PROPERTYNAME_EAD_INGEST_PROBLEMS); add(label_ingestProblems, cc.xywh(1, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- ingestProblems ---- ingestProblems.setRows(4); ingestProblems.setLineWrap(true); ingestProblems.setTabSize(20); ingestProblems.setWrapStyleWord(true); scrollPane2.setViewportView(ingestProblems); } add(scrollPane2, cc.xy(3, 9)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- itemsTable ---- itemsTable.setFocusable(false); itemsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { itemsTableMouseClicked(e); } @Override public void mousePressed(MouseEvent e) { itemsTableMousePressed(e); } @Override public void mouseReleased(MouseEvent e) { itemsTableMouseReleased(e); } }); scrollPane7.setViewportView(itemsTable); } add(scrollPane7, cc.xywh(1, 11, 3, 1)); //======== 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) }, RowSpec.decodeSpecs("default"))); ((FormLayout) panel1.getLayout()).setColumnGroups(new int[][] { { 1, 3, 5 } }); //======== panel30 ======== { panel30.setBackground(new Color(231, 188, 251)); panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addItemButton ---- addItemButton.setText("Add Item"); addItemButton.setOpaque(false); addItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemButtonActionPerformed(e); } }); panel30.add(addItemButton, cc.xy(1, 1)); //---- removeItemButton ---- removeItemButton.setBackground(new Color(231, 188, 251)); removeItemButton.setText("Remove Item"); removeItemButton.setOpaque(false); removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemButtonActionPerformed(e); } }); panel30.add(removeItemButton, cc.xy(3, 1)); } panel1.add(panel30, cc.xy(3, 1)); } add(panel1, cc.xywh(1, 13, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.IndexItemsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); descritpion = ATBasicComponentFactory .createTextArea(detailsModel.getModel(IndexItems.PROPERTYNAME_ITEM_VALUE)); label_subjectScopeNote2 = new JLabel(); type = ATBasicComponentFactory.createComboBox(detailsModel, IndexItems.PROPERTYNAME_ITEM_TYPE, IndexItems.class); label_subjectScopeNote3 = new JLabel(); reference = new JComboBox(); label_subjectScopeNote4 = new JLabel(); referenceText = ATBasicComponentFactory .createTextField(detailsModel.getModel(IndexItems.PROPERTYNAME_REFERENCE_TEXT)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);/*from w w w. j ava 2s . c o m*/ setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Value"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, IndexItems.class, IndexItems.PROPERTYNAME_ITEM_VALUE); add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- descritpion ---- descritpion.setRows(4); descritpion.setLineWrap(true); descritpion.setTabSize(20); descritpion.setWrapStyleWord(true); scrollPane1.setViewportView(descritpion); } add(scrollPane1, cc.xy(3, 1)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Type"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, IndexItems.class, IndexItems.PROPERTYNAME_ITEM_TYPE); add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER)); //---- type ---- type.setMaximumSize(new Dimension(50, 27)); type.setOpaque(false); type.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(type, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectScopeNote3 ---- label_subjectScopeNote3.setText("Reference"); label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote3, IndexItems.class, IndexItems.PROPERTYNAME_REFERENCE); add(label_subjectScopeNote3, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER)); //---- reference ---- reference.setMaximumSize(new Dimension(50, 27)); reference.setOpaque(false); reference.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); reference.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { referenceActionPerformed(e); } }); add(reference, cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectScopeNote4 ---- label_subjectScopeNote4.setText("Reference Text"); label_subjectScopeNote4.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote4, IndexItems.class, IndexItems.PROPERTYNAME_REFERENCE_TEXT); add(label_subjectScopeNote4, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER)); add(referenceText, cc.xy(3, 7)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ListDefinitionFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectTerm = new JLabel(); title = ATBasicComponentFactory.createTextField(detailsModel.getModel(ListDefinition.PROPERTYNAME_TITLE)); label_subjectScopeNote2 = new JLabel(); scrollPane2 = new JScrollPane(); ingestProblems = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ListDefinition.PROPERTYNAME_EAD_INGEST_PROBLEMS)); scrollPane7 = new JScrollPane(); itemsTable = new DomainSortedTable(ListDefinitionItems.class); panel30 = new JPanel(); addItemButton = new JButton(); removeItemButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//from w w w . j a va 2 s. c o m 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(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, 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 })); //---- label_subjectTerm ---- label_subjectTerm.setText("Title"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, ListDefinition.class, ListDefinition.PROPERTYNAME_TITLE); add(label_subjectTerm, cc.xy(1, 1)); add(title, cc.xy(3, 1)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Ingest Problems"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ListDefinition.class, ListDefinition.PROPERTYNAME_EAD_INGEST_PROBLEMS); add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- ingestProblems ---- ingestProblems.setRows(4); ingestProblems.setLineWrap(true); ingestProblems.setTabSize(20); ingestProblems.setWrapStyleWord(true); scrollPane2.setViewportView(ingestProblems); } add(scrollPane2, cc.xy(3, 3)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- itemsTable ---- itemsTable.setFocusable(false); itemsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { itemsTableMouseClicked(e); } @Override public void mousePressed(MouseEvent e) { itemsTableMousePressed(e); } @Override public void mouseReleased(MouseEvent e) { itemsTableMouseReleased(e); } }); scrollPane7.setViewportView(itemsTable); } add(scrollPane7, cc.xywh(1, 5, 3, 1)); //======== panel30 ======== { panel30.setBackground(new Color(231, 188, 251)); panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addItemButton ---- addItemButton.setText("Add Item"); addItemButton.setOpaque(false); addItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemButtonActionPerformed(e); } }); panel30.add(addItemButton, cc.xy(1, 1)); //---- removeItemButton ---- removeItemButton.setBackground(new Color(231, 188, 251)); removeItemButton.setText("Remove Item"); removeItemButton.setOpaque(false); removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemButtonActionPerformed(e); } }); panel30.add(removeItemButton, cc.xy(3, 1)); } add(panel30, cc.xywh(1, 7, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ListDefinitionItemsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote2 = new JLabel(); label = ATBasicComponentFactory/* w ww.j a va2s . co m*/ .createTextField(detailsModel.getModel(ListDefinitionItems.PROPERTYNAME_LABEL)); label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); value = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ListDefinitionItems.PROPERTYNAME_ITEM_VALUE), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory.createUnboundComboBox( InLineTagsUtils.getInLineTagList(InLineTagsUtils.DEFINITION_LIST_ITEM_VALUE)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Label"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ListDefinitionItems.class, ListDefinitionItems.PROPERTYNAME_LABEL); add(label_subjectScopeNote2, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); add(label, cc.xy(3, 1)); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Value"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, ListDefinitionItems.class, ListDefinitionItems.PROPERTYNAME_ITEM_VALUE); add(label_subjectScopeNote, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- value ---- value.setRows(4); value.setLineWrap(true); value.setTabSize(20); value.setWrapStyleWord(true); scrollPane1.setViewportView(value); } add(scrollPane1, cc.xy(3, 3)); //======== tagApplicatorPanel ======== { tagApplicatorPanel.setOpaque(false); tagApplicatorPanel .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"))); //---- insertInlineTag ---- insertInlineTag.setOpaque(false); insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); insertInlineTag.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { insertInlineTagActionPerformed(); } }); tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1)); } add(tagApplicatorPanel, cc.xy(3, 5)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ListOrderedFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectTerm = new JLabel(); title = ATBasicComponentFactory.createTextField(detailsModel.getModel(ListOrdered.PROPERTYNAME_TITLE)); label_subjectScopeNote3 = new JLabel(); unitType = ATBasicComponentFactory.createComboBox(detailsModel, ListOrdered.PROPERTYNAME_NUMERATION, ListOrdered.class); label_subjectScopeNote2 = new JLabel(); scrollPane2 = new JScrollPane(); ingestProblems = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ListOrdered.PROPERTYNAME_EAD_INGEST_PROBLEMS)); scrollPane7 = new JScrollPane(); itemsTable = new DomainSortedTable(ListOrderedItems.class); panel30 = new JPanel(); addItemButton = new JButton(); removeItemButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);// w w w .j ava2 s. c o m 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(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, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectTerm ---- label_subjectTerm.setText("Title"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, ListOrdered.class, ListOrdered.PROPERTYNAME_TITLE); add(label_subjectTerm, cc.xy(1, 1)); add(title, cc.xy(3, 1)); //---- label_subjectScopeNote3 ---- label_subjectScopeNote3.setText("Numeration"); label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote3, ListOrdered.class, ListOrdered.PROPERTYNAME_NUMERATION); add(label_subjectScopeNote3, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- unitType ---- unitType.setMaximumSize(new Dimension(50, 27)); unitType.setOpaque(false); unitType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(unitType, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Ingest Problems"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ListOrdered.class, ListOrdered.PROPERTYNAME_EAD_INGEST_PROBLEMS); add(label_subjectScopeNote2, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- ingestProblems ---- ingestProblems.setRows(4); ingestProblems.setLineWrap(true); ingestProblems.setTabSize(20); ingestProblems.setWrapStyleWord(true); scrollPane2.setViewportView(ingestProblems); } add(scrollPane2, cc.xy(3, 5)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- itemsTable ---- itemsTable.setFocusable(false); itemsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { itemsTableMouseClicked(e); } @Override public void mousePressed(MouseEvent e) { itemsTableMousePressed(e); } @Override public void mouseReleased(MouseEvent e) { itemsTableMouseReleased(e); } }); scrollPane7.setViewportView(itemsTable); } add(scrollPane7, cc.xywh(1, 7, 3, 1)); //======== panel30 ======== { panel30.setBackground(new Color(231, 188, 251)); panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addItemButton ---- addItemButton.setText("Add Item"); addItemButton.setOpaque(false); addItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemButtonActionPerformed(e); } }); panel30.add(addItemButton, cc.xy(1, 1)); //---- removeItemButton ---- removeItemButton.setBackground(new Color(231, 188, 251)); removeItemButton.setText("Remove Item"); removeItemButton.setOpaque(false); removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemButtonActionPerformed(e); } }); panel30.add(removeItemButton, cc.xy(3, 1)); } add(panel30, cc.xywh(1, 9, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ListOrderedItemsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); value = ATBasicComponentFactory//w w w. j av a 2 s. co m .createTextArea(detailsModel.getModel(ListOrderedItems.PROPERTYNAME_ITEM_VALUE), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.ORDERED_LIST_ITEM_VALUE)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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 })); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Value"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, ListOrderedItems.class, ListOrderedItems.PROPERTYNAME_ITEM_VALUE); add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- value ---- value.setRows(4); value.setLineWrap(true); value.setTabSize(20); value.setWrapStyleWord(true); scrollPane1.setViewportView(value); } add(scrollPane1, cc.xy(3, 1)); //======== tagApplicatorPanel ======== { tagApplicatorPanel.setOpaque(false); tagApplicatorPanel .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"))); //---- insertInlineTag ---- insertInlineTag.setOpaque(false); insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); insertInlineTag.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { insertInlineTagActionPerformed(); } }); tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1)); } add(tagApplicatorPanel, cc.xy(3, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.LocationFields.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(); building = ATBasicComponentFactory.createTextField(detailsModel.getModel(Locations.PROPERTYNAME_BUILDING)); label2 = new JLabel(); floor = ATBasicComponentFactory.createTextField(detailsModel.getModel(Locations.PROPERTYNAME_FLOOR)); label3 = new JLabel(); room = ATBasicComponentFactory.createTextField(detailsModel.getModel(Locations.PROPERTYNAME_ROOM)); label4 = new JLabel(); area = ATBasicComponentFactory.createTextField(detailsModel.getModel(Locations.PROPERTYNAME_AREA)); separator2 = new JSeparator(); label5 = new JLabel(); coordinate1 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_1_LABEL)); label_subjectSource2 = new JLabel(); container1Value2 = ATBasicComponentFactory.createDoubleField(detailsModel, Locations.PROPERTYNAME_COORDINATE_1_NUMERIC_INDICATOR); label_subjectSource6 = new JLabel(); containerLabel5 = ATBasicComponentFactory.createTextField( detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_1_ALPHA_NUMERIC_INDICATOR)); separator3 = new JSeparator(); label6 = new JLabel(); coordinate2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_2_LABEL)); label_subjectSource3 = new JLabel(); container1Value3 = ATBasicComponentFactory.createDoubleField(detailsModel, Locations.PROPERTYNAME_COORDINATE_2_NUMERIC_INDICATOR); label_subjectSource7 = new JLabel(); containerLabel6 = ATBasicComponentFactory.createTextField( detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_2_ALPHA_NUMERIC_INDICATOR)); separator4 = new JSeparator(); label7 = new JLabel(); coordinate3 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_3_LABEL)); label_subjectSource4 = new JLabel(); container1Value4 = ATBasicComponentFactory.createDoubleField(detailsModel, Locations.PROPERTYNAME_COORDINATE_3_NUMERIC_INDICATOR); label_subjectSource8 = new JLabel(); containerLabel7 = ATBasicComponentFactory.createTextField( detailsModel.getModel(Locations.PROPERTYNAME_COORDINATE_3_ALPHA_NUMERIC_INDICATOR)); separator5 = new JSeparator(); label8 = new JLabel(); classificationNumber = ATBasicComponentFactory .createTextField(detailsModel.getModel(Locations.PROPERTYNAME_CLASSIFICATION_NUMBER)); label9 = new JLabel(); barcode = ATBasicComponentFactory.createTextField(detailsModel.getModel(Locations.PROPERTYNAME_BARCODE)); label10 = new JLabel(); repository = ATBasicComponentFactory.createComboBox(detailsModel, Locations.PROPERTYNAME_REPOSITORY, Repositories.getRepositoryList()); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//from w ww . j a va 2 s .c o m setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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, 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, FormFactory.DEFAULT_ROWSPEC })); //---- label1 ---- label1.setText("Building"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, Locations.class, Locations.PROPERTYNAME_BUILDING); add(label1, cc.xy(1, 1)); add(building, cc.xy(3, 1)); //---- label2 ---- label2.setText("Floor"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label2, Locations.class, Locations.PROPERTYNAME_FLOOR); add(label2, cc.xy(1, 3)); add(floor, cc.xy(3, 3)); //---- label3 ---- label3.setText("Room"); label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label3, Locations.class, Locations.PROPERTYNAME_ROOM); add(label3, cc.xy(1, 5)); add(room, cc.xy(3, 5)); //---- label4 ---- label4.setText("Area"); label4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label4, Locations.class, Locations.PROPERTYNAME_AREA); add(label4, cc.xy(1, 7)); add(area, cc.xy(3, 7)); //---- separator2 ---- separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); separator2.setForeground(new Color(147, 131, 86)); add(separator2, cc.xywh(1, 9, 3, 1)); //---- label5 ---- label5.setText("Coordinate 1 Label"); label5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label5, Locations.class, Locations.PROPERTYNAME_COORDINATE_1_LABEL); add(label5, cc.xy(1, 11)); add(coordinate1, cc.xy(3, 11)); //---- label_subjectSource2 ---- label_subjectSource2.setText("Coordinate 1 Numeric Indicator"); label_subjectSource2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource2, Locations.class, Locations.PROPERTYNAME_COORDINATE_1_NUMERIC_INDICATOR); add(label_subjectSource2, cc.xy(1, 13)); //---- container1Value2 ---- container1Value2.setColumns(5); add(container1Value2, cc.xywh(3, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectSource6 ---- label_subjectSource6.setText("Coordinate 1 Alphanumeric Indicator"); label_subjectSource6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource6, Locations.class, Locations.PROPERTYNAME_COORDINATE_1_ALPHA_NUMERIC_INDICATOR); add(label_subjectSource6, cc.xy(1, 15)); add(containerLabel5, cc.xy(3, 15)); //---- separator3 ---- separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); separator3.setForeground(new Color(147, 131, 86)); add(separator3, cc.xywh(1, 17, 3, 1)); //---- label6 ---- label6.setText("Coordinate 2 Label"); label6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label6, Locations.class, Locations.PROPERTYNAME_COORDINATE_2_LABEL); add(label6, cc.xy(1, 19)); add(coordinate2, cc.xy(3, 19)); //---- label_subjectSource3 ---- label_subjectSource3.setText("Coordinate 2 Numeric Indicator"); label_subjectSource3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource3, Locations.class, Locations.PROPERTYNAME_COORDINATE_2_NUMERIC_INDICATOR); add(label_subjectSource3, cc.xy(1, 21)); //---- container1Value3 ---- container1Value3.setColumns(5); add(container1Value3, cc.xywh(3, 21, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectSource7 ---- label_subjectSource7.setText("Coordinate 2 Alphanumeric Indicator"); label_subjectSource7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource7, Locations.class, Locations.PROPERTYNAME_COORDINATE_2_ALPHA_NUMERIC_INDICATOR); add(label_subjectSource7, cc.xy(1, 23)); add(containerLabel6, cc.xy(3, 23)); //---- separator4 ---- separator4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); separator4.setForeground(new Color(147, 131, 86)); add(separator4, cc.xywh(1, 25, 3, 1)); //---- label7 ---- label7.setText("Coordinate 3 Label"); label7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label7, Locations.class, Locations.PROPERTYNAME_COORDINATE_3_LABEL); add(label7, cc.xy(1, 27)); add(coordinate3, cc.xy(3, 27)); //---- label_subjectSource4 ---- label_subjectSource4.setText("Coordinate 3 Numeric Indicator"); label_subjectSource4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource4, Locations.class, Locations.PROPERTYNAME_COORDINATE_3_NUMERIC_INDICATOR); add(label_subjectSource4, cc.xy(1, 29)); //---- container1Value4 ---- container1Value4.setColumns(5); add(container1Value4, cc.xywh(3, 29, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectSource8 ---- label_subjectSource8.setText("Coordinate 3 Alphanumeric Indicator"); label_subjectSource8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource8, Locations.class, Locations.PROPERTYNAME_COORDINATE_3_ALPHA_NUMERIC_INDICATOR); add(label_subjectSource8, cc.xy(1, 31)); add(containerLabel7, cc.xy(3, 31)); //---- separator5 ---- separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); separator5.setForeground(new Color(147, 131, 86)); add(separator5, cc.xywh(1, 33, 3, 1)); //---- label8 ---- label8.setText("Classification #"); label8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label8, Locations.class, Locations.PROPERTYNAME_CLASSIFICATION_NUMBER); add(label8, cc.xy(1, 35)); add(classificationNumber, cc.xy(3, 35)); //---- label9 ---- label9.setText("Barcode"); label9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label9, Locations.class, Locations.PROPERTYNAME_BARCODE); add(label9, cc.xy(1, 37)); add(barcode, cc.xy(3, 37)); //---- label10 ---- label10.setText("Repository"); label10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label10, Locations.class, Locations.PROPERTYNAME_REPOSITORY); add(label10, cc.xy(1, 39)); //---- repository ---- repository.setOpaque(false); repository.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(repository, cc.xy(3, 39)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.LookupListFields.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(); listName = ATBasicComponentFactory/*from ww w . j av a 2 s . co m*/ .createTextField(detailsModel.getModel(LookupList.PROPERTYNAME_LIST_NAME)); panel3 = new JPanel(); pairedValues = ATBasicComponentFactory.createCheckBox(detailsModel, LookupList.PROPERTYNAME_PAIRED_VALUES, LookupList.class); pairedValues2 = ATBasicComponentFactory.createCheckBox(detailsModel, LookupList.PROPERTYNAME_RESTRICT_TO_NMTOKEN, LookupList.class); panel1 = new JPanel(); scrollPane1 = new JScrollPane(); listItems = new DomainSortableTable(); panel2 = new JPanel(); addItem = new JButton(); removeItem = new JButton(); changeItem = new JButton(); mergeItems = new JButton(); importItems = new JButton(); showRecordCount = new JButton(); label3 = new JLabel(); label2 = new JLabel(); 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, 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 })); //---- label1 ---- label1.setText("List Name"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label1, cc.xy(1, 1)); add(listName, cc.xy(3, 1)); //======== panel3 ======== { panel3.setOpaque(false); panel3.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- pairedValues ---- pairedValues.setText("Paired values"); pairedValues.setOpaque(false); pairedValues.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); pairedValues.setEnabled(false); pairedValues.setText(ATFieldInfo.getLabel(LookupList.class, LookupList.PROPERTYNAME_PAIRED_VALUES)); panel3.add(pairedValues, cc.xy(1, 1)); //---- pairedValues2 ---- pairedValues2.setText("Restrict characters"); pairedValues2.setOpaque(false); pairedValues2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); pairedValues2.setEnabled(false); pairedValues2 .setText(ATFieldInfo.getLabel(LookupList.class, LookupList.PROPERTYNAME_RESTRICT_TO_NMTOKEN)); panel3.add(pairedValues2, cc.xy(3, 1)); } add(panel3, cc.xy(3, 3)); //======== panel1 ======== { panel1.setOpaque(false); panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default:grow"))); //======== scrollPane1 ======== { scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); scrollPane1.setViewportView(listItems); } panel1.add(scrollPane1, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, 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(ColumnSpec.decodeSpecs("default"), 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 })); //---- addItem ---- addItem.setText("Add Item"); addItem.setBackground(new Color(234, 201, 250)); addItem.setOpaque(false); addItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemActionPerformed(e); } }); panel2.add(addItem, cc.xy(1, 3)); //---- removeItem ---- removeItem.setText("Remove Item(s)"); removeItem.setBackground(new Color(234, 201, 250)); removeItem.setOpaque(false); removeItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemActionPerformed(e); } }); panel2.add(removeItem, cc.xy(1, 5)); //---- changeItem ---- changeItem.setText("Change Item"); changeItem.setBackground(new Color(234, 201, 250)); changeItem.setOpaque(false); changeItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); changeItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { changeItemActionPerformed(e); } }); panel2.add(changeItem, cc.xy(1, 7)); //---- mergeItems ---- mergeItems.setText("Merge Items"); mergeItems.setBackground(new Color(234, 201, 250)); mergeItems.setOpaque(false); mergeItems.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); mergeItems.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { mergeItemsActionPerformed(e); } }); panel2.add(mergeItems, cc.xy(1, 9)); //---- importItems ---- importItems.setText("Import Items"); importItems.setBackground(new Color(234, 201, 250)); importItems.setOpaque(false); importItems.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); importItems.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { importItemsActionPerformed(e); } }); panel2.add(importItems, cc.xy(1, 11)); //---- showRecordCount ---- showRecordCount.setText("Show Record Count"); showRecordCount.setBackground(new Color(234, 201, 250)); showRecordCount.setOpaque(false); showRecordCount.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); showRecordCount.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showRecordCountActionPerformed(e); } }); panel2.add(showRecordCount, cc.xy(1, 13)); } panel1.add(panel2, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); } add(panel1, cc.xywh(3, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- label3 ---- label3.setText("Items in Red can't be modified"); label3.setForeground(new Color(130, 0, 0)); add(label3, cc.xy(3, 7)); //---- label2 ---- label2.setText("Items in Blue are AT initial values"); label2.setForeground(new Color(45, 78, 114)); add(label2, cc.xy(3, 9)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.NameContactNoteFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license sortName = new JTextField(); separator1 = new JSeparator(); label1 = new JLabel(); nameContactNoteLabel = ATBasicComponentFactory .createTextField(detailsModel.getModel(NameContactNotes.PROPERTYNAME_LABEL)); label14 = new JLabel(); scrollPane1 = new JScrollPane(); nameContactNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(NameContactNotes.PROPERTYNAME_NOTE_TEXT)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//from w w w. j av a 2s . co m setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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 })); //---- sortName ---- sortName.setEditable(false); sortName.setOpaque(false); sortName.setBorder(null); add(sortName, cc.xywh(1, 1, 3, 1)); //---- separator1 ---- separator1.setBackground(new Color(220, 220, 232)); separator1.setForeground(new Color(147, 131, 86)); separator1.setMinimumSize(new Dimension(1, 10)); separator1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(separator1, cc.xywh(1, 3, 3, 1)); //---- label1 ---- label1.setText("Label"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, NameContactNotes.class, NameContactNotes.PROPERTYNAME_LABEL); add(label1, cc.xy(1, 5)); add(nameContactNoteLabel, cc.xy(3, 5)); //---- label14 ---- label14.setText("Note"); label14.setVerticalAlignment(SwingConstants.TOP); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label14, NameContactNotes.class, NameContactNotes.PROPERTYNAME_NOTE_TEXT); add(label14, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- nameContactNote ---- nameContactNote.setRows(4); nameContactNote.setLineWrap(true); nameContactNote.setTabSize(20); nameContactNote.setWrapStyleWord(true); scrollPane1.setViewportView(nameContactNote); } add(scrollPane1, cc.xy(3, 7)); // JFormDesigner - End of component initialization //GEN-END:initComponents }