List of usage examples for com.jgoodies.forms.layout CellConstraints TOP
Alignment TOP
To view the source code for com.jgoodies.forms.layout CellConstraints TOP.
Click Source Link
From source file:org.archiviststoolkit.editor.ResourceFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license tabbedPane = new JTabbedPane(); basicInformationPanel = new JPanel(); panel16 = new JPanel(); panel19 = new JPanel(); label_resourcesLevel = new JLabel(); resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LEVEL, Resources.class); label_otherLevel = new JLabel(); resourcesOtherLevel = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_OTHER_LEVEL), false); label_resourcesTitle = new JLabel(); scrollPane2 = new JScrollPane(); resourcesTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE)); panel34 = new JPanel(); panel35 = new JPanel(); panel36 = new JPanel(); label_resourcesDateExpression = new JLabel(); resourcesDateExpression = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false); Date1Label1 = new JLabel(); label_resourcesDateBegin = new JLabel(); resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_BEGIN); label_resourcesDateEnd = new JLabel(); resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END); BulkDatesLabel = new JLabel(); label_resourcesBulkDateBegin = new JLabel(); resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel, Resources.PROPERTYNAME_BULK_DATE_BEGIN); label_resourcesBulkDateEnd = new JLabel(); resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, Resources.PROPERTYNAME_BULK_DATE_END); panel1 = new JPanel(); label_resourcesLanguageCode = new JLabel(); resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class); label_resourcesLanguageNote = new JLabel(); scrollPane423 = new JScrollPane(); resourcesLanguageNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false); panel6 = new JPanel(); label_agreementReceived2 = new JLabel(); repositoryName = new JTextField(); changeRepositoryButton = new JButton(); panel13 = new JPanel(); panel17 = new JPanel(); panel12 = new JPanel(); label_resourceIdentifier1 = new JLabel(); resourceIdentifier1 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_1)); resourceIdentifier2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_2)); resourceIdentifier3 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_3)); resourceIdentifier4 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_4)); panel42 = new JPanel(); panel43 = new JPanel(); OtherAccessionsLabel = new JLabel(); scrollPane4 = new JScrollPane(); accessionsTable = new DomainSortableTable(); panel37 = new JPanel(); panel20 = new JPanel(); ExtentLabel = new JLabel(); panel21 = new JPanel(); label_resourcesExtentNumber = new JLabel(); resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel, Resources.PROPERTYNAME_EXTENT_NUMBER); extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE, Resources.class); label_resourcesExtentDescription = new JLabel(); scrollPane422 = new JScrollPane(); containerSummary = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false); panel39 = new JPanel(); panel40 = new JPanel(); label1 = new JLabel(); scrollPane6 = new JScrollPane(); instancesTable = new DomainSortableTable(ArchDescriptionInstances.class, ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE); panel29 = new JPanel(); addInstanceButton = new JButton(); removeInstanceButton = new JButton(); panel2 = new JPanel(); restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class); separator2 = new JSeparator(); namesPanel = new JPanel(); SubjectsLabel2 = new JLabel(); scrollPane1 = new JScrollPane(); namesTable = new DomainSortableTable(ArchDescriptionNames.class, ArchDescriptionNames.PROPERTYNAME_SORT_NAME); panel8 = new JPanel(); editNameRelationshipButton = new JButton(); addNameRelationshipButton = new JButton(); removeNameRelationshipButton = new JButton(); separator5 = new JSeparator(); SubjectsLabel = new JLabel(); scrollPane3 = new JScrollPane(); subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class, ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM); panel11 = new JPanel(); addSubjectRelationshipButton = new JButton(); removeSubjectRelationshipButton = new JButton(); notesPanel = new JPanel(); SubjectsLabel3 = new JLabel(); scrollPane5 = new JScrollPane(); repeatingDataTable = new DomainSortedTable(ArchDescriptionRepeatingData.class); panel14 = new JPanel(); addNoteEtcComboBox = new JComboBox(); removeNotesEtcButton = new JButton(); separator6 = new JSeparator(); label_repositoryName3 = new JLabel(); scrollPane7 = new JScrollPane(); deaccessionsTable = new DomainSortableTable(Deaccessions.class); panel33 = new JPanel(); addDeaccessions = new JButton(); removeDeaccession = new JButton(); basicInformationPanel2 = new JPanel(); panel30 = new JPanel(); panel9 = new JPanel(); label6 = new JLabel(); eadIdentifier5 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER), false); label15 = new JLabel(); eadIdentifier13 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_LOCATION), false); label7 = new JLabel(); scrollPane45 = new JScrollPane(); findingAidTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_TITLE)); label8 = new JLabel(); scrollPane46 = new JScrollPane(); findingAidSubtitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_SUBTITLE)); label2 = new JLabel(); scrollPane8 = new JScrollPane(); findingAidFilingTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE)); label9 = new JLabel(); eadIdentifier10 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_DATE), false); label10 = new JLabel(); scrollPane47 = new JScrollPane(); author = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_AUTHOR)); label11 = new JLabel(); extentType2 = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_DESCRIPTION_RULES, Resources.class, 30); label12 = new JLabel(); scrollPane48 = new JScrollPane(); languageOfFindingAid = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID)); separator1 = new JSeparator(); panel41 = new JPanel(); panel31 = new JPanel(); label_resourcesTitle2 = new JLabel(); scrollPane43 = new JScrollPane(); sponsorNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SPONSOR_NOTE)); label13 = new JLabel(); scrollPane49 = new JScrollPane(); editionStatement = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_EDITION_STATEMENT)); label14 = new JLabel(); scrollPane50 = new JScrollPane(); series = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SERIES)); label16 = new JLabel(); eadIdentifier15 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DATE), false); label17 = new JLabel(); scrollPane51 = new JScrollPane(); revisionDescription = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DESCRIPTION)); label18 = new JLabel(); panel3 = new JPanel(); extentType3 = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_FINDING_AID_STATUS, Resources.class); label_resourcesTitle3 = new JLabel(); scrollPane44 = new JScrollPane(); sponsorNote2 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_NOTE)); CellConstraints cc = new CellConstraints(); //======== this ======== setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setBackground(new Color(200, 205, 232)); setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== tabbedPane ======== {//from www . j a v a 2s . c om tabbedPane.setMinimumSize(new Dimension(635, 408)); tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); tabbedPane.setPreferredSize(new Dimension(750, 520)); tabbedPane.setBackground(new Color(200, 205, 232)); //======== basicInformationPanel ======== { basicInformationPanel.setBackground(new Color(200, 205, 232)); basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); basicInformationPanel.setLayout(new FormLayout( new ColumnSpec[] { 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("fill:default:grow"))); ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 5 } }); //======== panel16 ======== { panel16.setOpaque(false); panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel16.setBorder(Borders.DLU2_BORDER); panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel19 ======== { panel19.setOpaque(false); panel19.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel19.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, 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_resourcesLevel ---- label_resourcesLevel.setText("Level"); label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLevel, Resources.class, Resources.PROPERTYNAME_LEVEL); panel19.add(label_resourcesLevel, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- resourcesLevel ---- resourcesLevel.setOpaque(false); resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); resourcesLevel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { resourcesLevelActionPerformed(); } }); panel19.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_otherLevel ---- label_otherLevel.setText("Other Level"); label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_otherLevel, Resources.class, Resources.PROPERTYNAME_OTHER_LEVEL); panel19.add(label_otherLevel, cc.xy(1, 3)); panel19.add(resourcesOtherLevel, new CellConstraints(3, 3, 1, 1, CellConstraints.FILL, CellConstraints.TOP, new Insets(0, 0, 0, 5))); //---- label_resourcesTitle ---- label_resourcesTitle.setText("Title"); label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle, Resources.class, Resources.PROPERTYNAME_TITLE); panel19.add(label_resourcesTitle, cc.xywh(1, 5, 3, 1)); //======== scrollPane2 ======== { //---- resourcesTitle ---- resourcesTitle.setRows(4); resourcesTitle.setLineWrap(true); resourcesTitle.setWrapStyleWord(true); scrollPane2.setViewportView(resourcesTitle); } panel19.add(scrollPane2, cc.xywh(1, 7, 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)); } panel19.add(tagApplicatorPanel, cc.xywh(1, 9, 3, 1)); } panel16.add(panel19, cc.xy(1, 1)); //======== panel34 ======== { panel34.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel34.setBackground(new Color(182, 187, 212)); panel34.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel35 ======== { panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.setOpaque(false); panel35.setBorder(Borders.DLU2_BORDER); panel35.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.UNRELATED_GAP_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), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel36 ======== { panel36.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel36.setOpaque(false); panel36.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default:grow"))); //---- label_resourcesDateExpression ---- label_resourcesDateExpression.setText("Date Expression"); label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, Resources.class, Resources.PROPERTYNAME_DATE_EXPRESSION); panel36.add(label_resourcesDateExpression, cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel36.add(resourcesDateExpression, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP, new Insets(0, 0, 0, 5))); } panel35.add(panel36, cc.xywh(1, 1, 9, 1)); //---- Date1Label1 ---- Date1Label1.setText("Inclusive Dates"); Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.add(Date1Label1, new CellConstraints(3, 3, 9, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 5, 0, 0))); //---- label_resourcesDateBegin ---- label_resourcesDateBegin.setText("Begin"); label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, Resources.class, Resources.PROPERTYNAME_DATE_BEGIN); panel35.add(label_resourcesDateBegin, cc.xy(3, 5)); //---- resourcesDateBegin ---- resourcesDateBegin.setColumns(4); panel35.add(resourcesDateBegin, cc.xywh(5, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_resourcesDateEnd ---- label_resourcesDateEnd.setText("End"); label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, Resources.class, Resources.PROPERTYNAME_DATE_END); panel35.add(label_resourcesDateEnd, cc.xy(7, 5)); //---- resourcesDateEnd ---- resourcesDateEnd.setColumns(4); panel35.add(resourcesDateEnd, new CellConstraints(9, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); //---- BulkDatesLabel ---- BulkDatesLabel.setText("Bulk Dates"); BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.add(BulkDatesLabel, new CellConstraints(1, 7, 9, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 5, 0, 0))); //---- label_resourcesBulkDateBegin ---- label_resourcesBulkDateBegin.setText("Begin"); label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class, Resources.PROPERTYNAME_BULK_DATE_BEGIN); panel35.add(label_resourcesBulkDateBegin, cc.xy(3, 9)); //---- resourcesBulkDateBegin ---- resourcesBulkDateBegin.setColumns(4); panel35.add(resourcesBulkDateBegin, cc.xywh(5, 9, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_resourcesBulkDateEnd ---- label_resourcesBulkDateEnd.setText("End"); label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class, Resources.PROPERTYNAME_BULK_DATE_END); panel35.add(label_resourcesBulkDateEnd, cc.xy(7, 9)); //---- resourcesBulkDateEnd ---- resourcesBulkDateEnd.setColumns(4); panel35.add(resourcesBulkDateEnd, new CellConstraints(9, 9, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); } panel34.add(panel35, cc.xy(1, 1)); } panel16.add(panel34, cc.xy(1, 3)); //======== panel1 ======== { panel1.setOpaque(false); panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:min(default;200px)") }, RowSpec.decodeSpecs("default"))); //---- label_resourcesLanguageCode ---- label_resourcesLanguageCode.setText("Language"); label_resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode, Resources.class, Resources.PROPERTYNAME_LANGUAGE_CODE); panel1.add(label_resourcesLanguageCode, cc.xy(1, 1)); //---- resourcesLanguageCode ---- resourcesLanguageCode.setMaximumSize(new Dimension(50, 27)); resourcesLanguageCode.setOpaque(false); resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(resourcesLanguageCode, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); } panel16.add(panel1, cc.xy(1, 5)); //---- label_resourcesLanguageNote ---- label_resourcesLanguageNote.setText("Repository Processing Note"); label_resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote, Resources.class, Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE); panel16.add(label_resourcesLanguageNote, cc.xy(1, 7)); //======== scrollPane423 ======== { scrollPane423.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane423.setOpaque(false); scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- resourcesLanguageNote ---- resourcesLanguageNote.setRows(4); resourcesLanguageNote.setLineWrap(true); resourcesLanguageNote.setWrapStyleWord(true); scrollPane423.setViewportView(resourcesLanguageNote); } panel16.add(scrollPane423, cc.xy(1, 9)); //======== panel6 ======== { panel6.setOpaque(false); panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel6.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 })); //---- label_agreementReceived2 ---- label_agreementReceived2.setText("Repository"); label_agreementReceived2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_agreementReceived2, Resources.class, Resources.PROPERTYNAME_REPOSITORY); panel6.add(label_agreementReceived2, cc.xy(1, 1)); //---- repositoryName ---- repositoryName.setEditable(false); repositoryName.setOpaque(false); repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryName.setBorder(null); panel6.add(repositoryName, cc.xy(3, 1)); //---- changeRepositoryButton ---- changeRepositoryButton.setText("Change Repository"); changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); changeRepositoryButton.setOpaque(false); changeRepositoryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { changeRepositoryButtonActionPerformed(); } }); panel6.add(changeRepositoryButton, cc.xywh(3, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } panel16.add(panel6, cc.xy(1, 11)); } basicInformationPanel.add(panel16, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //======== panel13 ======== { panel13.setOpaque(false); panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel13.setBorder(Borders.DLU2_BORDER); panel13.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel17 ======== { panel17.setOpaque(false); panel17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel17.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel12 ======== { panel12.setBackground(new Color(231, 188, 251)); panel12.setOpaque(false); panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel12.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } }); //---- label_resourceIdentifier1 ---- label_resourceIdentifier1.setText("Resource ID"); label_resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourceIdentifier1, Resources.class, Resources.PROPERTYNAME_RESOURCE_IDENTIFIER); panel12.add(label_resourceIdentifier1, cc.xy(1, 1)); panel12.add(resourceIdentifier1, cc.xy(3, 1)); panel12.add(resourceIdentifier2, cc.xy(5, 1)); panel12.add(resourceIdentifier3, cc.xy(7, 1)); panel12.add(resourceIdentifier4, cc.xy(9, 1)); } panel17.add(panel12, cc.xy(1, 1)); //======== panel42 ======== { panel42.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel42.setBackground(new Color(182, 187, 212)); panel42.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel43 ======== { panel43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel43.setOpaque(false); panel43.setBorder(Borders.DLU2_BORDER); panel43.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- OtherAccessionsLabel ---- OtherAccessionsLabel.setText("Accessions linked to this Resource ID:"); OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel43.add(OtherAccessionsLabel, cc.xy(1, 1)); //======== scrollPane4 ======== { scrollPane4.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane4.setPreferredSize(new Dimension(300, 100)); //---- accessionsTable ---- accessionsTable.setPreferredScrollableViewportSize(new Dimension(300, 100)); accessionsTable.setFocusable(false); scrollPane4.setViewportView(accessionsTable); } panel43.add(scrollPane4, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } panel42.add(panel43, cc.xy(1, 1)); } panel17.add(panel42, cc.xy(1, 3)); //======== panel37 ======== { panel37.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel37.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel37.setBackground(new Color(182, 187, 212)); panel37.setLayout(new FormLayout("60px:grow", "fill:default:grow")); //======== panel20 ======== { panel20.setOpaque(false); panel20.setBorder(Borders.DLU2_BORDER); panel20.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.UNRELATED_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) })); //---- ExtentLabel ---- ExtentLabel.setText("Extent"); ExtentLabel.setForeground(new Color(0, 0, 102)); ExtentLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel20.add(ExtentLabel, cc.xywh(1, 1, 2, 1)); //======== panel21 ======== { panel21.setOpaque(false); panel21.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"))); //---- label_resourcesExtentNumber ---- label_resourcesExtentNumber.setText("Extent"); label_resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber, Resources.class, Resources.PROPERTYNAME_EXTENT_NUMBER); panel21.add(label_resourcesExtentNumber, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- resourcesExtentNumber ---- resourcesExtentNumber.setColumns(4); panel21.add(resourcesExtentNumber, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- extentType ---- extentType.setOpaque(false); panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); } panel20.add(panel21, cc.xy(2, 3)); //---- label_resourcesExtentDescription ---- label_resourcesExtentDescription.setText("Container Summary"); label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class, Resources.PROPERTYNAME_CONTAINER_SUMMARY); panel20.add(label_resourcesExtentDescription, cc.xy(2, 5)); //======== scrollPane422 ======== { scrollPane422.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane422.setOpaque(false); scrollPane422.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- containerSummary ---- containerSummary.setRows(4); containerSummary.setWrapStyleWord(true); containerSummary.setLineWrap(true); scrollPane422.setViewportView(containerSummary); } panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT, CellConstraints.FILL, new Insets(0, 15, 5, 5))); } panel37.add(panel20, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } panel17.add(panel37, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel39 ======== { panel39.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel39.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel39.setBackground(new Color(182, 187, 212)); panel39.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel40 ======== { panel40.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel40.setOpaque(false); panel40.setBorder(Borders.DLU2_BORDER); panel40.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label1 ---- label1.setText("Instances"); label1.setForeground(new Color(0, 0, 102)); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, Resources.class, ResourcesComponents.PROPERTYNAME_INSTANCES); panel40.add(label1, cc.xy(1, 1)); //======== scrollPane6 ======== { scrollPane6.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane6.setOpaque(false); //---- instancesTable ---- instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75)); instancesTable.setRowHeight(20); instancesTable.setFocusable(false); instancesTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { instancesTableMouseClicked(e); } }); scrollPane6.setViewportView(instancesTable); } panel40.add(scrollPane6, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel29 ======== { panel29.setBackground(new Color(231, 188, 251)); panel29.setOpaque(false); panel29.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel29.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addInstanceButton ---- addInstanceButton.setText("Add Instance"); addInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addInstanceButton.setOpaque(false); addInstanceButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addInstanceButtonActionPerformed(); } }); panel29.add(addInstanceButton, cc.xy(1, 1)); //---- removeInstanceButton ---- removeInstanceButton.setText("Remove Instance"); removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeInstanceButton.setOpaque(false); removeInstanceButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeInstanceButtonActionPerformed(); } }); panel29.add(removeInstanceButton, cc.xy(3, 1)); } panel40.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } panel39.add(panel40, cc.xy(1, 1)); } panel17.add(panel39, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel2 ======== { panel2.setOpaque(false); panel2.setLayout(new FormLayout("default", "default")); //---- restrictionsApply ---- restrictionsApply.setText("Restrictions Apply"); restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); restrictionsApply.setOpaque(false); restrictionsApply.setText(ATFieldInfo.getLabel(Resources.class, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY)); panel2.add(restrictionsApply, cc.xy(1, 1)); } panel17.add(panel2, cc.xy(1, 9)); } panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } basicInformationPanel.add(panel13, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- separator2 ---- separator2.setForeground(new Color(147, 131, 86)); separator2.setOrientation(SwingConstants.VERTICAL); basicInformationPanel.add(separator2, cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Basic Description", basicInformationPanel); //======== namesPanel ======== { namesPanel.setBackground(new Color(200, 205, 232)); namesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, 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 })); ((FormLayout) namesPanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } }); //---- SubjectsLabel2 ---- SubjectsLabel2.setText("Names"); SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(SubjectsLabel2, cc.xy(1, 1)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setPreferredSize(new Dimension(600, 320)); //---- namesTable ---- namesTable.setFocusable(false); namesTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { namesTableMouseClicked(e); } }); scrollPane1.setViewportView(namesTable); } namesPanel.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel8 ======== { panel8.setBackground(new Color(231, 188, 251)); panel8.setOpaque(false); panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel8.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"))); //---- editNameRelationshipButton ---- editNameRelationshipButton.setText("Edit Name Link"); editNameRelationshipButton.setOpaque(false); editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); editNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editNameRelationshipButtonActionPerformed(); } }); panel8.add(editNameRelationshipButton, cc.xy(1, 1)); //---- addNameRelationshipButton ---- addNameRelationshipButton.setBackground(new Color(231, 188, 251)); addNameRelationshipButton.setText("Add Name Link"); addNameRelationshipButton.setOpaque(false); addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addNameRelationshipButtonActionPerformed(); } }); panel8.add(addNameRelationshipButton, cc.xy(3, 1)); //---- removeNameRelationshipButton ---- removeNameRelationshipButton.setBackground(new Color(231, 188, 251)); removeNameRelationshipButton.setText("Remove Name Link"); removeNameRelationshipButton.setOpaque(false); removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeNameRelationshipButtonActionPerformed(); } }); panel8.add(removeNameRelationshipButton, cc.xy(5, 1)); } namesPanel.add(panel8, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- separator5 ---- separator5.setBackground(new Color(220, 220, 232)); separator5.setForeground(new Color(147, 131, 86)); separator5.setMinimumSize(new Dimension(1, 10)); separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(separator5, cc.xy(1, 7)); //---- SubjectsLabel ---- SubjectsLabel.setText("Subjects"); SubjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(SubjectsLabel, cc.xy(1, 9)); //======== scrollPane3 ======== { scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); //---- subjectsTable ---- subjectsTable.setFocusable(false); scrollPane3.setViewportView(subjectsTable); } namesPanel.add(scrollPane3, cc.xy(1, 11)); //======== panel11 ======== { panel11.setBackground(new Color(231, 188, 251)); panel11.setOpaque(false); panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel11.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addSubjectRelationshipButton ---- addSubjectRelationshipButton.setText("Add Subject Link"); addSubjectRelationshipButton.setOpaque(false); addSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addSubjectRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addSubjectRelationshipButtonActionPerformed(); } }); panel11.add(addSubjectRelationshipButton, cc.xy(1, 1)); //---- removeSubjectRelationshipButton ---- removeSubjectRelationshipButton.setText("Remove Subject Link"); removeSubjectRelationshipButton.setOpaque(false); removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeSubjectRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeSubjectRelationshipButtonActionPerformed(); } }); panel11.add(removeSubjectRelationshipButton, cc.xy(3, 1)); } namesPanel.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Names & Subjects", namesPanel); //======== notesPanel ======== { notesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.setBackground(new Color(200, 205, 232)); notesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, 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 })); //---- SubjectsLabel3 ---- SubjectsLabel3.setText("Notes etc."); SubjectsLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(SubjectsLabel3, cc.xy(1, 1)); //======== scrollPane5 ======== { scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- repeatingDataTable ---- repeatingDataTable.setFocusable(false); repeatingDataTable.setDragEnabled(true); repeatingDataTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); repeatingDataTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { repeatingDataTableMouseClicked(e); } }); scrollPane5.setViewportView(repeatingDataTable); } notesPanel.add(scrollPane5, cc.xy(1, 3)); //======== panel14 ======== { panel14.setBackground(new Color(231, 188, 251)); panel14.setOpaque(false); panel14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel14.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default:grow"))); //---- addNoteEtcComboBox ---- addNoteEtcComboBox.setOpaque(false); addNoteEtcComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addNoteEtcComboBoxActionPerformed(e); } }); panel14.add(addNoteEtcComboBox, cc.xy(1, 1)); //---- removeNotesEtcButton ---- removeNotesEtcButton.setText("Remove Note etc."); removeNotesEtcButton.setOpaque(false); removeNotesEtcButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeNotesEtcButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeNotesEtcButtonActionPerformed(); } }); panel14.add(removeNotesEtcButton, cc.xy(3, 1)); } notesPanel.add(panel14, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- separator6 ---- separator6.setBackground(new Color(220, 220, 232)); separator6.setForeground(new Color(147, 131, 86)); separator6.setMinimumSize(new Dimension(1, 10)); separator6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(separator6, cc.xy(1, 7)); //---- label_repositoryName3 ---- label_repositoryName3.setText("Deaccessions"); label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(label_repositoryName3, cc.xy(1, 9)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- deaccessionsTable ---- deaccessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 100)); deaccessionsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { deaccessionsTableMouseClicked(e); } }); scrollPane7.setViewportView(deaccessionsTable); } notesPanel.add(scrollPane7, cc.xy(1, 11)); //======== panel33 ======== { panel33.setBackground(new Color(231, 188, 251)); panel33.setOpaque(false); panel33.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel33.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addDeaccessions ---- addDeaccessions.setBackground(new Color(231, 188, 251)); addDeaccessions.setText("Add Deaccession"); addDeaccessions.setOpaque(false); addDeaccessions.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addDeaccessions.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addDeaccessionsActionPerformed(); } }); panel33.add(addDeaccessions, cc.xy(1, 1)); //---- removeDeaccession ---- removeDeaccession.setBackground(new Color(231, 188, 251)); removeDeaccession.setText("Remove Deaccession"); removeDeaccession.setOpaque(false); removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeDeaccession.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeDeaccessionActionPerformed(); } }); panel33.add(removeDeaccession, cc.xy(3, 1)); } notesPanel.add(panel33, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Notes Etc. & Deaccessions", notesPanel); //======== basicInformationPanel2 ======== { basicInformationPanel2.setBackground(new Color(200, 205, 232)); basicInformationPanel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); basicInformationPanel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:max(default;300px):grow(0.5)") }, RowSpec.decodeSpecs("fill:default:grow"))); ((FormLayout) basicInformationPanel2.getLayout()).setColumnGroups(new int[][] { { 1, 5 } }); //======== panel30 ======== { panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel9 ======== { panel9.setOpaque(false); panel9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel9.setBorder(Borders.DLU2_BORDER); panel9.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.PREF_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, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label6 ---- label6.setText("EAD FA Unique Identifier"); label6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label6, Resources.class, Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER); panel9.add(label6, cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier5, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label15 ---- label15.setText("EAD Location"); label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label15, Resources.class, Resources.PROPERTYNAME_EAD_FA_LOCATION); panel9.add(label15, cc.xywh(1, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier13, cc.xywh(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label7 ---- label7.setText("Finding Aid Title"); label7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label7, Resources.class, Resources.PROPERTYNAME_FINDING_AID_TITLE); panel9.add(label7, cc.xywh(1, 5, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane45 ======== { scrollPane45.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane45.setPreferredSize(new Dimension(300, 68)); scrollPane45.setOpaque(false); scrollPane45.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- findingAidTitle ---- findingAidTitle.setRows(4); findingAidTitle.setLineWrap(true); findingAidTitle.setWrapStyleWord(true); findingAidTitle.setMinimumSize(new Dimension(200, 16)); scrollPane45.setViewportView(findingAidTitle); } panel9.add(scrollPane45, cc.xywh(1, 7, 3, 1)); //---- label8 ---- label8.setText("Finding Aid Subtitle"); label8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label8, Resources.class, Resources.PROPERTYNAME_FINDING_AID_SUBTITLE); panel9.add(label8, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane46 ======== { scrollPane46.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane46.setPreferredSize(new Dimension(300, 68)); scrollPane46.setOpaque(false); scrollPane46.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- findingAidSubtitle ---- findingAidSubtitle.setRows(4); findingAidSubtitle.setLineWrap(true); findingAidSubtitle.setWrapStyleWord(true); findingAidSubtitle.setMinimumSize(new Dimension(200, 16)); scrollPane46.setViewportView(findingAidSubtitle); } panel9.add(scrollPane46, cc.xywh(1, 11, 3, 1)); //---- label2 ---- label2.setText("Finding Aid Filing Title"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label2, Resources.class, Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE); panel9.add(label2, cc.xy(1, 13)); //======== scrollPane8 ======== { //---- findingAidFilingTitle ---- findingAidFilingTitle.setRows(4); findingAidFilingTitle.setLineWrap(true); findingAidFilingTitle.setWrapStyleWord(true); scrollPane8.setViewportView(findingAidFilingTitle); } panel9.add(scrollPane8, cc.xywh(1, 15, 3, 1)); //---- label9 ---- label9.setText("Finding Aid Date"); label9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label9, Resources.class, Resources.PROPERTYNAME_FINDING_AID_DATE); panel9.add(label9, cc.xywh(1, 17, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier10, cc.xywh(3, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label10 ---- label10.setText("Author"); label10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label10, Resources.class, Resources.PROPERTYNAME_AUTHOR); panel9.add(label10, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane47 ======== { scrollPane47.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane47.setPreferredSize(new Dimension(300, 68)); scrollPane47.setOpaque(false); scrollPane47.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- author ---- author.setRows(4); author.setLineWrap(true); author.setWrapStyleWord(true); author.setMinimumSize(new Dimension(200, 16)); scrollPane47.setViewportView(author); } panel9.add(scrollPane47, cc.xywh(1, 21, 3, 1)); //---- label11 ---- label11.setText("Description Rules"); label11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label11, Resources.class, Resources.PROPERTYNAME_DESCRIPTION_RULES); panel9.add(label11, cc.xywh(1, 23, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- extentType2 ---- extentType2.setOpaque(false); extentType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel9.add(extentType2, cc.xywh(1, 25, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label12 ---- label12.setText("Language of Finding Aid"); label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label12, Resources.class, Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID); panel9.add(label12, cc.xywh(1, 27, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane48 ======== { scrollPane48.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane48.setPreferredSize(new Dimension(300, 68)); scrollPane48.setOpaque(false); scrollPane48.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- languageOfFindingAid ---- languageOfFindingAid.setRows(4); languageOfFindingAid.setLineWrap(true); languageOfFindingAid.setWrapStyleWord(true); languageOfFindingAid.setMinimumSize(new Dimension(200, 16)); scrollPane48.setViewportView(languageOfFindingAid); } panel9.add(scrollPane48, cc.xywh(1, 29, 3, 1)); } panel30.add(panel9, cc.xy(1, 1)); } basicInformationPanel2.add(panel30, cc.xy(1, 1)); //---- separator1 ---- separator1.setForeground(new Color(147, 131, 86)); separator1.setOrientation(SwingConstants.VERTICAL); basicInformationPanel2.add(separator1, cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //======== panel41 ======== { panel41.setOpaque(false); panel41.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel41.setBorder(Borders.DLU2_BORDER); panel41.setLayout(new FormLayout("left:default:grow", "fill:default:grow")); //======== panel31 ======== { panel31.setOpaque(false); panel31.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel31.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.PREF_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label_resourcesTitle2 ---- label_resourcesTitle2.setText("Sponsor Note"); label_resourcesTitle2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle2, Resources.class, Resources.PROPERTYNAME_SPONSOR_NOTE); panel31.add(label_resourcesTitle2, cc.xy(1, 1)); //======== scrollPane43 ======== { scrollPane43.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane43.setPreferredSize(new Dimension(300, 68)); scrollPane43.setOpaque(false); scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- sponsorNote ---- sponsorNote.setRows(4); sponsorNote.setLineWrap(true); sponsorNote.setWrapStyleWord(true); sponsorNote.setMinimumSize(new Dimension(200, 16)); scrollPane43.setViewportView(sponsorNote); } panel31.add(scrollPane43, cc.xywh(1, 3, 3, 1)); //---- label13 ---- label13.setText("Edition Statement"); label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label13, Resources.class, Resources.PROPERTYNAME_EDITION_STATEMENT); panel31.add(label13, cc.xywh(1, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane49 ======== { scrollPane49.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane49.setPreferredSize(new Dimension(300, 68)); scrollPane49.setOpaque(false); scrollPane49.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- editionStatement ---- editionStatement.setRows(4); editionStatement.setLineWrap(true); editionStatement.setWrapStyleWord(true); editionStatement.setMinimumSize(new Dimension(200, 16)); scrollPane49.setViewportView(editionStatement); } panel31.add(scrollPane49, cc.xywh(1, 7, 3, 1)); //---- label14 ---- label14.setText("Series"); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label14, Resources.class, Resources.PROPERTYNAME_SERIES); panel31.add(label14, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane50 ======== { scrollPane50.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane50.setPreferredSize(new Dimension(300, 68)); scrollPane50.setOpaque(false); scrollPane50.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- series ---- series.setRows(4); series.setLineWrap(true); series.setWrapStyleWord(true); series.setMinimumSize(new Dimension(200, 16)); scrollPane50.setViewportView(series); } panel31.add(scrollPane50, cc.xywh(1, 11, 3, 1)); //---- label16 ---- label16.setText("Revision Date"); label16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label16, Resources.class, Resources.PROPERTYNAME_REVISION_DATE); panel31.add(label16, cc.xywh(1, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel31.add(eadIdentifier15, cc.xywh(3, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label17 ---- label17.setText("Revision Description"); label17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label17, Resources.class, Resources.PROPERTYNAME_REVISION_DESCRIPTION); panel31.add(label17, cc.xywh(1, 15, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane51 ======== { scrollPane51.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane51.setPreferredSize(new Dimension(300, 68)); scrollPane51.setOpaque(false); scrollPane51.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- revisionDescription ---- revisionDescription.setRows(4); revisionDescription.setLineWrap(true); revisionDescription.setWrapStyleWord(true); revisionDescription.setMinimumSize(new Dimension(200, 16)); scrollPane51.setViewportView(revisionDescription); } panel31.add(scrollPane51, cc.xywh(1, 17, 3, 1)); //---- label18 ---- label18.setText("Finding Aid Status"); label18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label18, Resources.class, Resources.PROPERTYNAME_FINDING_AID_STATUS); panel31.add(label18, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== panel3 ======== { panel3.setOpaque(false); panel3.setLayout(new FormLayout("min(default;200px)", "default")); //---- extentType3 ---- extentType3.setOpaque(false); extentType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType3.setMaximumSize(new Dimension(100, 32767)); panel3.add(extentType3, cc.xy(1, 1)); } panel31.add(panel3, cc.xy(3, 19)); //---- label_resourcesTitle3 ---- label_resourcesTitle3.setText("Finding Aid Note"); label_resourcesTitle3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle3, Resources.class, Resources.PROPERTYNAME_FINDING_AID_NOTE); panel31.add(label_resourcesTitle3, cc.xy(1, 21)); //======== scrollPane44 ======== { scrollPane44.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane44.setPreferredSize(new Dimension(300, 68)); scrollPane44.setOpaque(false); scrollPane44.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- sponsorNote2 ---- sponsorNote2.setRows(4); sponsorNote2.setLineWrap(true); sponsorNote2.setWrapStyleWord(true); sponsorNote2.setMinimumSize(new Dimension(200, 16)); scrollPane44.setViewportView(sponsorNote2); } panel31.add(scrollPane44, cc.xywh(1, 23, 3, 1)); } panel41.add(panel31, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } basicInformationPanel2.add(panel41, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } tabbedPane.addTab("Finding Aid Data", basicInformationPanel2); } add(tabbedPane, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); }
From source file:org.archiviststoolkit.editor.SubjectFields.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(); subjectTerm = ATBasicComponentFactory .createTextField(detailsModel.getModel(Subjects.PROPERTYNAME_SUBJECT_TERM)); label_subjectTermType = new JLabel(); subjectTermType = ATBasicComponentFactory.createComboBox(detailsModel, Subjects.PROPERTYNAME_SUBJECT_TERM_TYPE, Subjects.class); label_subjectSource = new JLabel(); subjectSource = ATBasicComponentFactory.createComboBox(detailsModel, Subjects.PROPERTYNAME_SUBJECT_SOURCE, Subjects.class); label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); subjectScopeNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Subjects.PROPERTYNAME_SUBJECT_SCOPE_NOTE)); separator3 = new JSeparator(); label_subjectScopeNote3 = new JLabel(); scrollPane3 = new JScrollPane(); accessionsTable = new DomainSortableTable(Accessions.class, Accessions.PROPERTYNAME_ACCESSION_NUMBER); separator4 = new JSeparator(); label_subjectScopeNote2 = new JLabel(); scrollPane2 = new JScrollPane(); resourcesTable = new ResourceAndComponentLinkTable(Resources.class, Resources.PROPERTYNAME_RESOURCE_IDENTIFIER); label1 = new JLabel(); separator5 = new JSeparator(); label_subjectScopeNote4 = new JLabel(); scrollPane4 = new JScrollPane(); digitalObjectsTable = new DomainSortableTable(DigitalObjects.class, DigitalObjects.PROPERTYNAME_METS_IDENTIFIER); tabbedPane = new JTabbedPane(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);/*from w ww . j a v a2s .co m*/ setOpaque(false); setPreferredSize(new Dimension(800, 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, 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 })); //---- label_subjectTerm ---- label_subjectTerm.setText("Subject Term"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, Subjects.class, Subjects.PROPERTYNAME_SUBJECT_TERM); add(label_subjectTerm, cc.xy(1, 1)); //---- subjectTerm ---- subjectTerm.addKeyListener(new KeyAdapter() { @Override public void keyTyped(KeyEvent e) { subjectTermKeyTyped(e); } }); add(subjectTerm, cc.xy(3, 1)); //---- label_subjectTermType ---- label_subjectTermType.setText("Subject Term Type"); label_subjectTermType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTermType, Subjects.class, Subjects.PROPERTYNAME_SUBJECT_TERM_TYPE); add(label_subjectTermType, cc.xy(1, 3)); //---- subjectTermType ---- subjectTermType.setOpaque(false); add(subjectTermType, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectSource ---- label_subjectSource.setText("Source"); label_subjectSource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectSource, Subjects.class, Subjects.PROPERTYNAME_SUBJECT_SOURCE); add(label_subjectSource, cc.xy(1, 5)); //---- subjectSource ---- subjectSource.setOpaque(false); add(subjectSource, cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Scope Note"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, Subjects.class, Subjects.PROPERTYNAME_SUBJECT_SCOPE_NOTE); add(label_subjectScopeNote, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); //---- subjectScopeNote ---- subjectScopeNote.setRows(4); subjectScopeNote.setLineWrap(true); subjectScopeNote.setTabSize(20); subjectScopeNote.setWrapStyleWord(true); scrollPane1.setViewportView(subjectScopeNote); } add(scrollPane1, cc.xy(3, 7)); //---- separator3 ---- separator3.setBackground(new Color(220, 220, 232)); separator3.setForeground(new Color(147, 131, 86)); separator3.setMinimumSize(new Dimension(1, 10)); separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(separator3, cc.xywh(1, 9, 3, 1)); //---- label_subjectScopeNote3 ---- label_subjectScopeNote3.setText("Accessions"); label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label_subjectScopeNote3, cc.xywh(1, 11, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane3 ======== { scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- accessionsTable ---- accessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); scrollPane3.setViewportView(accessionsTable); } add(scrollPane3, cc.xywh(1, 13, 3, 1)); //---- separator4 ---- separator4.setBackground(new Color(220, 220, 232)); separator4.setForeground(new Color(147, 131, 86)); separator4.setMinimumSize(new Dimension(1, 10)); separator4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(separator4, cc.xywh(1, 15, 3, 1)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Resources"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label_subjectScopeNote2, cc.xywh(1, 17, 3, 1)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- resourcesTable ---- resourcesTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); scrollPane2.setViewportView(resourcesTable); } add(scrollPane2, cc.xywh(1, 19, 3, 1)); //---- label1 ---- label1.setText("Resources in Red have the subject term linked at the component level"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label1, cc.xywh(1, 21, 3, 1)); //---- separator5 ---- separator5.setBackground(new Color(220, 220, 232)); separator5.setForeground(new Color(147, 131, 86)); separator5.setMinimumSize(new Dimension(1, 10)); separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(separator5, cc.xywh(1, 23, 3, 1)); //---- label_subjectScopeNote4 ---- label_subjectScopeNote4.setText("Digital Objects"); label_subjectScopeNote4.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label_subjectScopeNote4, cc.xy(1, 25)); //======== scrollPane4 ======== { scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- digitalObjectsTable ---- digitalObjectsTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); scrollPane4.setViewportView(digitalObjectsTable); } add(scrollPane4, cc.xywh(1, 27, 3, 1)); add(tabbedPane, cc.xywh(1, 29, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.structure.DatabaseFieldsForm.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label1 = new JLabel(); fieldName = ATBasicComponentFactory//w w w.j a v a2s. co m .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_FIELD_NAME)); label16 = new JLabel(); fieldLabel = ATBasicComponentFactory .createTextField(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_FIELD_LABEL)); label12 = new JLabel(); dataType = ATBasicComponentFactory .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_DATA_TYPE)); lookupListLabel = new JLabel(); lookupList = ATBasicComponentFactory .createTextField(detailsModel.getModel(DatabaseFields.PROPERTYNAME_LOOKUP_LIST)); panel1 = new JPanel(); includeInSearchEditor = ATBasicComponentFactory.createCheckBox(detailsModel, DatabaseFields.PROPERTYNAME_INCLUDE_IN_SEARCH_EDITOR, DatabaseFields.class, true); label17 = new JLabel(); returnScreenOrder = ATBasicComponentFactory.createBufferedIntegerField(detailsModel, DatabaseFields.PROPERTYNAME_RETURN_SCREEN_ORDER); label14 = new JLabel(); scrollPane2 = new JScrollPane(); definition = ATBasicComponentFactory .createTextArea(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_DEFINITION)); label13 = new JLabel(); scrollPane1 = new JScrollPane(); examples = ATBasicComponentFactory .createTextArea(detailsModel.getBufferedModel(DatabaseFields.PROPERTYNAME_EXAMPLES)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(600, 500)); setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("30px"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px):grow") }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label1 ---- label1.setText("Field Name"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label1, cc.xy(1, 1)); //---- fieldName ---- fieldName.setEditable(false); fieldName.setOpaque(false); fieldName.setBorder(null); fieldName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(fieldName, cc.xywh(3, 1, 3, 1)); //---- label16 ---- label16.setText("Field Label"); label16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label16, cc.xy(1, 3)); //---- fieldLabel ---- fieldLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(fieldLabel, cc.xywh(3, 3, 3, 1)); //---- label12 ---- label12.setText("Data Type"); label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label12, cc.xy(1, 5)); //---- dataType ---- dataType.setEditable(false); dataType.setBorder(null); dataType.setOpaque(false); dataType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(dataType, cc.xywh(3, 5, 3, 1)); //---- lookupListLabel ---- lookupListLabel.setText("Lookup List"); lookupListLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(lookupListLabel, cc.xy(1, 7)); //---- lookupList ---- lookupList.setOpaque(false); lookupList.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); lookupList.setEditable(false); lookupList.setBorder(null); add(lookupList, cc.xywh(3, 7, 3, 1)); //======== panel1 ======== { panel1.setBackground(new Color(234, 201, 250)); panel1.setOpaque(false); panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- includeInSearchEditor ---- includeInSearchEditor.setBackground(new Color(234, 201, 250)); includeInSearchEditor.setText("Include In Search Editor"); includeInSearchEditor.setOpaque(false); includeInSearchEditor.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(includeInSearchEditor, cc.xy(1, 1)); } add(panel1, cc.xywh(3, 9, 3, 1)); //---- label17 ---- label17.setText("Return Screen Order"); label17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label17, cc.xy(1, 11)); //---- returnScreenOrder ---- returnScreenOrder.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(returnScreenOrder, cc.xywh(3, 11, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label14 ---- label14.setText("Definition"); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label14, cc.xywh(1, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- definition ---- definition.setRows(5); definition.setLineWrap(true); definition.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); definition.setWrapStyleWord(true); scrollPane2.setViewportView(definition); } add(scrollPane2, cc.xywh(3, 13, 3, 1)); //---- label13 ---- label13.setText("Examples"); label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(label13, cc.xywh(1, 15, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- examples ---- examples.setRows(5); examples.setLineWrap(true); examples.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); examples.setWrapStyleWord(true); scrollPane1.setViewportView(examples); } add(scrollPane1, cc.xywh(3, 15, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.swing.StandardQueryEditor.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license gradientPanel1 = new JGradientPanel(); headerLabel = new JLabel(); contentPanel = new JPanel(); label2 = new JLabel(); subjectTerm = new JTextField(); label12 = new JLabel(); subjectTermType = new JComboBox(); label13 = new JLabel(); subjectSource = new JTextField(); label14 = new JLabel(); scrollPane1 = new JScrollPane(); subjectScopeNote = new JTextArea(); buttonPanel = new JPanel(); cancelButton = new JButton(); okButton = new JButton(); label8 = new JLabel(); label9 = new JLabel(); gradientPanel2 = new JGradientPanel(); auditLabel = new JLabel(); CellConstraints cc = new CellConstraints(); //======== this ======== setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); setBackground(new Color(231, 188, 251)); setModal(true);/* w w w .ja v a2 s.c o m*/ Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== gradientPanel1 ======== { gradientPanel1.setBackground(new Color(229, 211, 237)); gradientPanel1.setBackground2(new Color(204, 204, 255)); gradientPanel1.setDirection(JGradientPanel.WEST); gradientPanel1.setLayout(new FormLayout("default:grow", "35px")); //---- headerLabel ---- headerLabel.setText("Subjects"); headerLabel.setFont(new Font("Lucida Grande", Font.BOLD, 14)); gradientPanel1.add(headerLabel, new CellConstraints(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 10, 0, 0))); } contentPane.add(gradientPanel1, cc.xy(1, 1)); //======== contentPanel ======== { contentPanel.setBorder(Borders.DLU4_BORDER); contentPanel.setBackground(new Color(231, 188, 251)); contentPanel.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 })); //---- label2 ---- label2.setText("Subject Term"); contentPanel.add(label2, cc.xy(1, 1)); contentPanel.add(subjectTerm, cc.xy(3, 1)); //---- label12 ---- label12.setText("Subject Term Type"); contentPanel.add(label12, cc.xy(1, 3)); //---- subjectTermType ---- subjectTermType.setBackground(new Color(231, 188, 251)); contentPanel.add(subjectTermType, cc.xy(3, 3)); //---- label13 ---- label13.setText("Source"); contentPanel.add(label13, cc.xy(1, 5)); contentPanel.add(subjectSource, cc.xy(3, 5)); //---- label14 ---- label14.setText("Scope Note"); label14.setVerticalAlignment(SwingConstants.TOP); contentPanel.add(label14, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); //---- subjectScopeNote ---- subjectScopeNote.setRows(4); subjectScopeNote.setLineWrap(true); subjectScopeNote.setTabSize(20); subjectScopeNote.setWrapStyleWord(true); scrollPane1.setViewportView(subjectScopeNote); } contentPanel.add(scrollPane1, cc.xy(3, 7)); } contentPane.add(contentPanel, cc.xy(1, 3)); //======== buttonPanel ======== { buttonPanel.setBorder(new BevelBorder(BevelBorder.LOWERED)); buttonPanel.setLayout(new FormLayout("default, default", "default, default")); //---- cancelButton ---- cancelButton.setIcon( new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/cancel.jpg"))); buttonPanel.add(cancelButton, cc.xy(1, 1)); //---- okButton ---- okButton.setIcon( new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/ok.jpg"))); buttonPanel.add(okButton, cc.xy(2, 1)); //---- label8 ---- label8.setText("Cancel"); label8.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); buttonPanel.add(label8, cc.xywh(1, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- label9 ---- label9.setText("OK"); label9.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); buttonPanel.add(label9, cc.xywh(2, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } contentPane.add(buttonPanel, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //======== gradientPanel2 ======== { gradientPanel2.setBackground(new Color(229, 211, 237)); gradientPanel2.setBackground2(new Color(204, 204, 255)); gradientPanel2.setDirection(JGradientPanel.EAST); gradientPanel2.setLayout(new FormLayout("default:grow", "35px")); //---- auditLabel ---- auditLabel.setText("created | modified"); gradientPanel2.add(auditLabel, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 10, 0, 0))); } contentPane.add(gradientPanel2, cc.xy(1, 7)); // JFormDesigner - End of component initialization //GEN-END:initComponents WindowAdapter windowAdapter = new WindowAdapter() { public void windowClosing(final WindowEvent windowEvent) { myIsDialogCancelled = true; setVisible(false); } }; addWindowListener(windowAdapter); }
From source file:org.columba.addressbook.gui.dialog.contact.ContactEditorDialog.java
License:Mozilla Public License
private void layoutComponents() { CellConstraints cc = new CellConstraints(); // ======== this ======== Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); // ======== dialogPane ======== {//w w w . j av a 2 s .c om dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); // ======== contentPane ======== { contentPane.setLayout(new BorderLayout()); // ======== tabbedPane2 ======== { tabbedPane2.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); // ======== contactPanel ======== { contactPanel.setBorder(Borders.DIALOG_BORDER); contactPanel.setLayout(new FormLayout( new ColumnSpec[] { 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) }, 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW) })); ((FormLayout) contactPanel.getLayout()) .setRowGroups(new int[][] { { 7, 9, 11, 17, 19, 25, 27 } }); // ======== panel7 ======== { panel7.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), }, new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW) })); ((FormLayout) panel7.getLayout()).setRowGroups(new int[][] { { 1, 3, 5 } }); // ---- pictureButton ---- panel7.add(pictureButton, cc.xywh(1, 1, 1, 5)); // ---- fullnameButton ---- formattedNameButton.setText(bundle.getString("formattedNameButton.text")); panel7.add(formattedNameButton, cc.xy(3, 1)); panel7.add(formattedNameTextField, cc.xy(5, 1)); // ---- nicknameLabel ---- nicknameLabel.setText(bundle.getString("nicknameLabel.text")); nicknameLabel.setLabelFor(nicknameTextField); panel7.add(nicknameLabel, cc.xywh(7, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panel7.add(nicknameTextField, cc.xy(9, 1)); // ---- fileunderLabel ---- fileunderLabel.setText(bundle.getString("fileunderLabel.text")); fileunderLabel.setLabelFor(fileunderComboBox); panel7.add(fileunderLabel, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panel7.add(fileunderComboBox, cc.xy(5, 3)); panel7.add(whereLabel, cc.xywh(7, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panel7.add(whereComboBox, cc.xy(9, 3)); // ---- categoriesButton ---- categoriesButton.setText(bundle.getString("categoriesButton.text")); panel7.add(categoriesButton, cc.xy(3, 5)); panel7.add(categoriesTextField, cc.xywh(5, 5, 5, 1)); } contactPanel.add(panel7, cc.xywh(1, 1, 7, 1)); contactPanel.add(emailSeparator, cc.xywh(1, 5, 7, 1)); contactPanel.add(emailComboBox1, cc.xy(1, 7)); // ---- emailTextField1 ---- emailTextField1.setColumns(20); contactPanel.add(emailTextField1, cc.xy(3, 7)); contactPanel.add(emailComboBox2, cc.xy(5, 7)); // ---- emailTextField2 ---- emailTextField2.setColumns(20); contactPanel.add(emailTextField2, cc.xy(7, 7)); contactPanel.add(emailComboBox3, cc.xy(1, 9)); // ---- emailTextField3 ---- emailTextField3.setColumns(20); contactPanel.add(emailTextField3, cc.xy(3, 9)); contactPanel.add(emailComboBox4, cc.xy(5, 9)); // ---- emailTextField4 ---- emailTextField4.setColumns(20); contactPanel.add(emailTextField4, cc.xy(7, 9)); // ---- preferHtmlCheckBox ---- preferHtmlCheckBox.setText(bundle.getString("preferHtmlCheckBox.text")); contactPanel.add(preferHtmlCheckBox, cc.xy(3, 11)); contactPanel.add(telephoneSeparator, cc.xywh(1, 15, 7, 1)); contactPanel.add(telephoneComboBox1, cc.xy(1, 17)); // ---- telephoneTextField1 ---- telephoneTextField1.setColumns(20); contactPanel.add(telephoneTextField1, cc.xy(3, 17)); contactPanel.add(telephoneComboBox2, cc.xy(5, 17)); // ---- telephoneTextField2 ---- telephoneTextField2.setColumns(20); contactPanel.add(telephoneTextField2, cc.xy(7, 17)); contactPanel.add(telephoneComboBox3, cc.xy(1, 19)); // ---- telephoneTextField3 ---- telephoneTextField3.setColumns(20); contactPanel.add(telephoneTextField3, cc.xy(3, 19)); contactPanel.add(telephoneComboBox4, cc.xy(5, 19)); // ---- telephoneTextField4 ---- telephoneTextField4.setColumns(20); contactPanel.add(telephoneTextField4, cc.xy(7, 19)); contactPanel.add(imSeparator, cc.xywh(1, 23, 7, 1)); contactPanel.add(imComboBox1, cc.xy(1, 25)); // ---- imTextField1 ---- imTextField1.setColumns(20); contactPanel.add(imTextField1, cc.xy(3, 25)); contactPanel.add(imComboBox2, cc.xy(5, 25)); // ---- imTextField2 ---- imTextField2.setColumns(20); contactPanel.add(imTextField2, cc.xy(7, 25)); contactPanel.add(imComboBox3, cc.xy(1, 27)); // ---- imTextField3 ---- imTextField3.setColumns(20); contactPanel.add(imTextField3, cc.xy(3, 27)); contactPanel.add(imComboBox4, cc.xy(5, 27)); // ---- imTextField4 ---- imTextField4.setColumns(20); contactPanel.add(imTextField4, cc.xy(7, 27)); } tabbedPane2.addTab(bundle.getString("contactPanel.tab.title"), contactPanel); // ======== personalInfoPanel ======== { personalInfoPanel.setBorder(Borders.DIALOG_BORDER); personalInfoPanel.setLayout(new FormLayout( new ColumnSpec[] { 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) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); ((FormLayout) personalInfoPanel.getLayout()) .setRowGroups(new int[][] { { 3, 5, 7, 9, 15, 17, 19, 25 } }); personalInfoPanel.add(webAddressSeparator, cc.xywh(1, 1, 7, 1)); // ---- homepageLabel ---- homepageLabel.setText(bundle.getString("homepageLabel.text")); homepageLabel.setLabelFor(homepageTextField); personalInfoPanel.add(homepageLabel, cc.xywh(1, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== panel1 ======== { panel1.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.CENTER, Sizes.DEFAULT, FormSpec.NO_GROW) }, RowSpec.decodeSpecs("fill:default"))); // ---- homepageTextField ---- homepageTextField.setColumns(20); panel1.add(homepageTextField, cc.xy(1, 1)); // ---- homepageButton ---- panel1.add(homepageButton, cc.xy(3, 1)); } personalInfoPanel.add(panel1, cc.xywh(3, 3, 5, 1)); // ---- weblogLabel ---- weblogLabel.setText(bundle.getString("weblogLabel.text")); weblogLabel.setLabelFor(weblogTextField); personalInfoPanel.add(weblogLabel, cc.xywh(1, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== panel5 ======== { panel5.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:default"))); // ---- weblogTextField ---- weblogTextField.setColumns(20); panel5.add(weblogTextField, cc.xy(1, 1)); // ---- weblogButton ---- panel5.add(weblogButton, cc.xy(3, 1)); } personalInfoPanel.add(panel5, cc.xywh(3, 5, 5, 1)); // ---- calendarLabel ---- calendarLabel.setText(bundle.getString("calendarLabel.text")); calendarLabel.setLabelFor(calendarTextField); personalInfoPanel.add(calendarLabel, cc.xywh(1, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== panel6 ======== { panel6.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:default"))); // ---- calendarTextField ---- calendarTextField.setColumns(20); panel6.add(calendarTextField, cc.xy(1, 1)); // ---- calendarButton ---- panel6.add(calendarButton, cc.xy(3, 1)); } personalInfoPanel.add(panel6, cc.xywh(3, 7, 5, 1)); // ---- freebusyLabel ---- freebusyLabel.setText(bundle.getString("freebusyLabel.text")); freebusyLabel.setLabelFor(freebusyTextField); personalInfoPanel.add(freebusyLabel, cc.xywh(1, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== panel8 ======== { panel8.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:default"))); // ---- freebusyTextField ---- freebusyTextField.setColumns(20); panel8.add(freebusyTextField, cc.xy(1, 1)); // ---- freebusyButton ---- panel8.add(freebusyButton, cc.xy(3, 1)); } personalInfoPanel.add(panel8, cc.xywh(3, 9, 5, 1)); personalInfoPanel.add(jobSeparator, cc.xywh(1, 13, 7, 1)); // ---- professionLabel ---- professionLabel.setText(bundle.getString("professionLabel.text")); professionLabel.setLabelFor(professionTextField); personalInfoPanel.add(professionLabel, cc.xywh(1, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- professionTextField ---- professionTextField.setColumns(20); personalInfoPanel.add(professionTextField, cc.xy(3, 15)); // ---- titleLabel ---- titleLabel.setText(bundle.getString("titleLabel.text")); titleLabel.setLabelFor(titleTextField); personalInfoPanel.add(titleLabel, cc.xywh(5, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- titleTextField ---- titleTextField.setColumns(20); personalInfoPanel.add(titleTextField, cc.xy(7, 15)); // ---- companyLabel ---- companyLabel.setText(bundle.getString("companyLabel.text")); companyLabel.setLabelFor(companyTextField); personalInfoPanel.add(companyLabel, cc.xywh(1, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- companyTextField ---- companyTextField.setColumns(20); personalInfoPanel.add(companyTextField, cc.xy(3, 17)); // ---- departmentLabel ---- departmentLabel.setText(bundle.getString("departmentLabel.text")); departmentLabel.setLabelFor(departmentTextField); personalInfoPanel.add(departmentLabel, cc.xywh(5, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- departmentTextField ---- departmentTextField.setColumns(20); personalInfoPanel.add(departmentTextField, cc.xy(7, 17)); // ---- managerLabel ---- managerLabel.setText(bundle.getString("managerLabel.text")); managerLabel.setLabelFor(managerTextField); personalInfoPanel.add(managerLabel, cc.xywh(1, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- managerTextField ---- managerTextField.setColumns(20); personalInfoPanel.add(managerTextField, cc.xy(3, 19)); // ---- officeLabel ---- officeLabel.setText(bundle.getString("officeLabel.text")); officeLabel.setLabelFor(officeTextField); personalInfoPanel.add(officeLabel, cc.xywh(5, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- officeTextField ---- officeTextField.setColumns(10); personalInfoPanel.add(officeTextField, cc.xy(7, 19)); personalInfoPanel.add(miscellaneousSeparator, cc.xywh(1, 23, 7, 1)); // ---- birthdayLabel ---- birthdayLabel.setText(bundle.getString("birthdayLabel.text")); personalInfoPanel.add(birthdayLabel, cc.xywh(1, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== panel9 ======== { panel9.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:default"))); // ---- birthdayCheckBox ---- birthdayCheckBox.setSelected(false); panel9.add(birthdayCheckBox, cc.xy(1, 1)); // ---- birthdayDatePicker ---- birthdayDatePicker.setEnabled(false); panel9.add(birthdayDatePicker, cc.xy(3, 1)); } personalInfoPanel.add(panel9, cc.xywh(3, 25, 5, 1)); birthdayLabel.setLabelFor(panel9); // ---- notesLabel ---- notesLabel.setText(bundle.getString("notesLabel.text")); notesLabel.setLabelFor(notesTextArea); personalInfoPanel.add(notesLabel, cc.xywh(1, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.TOP)); // ======== scrollPane3 ======== { scrollPane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); // ---- notesTextArea ---- notesTextArea.setRows(5); notesTextArea.setColumns(20); notesTextArea.setTabSize(4); scrollPane3.setViewportView(notesTextArea); } personalInfoPanel.add(scrollPane3, cc.xywh(3, 27, 5, 1)); } tabbedPane2.addTab(bundle.getString("personalInfoPanel.tab.title"), personalInfoPanel); // ======== mailingAddressPanel ======== { mailingAddressPanel.setBorder(Borders.DIALOG_BORDER); mailingAddressPanel.setLayout(new FormLayout( new ColumnSpec[] { 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) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), 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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); mailingAddressPanel.add(privateSeparator, cc.xywh(1, 1, 7, 1)); // ---- privateAddressLabel ---- privateAddressLabel.setText(bundle.getString("privateAddressLabel.text")); privateAddressLabel.setLabelFor(privateAddressTextArea); mailingAddressPanel.add(privateAddressLabel, cc.xywh(1, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setViewportView(privateAddressTextArea); } mailingAddressPanel.add(scrollPane1, cc.xywh(3, 3, 1, 3)); // ---- privateCityLabel ---- privateCityLabel.setText(bundle.getString("privateCityLabel.text")); privateCityLabel.setLabelFor(privateCityTextField); mailingAddressPanel.add(privateCityLabel, cc.xywh(5, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- privateCityTextField ---- privateCityTextField.setColumns(5); mailingAddressPanel.add(privateCityTextField, cc.xy(7, 3)); // ---- privateZipPostalCodeLabel ---- privateZipPostalCodeLabel.setText(bundle.getString("privateZipPostalCodeLabel.text")); privateZipPostalCodeLabel.setLabelFor(privateZipPostalCodeTextField); mailingAddressPanel.add(privateZipPostalCodeLabel, cc.xywh(5, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(privateZipPostalCodeTextField, cc.xy(7, 5)); // ---- label1 ---- label1.setText(bundle.getString("streetLabel.text")); label1.setLabelFor(privateStreetTextField); mailingAddressPanel.add(label1, cc.xywh(1, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(privateStreetTextField, cc.xy(3, 7)); // ---- privateStateProvinceCountyLabel ---- privateStateProvinceCountyLabel .setText(bundle.getString("privateStateProvinceCountyLabel.text")); privateStateProvinceCountyLabel.setLabelFor(privateStateProvinceCountyTextField); mailingAddressPanel.add(privateStateProvinceCountyLabel, cc.xywh(5, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(privateStateProvinceCountyTextField, cc.xy(7, 7)); // ---- privatePOBoxLabel ---- privatePOBoxLabel.setText(bundle.getString("privatePOBoxLabel.text")); privatePOBoxLabel.setLabelFor(privatePOBoxTextField); mailingAddressPanel.add(privatePOBoxLabel, cc.xywh(1, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(privatePOBoxTextField, cc.xy(3, 9)); // ---- privateCountryLabel ---- privateCountryLabel.setText(bundle.getString("privateCountryLabel.text")); privateCountryLabel.setLabelFor(privateCountryTextField); mailingAddressPanel.add(privateCountryLabel, cc.xywh(5, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(privateCountryTextField, cc.xy(7, 9)); mailingAddressPanel.add(workSeparator, cc.xywh(1, 13, 7, 1)); // ---- workAddressLabel ---- workAddressLabel.setText(bundle.getString("workAddressLabel.text")); workAddressLabel.setLabelFor(workAddressTextArea); mailingAddressPanel.add(workAddressLabel, cc.xywh(1, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setViewportView(workAddressTextArea); } mailingAddressPanel.add(scrollPane2, cc.xywh(3, 15, 1, 3)); // ---- workCityLabel ---- workCityLabel.setText(bundle.getString("workCityLabel.text")); workCityLabel.setLabelFor(workCityTextField); mailingAddressPanel.add(workCityLabel, cc.xywh(5, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ---- workCityTextField ---- workCityTextField.setColumns(5); mailingAddressPanel.add(workCityTextField, cc.xy(7, 15)); // ---- workZipPostalCodeLabel ---- workZipPostalCodeLabel.setText(bundle.getString("workZipPostalCodeLabel.text")); workZipPostalCodeLabel.setLabelFor(workZipPostalCodeTextField); mailingAddressPanel.add(workZipPostalCodeLabel, cc.xywh(5, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(workZipPostalCodeTextField, cc.xy(7, 17)); // ---- label2 ---- label2.setText(bundle.getString("streetLabel.text")); label2.setLabelFor(workStreetTextField); mailingAddressPanel.add(label2, cc.xywh(1, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(workStreetTextField, cc.xy(3, 19)); // ---- workStateProvinceCountyLabel ---- workStateProvinceCountyLabel.setText(bundle.getString("workStateProvinceCountyLabel.text")); workStateProvinceCountyLabel.setLabelFor(workStateProvinceCountyTextField); mailingAddressPanel.add(workStateProvinceCountyLabel, cc.xywh(5, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(workStateProvinceCountyTextField, cc.xy(7, 19)); // ---- workPOBoxLabel ---- workPOBoxLabel.setText(bundle.getString("workPOBoxLabel.text")); workPOBoxLabel.setLabelFor(workPOBoxTextField); mailingAddressPanel.add(workPOBoxLabel, cc.xywh(1, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(workPOBoxTextField, cc.xy(3, 21)); // ---- workCountryLabel ---- workCountryLabel.setText(bundle.getString("workCountryLabel.text")); workCountryLabel.setLabelFor(workCountryTextField); mailingAddressPanel.add(workCountryLabel, cc.xywh(5, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(workCountryTextField, cc.xy(7, 21)); mailingAddressPanel.add(otherSeparator, cc.xywh(1, 25, 7, 1)); // ---- otherAddressLabel ---- otherAddressLabel.setLabelFor(otherAddressTextArea); mailingAddressPanel.add(otherAddressLabel, cc.xywh(1, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // ======== scrollPane4 ======== { scrollPane4.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane4.setViewportView(otherAddressTextArea); } mailingAddressPanel.add(scrollPane4, cc.xywh(3, 27, 1, 3)); // ---- otherCityLabel ---- otherCityLabel.setText(bundle.getString("otherCityLabel.text")); otherCityLabel.setLabelFor(otherCityTextField); mailingAddressPanel.add(otherCityLabel, cc.xywh(5, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherCityTextField, cc.xy(7, 27)); // ---- otherZipPostalCodeLabel ---- otherZipPostalCodeLabel.setText(bundle.getString("otherZipPostalCodeLabel.text")); otherZipPostalCodeLabel.setLabelFor(otherZipPostalCodeTextField); mailingAddressPanel.add(otherZipPostalCodeLabel, cc.xywh(5, 29, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherZipPostalCodeTextField, cc.xy(7, 29)); // ---- label3 ---- label3.setText(bundle.getString("streetLabel.text")); label3.setLabelFor(otherStreetTextField); mailingAddressPanel.add(label3, cc.xywh(1, 31, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherStreetTextField, cc.xy(3, 31)); // ---- otherStateProvinceCountyLabel ---- otherStateProvinceCountyLabel .setText(bundle.getString("otherStateProvinceCountyLabel.text")); otherStateProvinceCountyLabel.setLabelFor(otherStateProvinceCountyTextField); mailingAddressPanel.add(otherStateProvinceCountyLabel, cc.xywh(5, 31, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherStateProvinceCountyTextField, cc.xy(7, 31)); // ---- otherPOBoxLabel ---- otherPOBoxLabel.setText(bundle.getString("otherPOBoxLabel.text")); otherPOBoxLabel.setLabelFor(otherPOBoxTextField); mailingAddressPanel.add(otherPOBoxLabel, cc.xywh(1, 33, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherPOBoxTextField, cc.xy(3, 33)); // ---- otherCountryLabel ---- otherCountryLabel.setText(bundle.getString("otherCountryLabel.text")); otherCountryLabel.setLabelFor(otherCountryTextField); mailingAddressPanel.add(otherCountryLabel, cc.xywh(5, 33, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); mailingAddressPanel.add(otherCountryTextField, cc.xy(7, 33)); } tabbedPane2.addTab(bundle.getString("mailingAddressPanel.tab.title"), mailingAddressPanel); } contentPane.add(tabbedPane2, BorderLayout.NORTH); } dialogPane.add(contentPane, BorderLayout.CENTER); // ======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); // ---- okButton ---- okButton.setText(bundle.getString("okButton.text")); buttonBar.add(okButton, cc.xy(2, 1)); // ---- cancelButton ---- cancelButton.setText(bundle.getString("cancelButton.text")); buttonBar.add(cancelButton, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane2.add(dialogPane, BorderLayout.CENTER); }
From source file:org.columba.calendar.ui.dialog.EditEventDialog.java
License:Mozilla Public License
private JPanel createPanel1() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout( "3dlu,FILL:DEFAULT:NONE,3dlu,FILL:DEFAULT:GROW(1.0),3dlu,FILL:DEFAULT:NONE,3dlu,FILL:DEFAULT:NONE", "3dlu,CENTER:DEFAULT:NONE,3dlu,CENTER:DEFAULT:NONE,3dlu,CENTER:DEFAULT:NONE,3dlu,CENTER:DEFAULT:NONE,3dlu,FILL:DEFAULT:GROW(1.0)"); CellConstraints cc = new CellConstraints(); jpanel1.setLayout(formlayout1);//from www . j a v a 2 s . c o m JLabel jlabel1 = new JLabel(); jlabel1.setText("Summary:"); jpanel1.add(jlabel1, new CellConstraints(2, 2, CellConstraints.RIGHT, CellConstraints.DEFAULT)); JLabel jlabel2 = new JLabel(); jlabel2.setText("Location:"); jpanel1.add(jlabel2, new CellConstraints(2, 4, CellConstraints.RIGHT, CellConstraints.DEFAULT)); JLabel jlabel3 = new JLabel(); jlabel3.setText("Description:"); jpanel1.add(jlabel3, new CellConstraints(2, 10, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); JLabel jlabel4 = new JLabel(); jlabel4.setText("Class:"); jpanel1.add(jlabel4, new CellConstraints(2, 6, CellConstraints.RIGHT, CellConstraints.DEFAULT)); jpanel1.add(summaryTextField, cc.xywh(4, 2, 5, 1)); jpanel1.add(locationTextField, cc.xywh(4, 4, 5, 1)); JScrollPane jscrollpane1 = new JScrollPane(); jscrollpane1.setViewportView(descriptionTextArea); jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); jpanel1.add(jscrollpane1, cc.xywh(4, 10, 5, 1)); jpanel1.add(classComboBox, cc.xy(4, 6)); JLabel jlabel5 = new JLabel(); jlabel5.setText("Calendar:"); jpanel1.add(jlabel5, new CellConstraints(6, 6, CellConstraints.RIGHT, CellConstraints.DEFAULT)); jpanel1.add(calendarPicker, cc.xy(8, 6)); jpanel1.add(new JLabel("Categories:"), new CellConstraints(2, 8, CellConstraints.RIGHT, CellConstraints.DEFAULT)); jpanel1.add(categoriesTextField, cc.xywh(4, 8, 3, 1)); categoriesButton.setActionCommand("Categories..."); categoriesButton.setText("Select ..."); jpanel1.add(categoriesButton, cc.xy(8, 8)); return jpanel1; }
From source file:org.columba.core.gui.externaltools.ExternalToolsDialog.java
License:Mozilla Public License
private JPanel createPanel() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); jpanel1.setLayout(formlayout1);/* w ww. j a va2 s .c o m*/ JLabel jlabel1 = new JLabel(); jlabel1.setText("External Tools:"); jpanel1.add(jlabel1, cc.xy(1, 1)); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setPreferredSize(new Dimension(250, 150)); jpanel1.add(scrollPane, cc.xy(1, 3)); jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); return jpanel1; }
From source file:org.columba.core.gui.profiles.ProfileManagerDialog.java
License:Mozilla Public License
private JPanel createPanel() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); jpanel1.setLayout(formlayout1);//from w ww .j a v a 2s .c om JLabel jlabel1 = new JLabel(); jlabel1.setText("Profiles:"); jpanel1.add(jlabel1, cc.xy(1, 1)); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setPreferredSize(new Dimension(250, 150)); jpanel1.add(scrollPane, cc.xy(1, 3)); jpanel1.add(checkBox, cc.xy(1, 5)); jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); return jpanel1; }
From source file:org.columba.mail.gui.config.columns.ColumnConfigDialog.java
License:Mozilla Public License
private JPanel createPanel() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); jpanel1.setLayout(formlayout1);/* ww w . ja v a2s. c om*/ JLabel jlabel1 = new JLabel(); jlabel1.setText("Columns:"); jpanel1.add(jlabel1, cc.xy(1, 1)); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setPreferredSize(new Dimension(250, 200)); jpanel1.add(scrollPane, cc.xy(1, 3)); jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); return jpanel1; }
From source file:org.columba.mail.gui.config.export.ExportDialog.java
License:Mozilla Public License
private JPanel createPanel() { JPanel jpanel1 = new JPanel(); FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); jpanel1.setLayout(formlayout1);// w w w . jav a2s. com JLabel jlabel1 = new JLabel(); jlabel1.setText("Select Folders:"); jpanel1.add(jlabel1, cc.xy(1, 1)); JScrollPane scrollPane = new JScrollPane(tree); scrollPane.setPreferredSize(new Dimension(350, 250)); jpanel1.add(scrollPane, cc.xy(1, 3)); jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); return jpanel1; }