List of usage examples for com.jgoodies.forms.layout FormLayout FormLayout
public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs)
From source file:ConsoleView.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel1 = new JPanel(); scrollPane1 = new JScrollPane(); textArea1 = new JTextArea(); buttonPanel = new JPanel(); clearButton = new JButton(); button1 = new JButton(); closeButton = new JButton(); //======== this ======== setResizable(false);//from ww w . j a v a 2 s . co m setFocusable(false); setFocusableWindowState(false); setTitle("Console"); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel1 ======== { panel1.setPreferredSize(new Dimension(800, 400)); panel1.setFocusable(false); panel1.setRequestFocusEnabled(false); panel1.setVerifyInputWhenFocusTarget(false); panel1.setLayout(new FormLayout("default:grow", "fill:default:grow, default")); //======== scrollPane1 ======== { scrollPane1.setAutoscrolls(true); scrollPane1.setFocusable(false); scrollPane1.setRequestFocusEnabled(false); scrollPane1.setVerifyInputWhenFocusTarget(false); //---- textArea1 ---- textArea1.setRequestFocusEnabled(false); textArea1.setVerifyInputWhenFocusTarget(false); textArea1.setEditable(false); scrollPane1.setViewportView(textArea1); } panel1.add(scrollPane1, CC.xy(1, 1)); //======== buttonPanel ======== { buttonPanel.setLayout( new FormLayout("center:default, $lcgap, right:default:grow, $lcgap, default", "default")); //---- clearButton ---- clearButton.setText("Clear"); clearButton.setName("clearButton"); clearButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { clearButtonActionPerformed(e); } }); buttonPanel.add(clearButton, CC.xy(1, 1)); //---- button1 ---- button1.setText("Save as..."); buttonPanel.add(button1, CC.xy(3, 1)); //---- closeButton ---- closeButton.setText("Close"); closeButton.setName("closeButton"); closeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { closeButtonActionPerformed(e); } }); buttonPanel.add(closeButton, CC.xy(5, 1, CC.RIGHT, CC.DEFAULT)); } panel1.add(buttonPanel, CC.xy(1, 2, CC.FILL, CC.DEFAULT)); } contentPane.add(panel1, CC.xy(1, 1)); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:SearchPreferencesView.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license scrollPane1 = new JScrollPane(); panel1 = new JPanel(); leftPanel = new JPanel(); leftInnerPanel = new JPanel(); orientationContainer = new JPanel(); label1 = new JLabel(); orientationCombo = new JComboBox<>(); radiusContainer = new JPanel(); label2 = new JLabel(); radiusCombo = new JComboBox<>(); lastOnlineContainer = new JPanel(); label3 = new JLabel(); lastOnlineCombo = new JComboBox<>(); panel20 = new JPanel(); label4 = new JLabel(); agePanel = new JPanel(); minAgeText = new JTextField(); label5 = new JLabel(); maxAgeText = new JTextField(); orderByContainer = new JPanel(); label6 = new JLabel(); orderByCombo = new JComboBox<>(); visitsContainer = new JPanel(); label40 = new JLabel(); runVisitsText = new JTextField(); autohideCheckBox = new JCheckBox(); visitDelayContainer = new JPanel(); label42 = new JLabel(); visitDelayText = new JTextField(); autoDeleteInboxCheckBox = new JCheckBox(); heightContainer = new JPanel(); label25 = new JLabel(); heightPanel = new JPanel(); minHeightCombo = new JComboBox<>(); label26 = new JLabel(); maxHeightCombo = new JComboBox<>(); separator1 = new JSeparator(); ethnicityContainer = new JPanel(); label38 = new JLabel(); ethnicitySelectionPanel = new JPanel(); whiteCheckBox = new JCheckBox(); asianCheckBox = new JCheckBox(); blackCheckBox = new JCheckBox(); hispanicCheckBox = new JCheckBox(); indianCheckBox = new JCheckBox(); middleEasternCheckBox = new JCheckBox(); nativeAmericanCheckBox = new JCheckBox(); pacificIslanderCheckBox = new JCheckBox(); otherEthnicityCheckBox = new JCheckBox(); bodyTypeContainer = new JPanel(); label36 = new JLabel(); bodyTypeSelectionPanel = new JPanel(); thinCheckbox = new JCheckBox(); fitCheckbox = new JCheckBox(); averageBodyCheckbox = new JCheckBox(); curvyCheckbox = new JCheckBox(); jackedCheckbox = new JCheckBox(); fullFiguredCheckbox = new JCheckBox(); aLittleExtraCheckbox = new JCheckBox(); overweightCheckbox = new JCheckBox(); attractivenessContainer = new JPanel(); label35 = new JLabel(); attractivenessSelectionPanel = new JPanel(); averageAttractivenessCheckbox = new JCheckBox(); aboveAverageCheckbox = new JCheckBox(); hotCheckbox = new JCheckBox(); religionContainer = new JPanel(); label24 = new JLabel(); religionSelectionPanel = new JPanel(); agnosticismCheckBox = new JCheckBox(); atheismCheckBox = new JCheckBox(); buddhismCheckBox = new JCheckBox(); catholicismCheckBox = new JCheckBox(); christianityCheckBox = new JCheckBox(); hinduismCheckBox = new JCheckBox(); judaismCheckBox = new JCheckBox(); islamCheckBox = new JCheckBox(); otherReligionCheckBox = new JCheckBox(); childrenContainer = new JPanel(); label32 = new JLabel(); mainChildrenPanel = new JPanel(); subChildrenPanel1 = new JPanel(); wantsCheckBox = new JCheckBox(); mightWantCheckBox = new JCheckBox(); doesntWantCheckBox = new JCheckBox(); separator3 = new JSeparator(); subChildrenPanel2 = new JPanel(); hasKidsCheckBox = new JCheckBox(); doesnthaveCheckBox = new JCheckBox(); rightPanel = new JPanel(); advancedFiltersPanel = new JPanel(); label8 = new JLabel(); label9 = new JLabel(); label10 = new JLabel(); label11 = new JLabel(); aggressivenessDegCombo = new JComboBox<>(); aggressivenessImpCombo = new JComboBox<>(); label12 = new JLabel(); athleticismDegCombo = new JComboBox<>(); athleticismImpCombo = new JComboBox<>(); label13 = new JLabel(); cockinessDegCombo = new JComboBox<>(); cockinessImpCombo = new JComboBox<>(); label14 = new JLabel(); dorkinessDegCombo = new JComboBox<>(); dorkinessImpCombo = new JComboBox<>(); label15 = new JLabel(); independenceDegCombo = new JComboBox<>(); independenceImpCombo = new JComboBox<>(); label16 = new JLabel(); indieDegCombo = new JComboBox<>(); indieImpCombo = new JComboBox<>(); label17 = new JLabel(); introversionDegCombo = new JComboBox<>(); introversionImpCombo = new JComboBox<>(); label18 = new JLabel(); oldFashinednessDegCombo = new JComboBox<>(); oldFashinednessImpCombo = new JComboBox<>(); label19 = new JLabel(); planningDegCombo = new JComboBox<>(); planningImpCombo = new JComboBox<>(); label20 = new JLabel(); politicalDegCombo = new JComboBox<>(); politicalImpCombo = new JComboBox<>(); label21 = new JLabel(); sexualExperienceDegCombo = new JComboBox<>(); sexualExperienceImpCombo = new JComboBox<>(); label22 = new JLabel(); sociallyFreeDegCombo = new JComboBox<>(); sociallyFreeImpCombo = new JComboBox<>(); label23 = new JLabel(); spiritualityDegCombo = new JComboBox<>(); spiritualityImpCombo = new JComboBox<>(); educationContainer = new JPanel(); label33 = new JLabel(); educationSelectionPanel = new JPanel(); highschoolCheckBox = new JCheckBox(); twoyearCollegeCheckBox = new JCheckBox(); universityCheckBox = new JCheckBox(); postGradCheckBox = new JCheckBox(); smokesContainer = new JPanel(); label27 = new JLabel(); smokesSelectionPanel = new JPanel(); yesCheckBox = new JCheckBox(); noCheckBox = new JCheckBox(); whenDrinkingCheckBox = new JCheckBox(); sometimesSmokesCheckBox = new JCheckBox(); tryingToQuitCheckBox = new JCheckBox(); drinksContainer = new JPanel(); label28 = new JLabel(); drinksSelectionPanel = new JPanel(); sociallyCheckBox = new JCheckBox(); oftenDrinksCheckBox = new JCheckBox(); rarelyCheckBox = new JCheckBox(); notAtAllCheckBox = new JCheckBox(); desperatelyCheckBox = new JCheckBox(); veryOftenCheckBox = new JCheckBox(); drugsContainer = new JPanel(); label29 = new JLabel(); drugsSelectionPanel = new JPanel(); everCheckBox = new JCheckBox(); sometimesDrugsCheckBox = new JCheckBox(); oftenDrugsCheckBox = new JCheckBox(); buttonPanel = new JPanel(); closeButton = new JButton(); resetButton = new JButton(); applyButton = new JButton(); //======== this ======== setTitle("Search Settings"); addWindowListener(new WindowAdapter() { @Override//from w w w . j a v a 2s.com public void windowOpened(WindowEvent e) { thisWindowOpened(e); } }); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("337dlu", "467dlu")); //======== scrollPane1 ======== { scrollPane1.setMinimumSize(new Dimension(23, 780)); scrollPane1.setPreferredSize(new Dimension(619, 759)); //======== panel1 ======== { panel1.setPreferredSize(new Dimension(600, 746)); panel1.setName("panel1"); panel1.setLayout(new FormLayout("165dlu, left:166dlu", "top:442dlu, $lgap, default:grow")); //======== leftPanel ======== { leftPanel.setName("leftPanel"); leftPanel.setPreferredSize(new Dimension(297, 1000)); leftPanel.setLayout(new FormLayout("163dlu", "top:min")); //======== leftInnerPanel ======== { leftInnerPanel.setPreferredSize(new Dimension(3245, 800)); leftInnerPanel.setName("leftInnerPanel"); leftInnerPanel.setLayout(new FormLayout("left:155dlu", "7*(default, $lgap), default, 13dlu, 4*(default, $lgap), default")); //======== orientationContainer ======== { orientationContainer.setName("orientationContainer"); orientationContainer.setLayout(new FormLayout("default, $lcgap, 101dlu", "default")); //---- label1 ---- label1.setText("Search for:"); label1.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); orientationContainer.add(label1, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- orientationCombo ---- orientationCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); orientationCombo.setModel(new DefaultComboBoxModel<>( new String[] { "men who like women", "women who like men" })); orientationCombo.setName("orientation"); orientationContainer.add(orientationCombo, CC.xy(3, 1)); } leftInnerPanel.add(orientationContainer, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //======== radiusContainer ======== { radiusContainer.setName("radiusContainer"); radiusContainer.setLayout(new FormLayout("default, $lcgap, 72dlu", "default")); //---- label2 ---- label2.setText("Radius:"); label2.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); radiusContainer.add(label2, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- radiusCombo ---- radiusCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); radiusCombo.setModel(new DefaultComboBoxModel<>( new String[] { "Anywhere", "5", "10", "25", "50", "100", "250", "500" })); radiusCombo.setPreferredSize(new Dimension(150, 27)); radiusCombo.setName("radius"); radiusContainer.add(radiusCombo, CC.xy(3, 1, CC.LEFT, CC.DEFAULT)); } leftInnerPanel.add(radiusContainer, CC.xy(1, 3, CC.CENTER, CC.DEFAULT)); //======== lastOnlineContainer ======== { lastOnlineContainer.setName("lastOnlineContainer"); lastOnlineContainer.setLayout(new FormLayout("default, $lcgap, 82dlu", "default")); //---- label3 ---- label3.setText("Last online:"); label3.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); lastOnlineContainer.add(label3, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- lastOnlineCombo ---- lastOnlineCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); lastOnlineCombo.setModel(new DefaultComboBoxModel<>(new String[] { "online now", "past day", "past week", "past month", "past year" })); lastOnlineCombo.setName("last_login"); lastOnlineContainer.add(lastOnlineCombo, CC.xy(3, 1)); } leftInnerPanel.add(lastOnlineContainer, CC.xy(1, 5, CC.CENTER, CC.DEFAULT)); //======== panel20 ======== { panel20.setLayout(new FormLayout("default, $lcgap, 101dlu", "default")); //---- label4 ---- label4.setText("Ages:"); label4.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); panel20.add(label4, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //======== agePanel ======== { agePanel.setName("agePanel"); agePanel.setLayout(new FormLayout("3*(default)", "default")); //---- minAgeText ---- minAgeText.setPreferredSize(new Dimension(50, 28)); minAgeText.setText("18"); minAgeText.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); minAgeText.setName("minimum_age"); agePanel.add(minAgeText, CC.xy(1, 1, CC.LEFT, CC.DEFAULT)); //---- label5 ---- label5.setText("-"); agePanel.add(label5, CC.xy(2, 1, CC.CENTER, CC.CENTER)); //---- maxAgeText ---- maxAgeText.setPreferredSize(new Dimension(50, 28)); maxAgeText.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); maxAgeText.setName("maximum_age"); maxAgeText.setText("99"); agePanel.add(maxAgeText, CC.xy(3, 1)); } panel20.add(agePanel, CC.xy(3, 1)); } leftInnerPanel.add(panel20, CC.xy(1, 7, CC.RIGHT, CC.DEFAULT)); //======== orderByContainer ======== { orderByContainer.setName("orderByContainer"); orderByContainer.setLayout(new FormLayout("default, $lcgap, 101dlu", "default")); //---- label6 ---- label6.setText("Sort by:"); label6.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); orderByContainer.add(label6, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- orderByCombo ---- orderByCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); orderByCombo.setModel(new DefaultComboBoxModel<>( new String[] { "Login", "Join", "Match", "Match and Login", "Match and Distance", "Enemy", "Special blend", "Random" })); orderByCombo.setPreferredSize(new Dimension(150, 27)); orderByCombo.setName("order_by"); orderByContainer.add(orderByCombo, CC.xy(3, 1, CC.LEFT, CC.DEFAULT)); } leftInnerPanel.add(orderByContainer, CC.xy(1, 9, CC.RIGHT, CC.DEFAULT)); //======== visitsContainer ======== { visitsContainer.setName("visitsContainer"); visitsContainer.setLayout( new FormLayout("44dlu, $lcgap, left:28dlu, $lcgap, 72dlu", "default")); //---- label40 ---- label40.setText("# Visits:"); label40.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); visitsContainer.add(label40, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- runVisitsText ---- runVisitsText.setPreferredSize(new Dimension(50, 28)); runVisitsText.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); runVisitsText.setName("limit"); runVisitsText.setText("50"); visitsContainer.add(runVisitsText, CC.xy(3, 1)); //---- autohideCheckBox ---- autohideCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); autohideCheckBox.setName("autoHide"); autohideCheckBox.setText("Auto-Hide"); visitsContainer.add(autohideCheckBox, CC.xy(5, 1, CC.LEFT, CC.DEFAULT)); } leftInnerPanel.add(visitsContainer, CC.xy(1, 11, CC.RIGHT, CC.DEFAULT)); //======== visitDelayContainer ======== { visitDelayContainer.setName("visitDelayContainer"); visitDelayContainer.setLayout( new FormLayout("default, $lcgap, left:28dlu, $lcgap, 72dlu", "default")); //---- label42 ---- label42.setText("Visit Delay:"); label42.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); visitDelayContainer.add(label42, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- visitDelayText ---- visitDelayText.setPreferredSize(new Dimension(50, 28)); visitDelayText.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); visitDelayText.setText("10.5"); visitDelayText.setName("visitDelay"); visitDelayContainer.add(visitDelayText, CC.xy(3, 1)); //---- autoDeleteInboxCheckBox ---- autoDeleteInboxCheckBox.setText("Auto-delete inbox"); autoDeleteInboxCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); autoDeleteInboxCheckBox.setName("autoDeleteInbox"); visitDelayContainer.add(autoDeleteInboxCheckBox, CC.xy(5, 1, CC.FILL, CC.DEFAULT)); } leftInnerPanel.add(visitDelayContainer, CC.xy(1, 13, CC.RIGHT, CC.DEFAULT)); //======== heightContainer ======== { heightContainer.setName("heightContainer"); heightContainer.setLayout(new FormLayout("default, $lcgap, 101dlu", "default")); //---- label25 ---- label25.setText("Height:"); label25.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); heightContainer.add(label25, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //======== heightPanel ======== { heightPanel.setPreferredSize(new Dimension(158, 25)); heightPanel.setName("heightPanel"); heightPanel .setLayout(new FormLayout("default, center:default, default", "default")); //---- minHeightCombo ---- minHeightCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); minHeightCombo.setPreferredSize(new Dimension(75, 28)); minHeightCombo.setModel(new DefaultComboBoxModel<>(new String[] { "5'0\"", "5'1\"", "5'2\"", "5'3\"", "5'4\"", "5'5\"", "5'6\"", "5'7\"", "5'8\"", "5'9\"", "5'10\"", "5'11\"", "6'0\"", "6'1\"", "6'2\"", "6'3\"", "6'4\"" })); minHeightCombo.setName("minimum_height"); heightPanel.add(minHeightCombo, CC.xy(1, 1)); //---- label26 ---- label26.setText("-"); heightPanel.add(label26, CC.xy(2, 1, CC.CENTER, CC.CENTER)); //---- maxHeightCombo ---- maxHeightCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); maxHeightCombo.setPreferredSize(new Dimension(75, 28)); maxHeightCombo.setModel(new DefaultComboBoxModel<>(new String[] { "6'4\"", "6'3\"", "6'2\"", "6'1\"", "6'0\"", "5'11\"", "5'10\"", "5'9\"", "5'8\"", "5'7\"", "5'6\"", "5'5\"", "5'4\"", "5'3\"", "5'2\"", "5'1\"", "5'0\"" })); maxHeightCombo.setName("maximum_height"); heightPanel.add(maxHeightCombo, CC.xy(3, 1)); } heightContainer.add(heightPanel, CC.xy(3, 1)); } leftInnerPanel.add(heightContainer, CC.xy(1, 15, CC.RIGHT, CC.DEFAULT)); //---- separator1 ---- separator1.setForeground(Color.black); leftInnerPanel.add(separator1, CC.xy(1, 16, CC.FILL, CC.DEFAULT)); //======== ethnicityContainer ======== { ethnicityContainer.setName("ethnicityContainer"); ethnicityContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); ethnicityContainer.setLayout(new FormLayout("33dlu, $lcgap, 120dlu", "default")); //---- label38 ---- label38.setText("Ethnicity:"); label38.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); ethnicityContainer.add(label38, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== ethnicitySelectionPanel ======== { ethnicitySelectionPanel.setName("ethnicitySelectionPanel"); ethnicitySelectionPanel .setLayout(new FormLayout("default, $lcgap, default", "5*(default)")); //---- whiteCheckBox ---- whiteCheckBox.setText("White"); whiteCheckBox.setName("white"); whiteCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); ethnicitySelectionPanel.add(whiteCheckBox, CC.xy(1, 1)); //---- asianCheckBox ---- asianCheckBox.setText("Asian"); asianCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); asianCheckBox.setName("asian"); ethnicitySelectionPanel.add(asianCheckBox, CC.xy(3, 1)); //---- blackCheckBox ---- blackCheckBox.setText("Black"); blackCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); blackCheckBox.setName("black"); ethnicitySelectionPanel.add(blackCheckBox, CC.xy(1, 2)); //---- hispanicCheckBox ---- hispanicCheckBox.setText("Hispanic"); hispanicCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); hispanicCheckBox.setName("hispanic_latin"); ethnicitySelectionPanel.add(hispanicCheckBox, CC.xy(3, 2)); //---- indianCheckBox ---- indianCheckBox.setText("Indian"); indianCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); indianCheckBox.setName("indian"); ethnicitySelectionPanel.add(indianCheckBox, CC.xy(1, 3)); //---- middleEasternCheckBox ---- middleEasternCheckBox.setText("Middle-Eastern"); middleEasternCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); middleEasternCheckBox.setName("middle_eastern"); ethnicitySelectionPanel.add(middleEasternCheckBox, CC.xy(3, 3)); //---- nativeAmericanCheckBox ---- nativeAmericanCheckBox.setText("Native American"); nativeAmericanCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); nativeAmericanCheckBox.setName("native_american"); ethnicitySelectionPanel.add(nativeAmericanCheckBox, CC.xy(1, 4)); //---- pacificIslanderCheckBox ---- pacificIslanderCheckBox.setText("Pacific Islander"); pacificIslanderCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); pacificIslanderCheckBox.setName("pacific_islander"); ethnicitySelectionPanel.add(pacificIslanderCheckBox, CC.xy(3, 4)); //---- otherEthnicityCheckBox ---- otherEthnicityCheckBox.setText("Other"); otherEthnicityCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); otherEthnicityCheckBox.setName("other_ethnicity"); ethnicitySelectionPanel.add(otherEthnicityCheckBox, CC.xy(1, 5)); } ethnicityContainer.add(ethnicitySelectionPanel, CC.xy(3, 1)); } leftInnerPanel.add(ethnicityContainer, CC.xy(1, 17)); //======== bodyTypeContainer ======== { bodyTypeContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); bodyTypeContainer.setName("bodyTypeContainer"); bodyTypeContainer .setLayout(new FormLayout("48dlu, $lcgap, left:105dlu", "default:grow")); //---- label36 ---- label36.setText("Body Type:"); label36.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); bodyTypeContainer.add(label36, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== bodyTypeSelectionPanel ======== { bodyTypeSelectionPanel.setName("bodyTypeSelectionPanel"); bodyTypeSelectionPanel.setLayout(new FormLayout("54dlu:grow, $lcgap, default", "3*(default, $lgap), default")); //---- thinCheckbox ---- thinCheckbox.setText("Thin"); thinCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); thinCheckbox.setName("thin"); bodyTypeSelectionPanel.add(thinCheckbox, CC.xy(1, 1)); //---- fitCheckbox ---- fitCheckbox.setText("Fit"); fitCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); fitCheckbox.setName("fit"); bodyTypeSelectionPanel.add(fitCheckbox, CC.xy(3, 1)); //---- averageBodyCheckbox ---- averageBodyCheckbox.setText("Average"); averageBodyCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); averageBodyCheckbox.setPreferredSize(new Dimension(72, 20)); averageBodyCheckbox.setName("averageBody"); bodyTypeSelectionPanel.add(averageBodyCheckbox, CC.xy(1, 3)); //---- curvyCheckbox ---- curvyCheckbox.setText("Curvy"); curvyCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); curvyCheckbox.setName("curvy"); bodyTypeSelectionPanel.add(curvyCheckbox, CC.xy(3, 3)); //---- jackedCheckbox ---- jackedCheckbox.setText("Jacked"); jackedCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); jackedCheckbox.setName("jacked"); bodyTypeSelectionPanel.add(jackedCheckbox, CC.xy(1, 5)); //---- fullFiguredCheckbox ---- fullFiguredCheckbox.setText("Full figured"); fullFiguredCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); fullFiguredCheckbox.setName("fullFigured"); bodyTypeSelectionPanel.add(fullFiguredCheckbox, CC.xy(3, 5)); //---- aLittleExtraCheckbox ---- aLittleExtraCheckbox.setText("A little extra"); aLittleExtraCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); aLittleExtraCheckbox.setName("aLittleExtra"); bodyTypeSelectionPanel.add(aLittleExtraCheckbox, CC.xy(1, 7)); //---- overweightCheckbox ---- overweightCheckbox.setText("Overweight"); overweightCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); overweightCheckbox.setName("overweight"); bodyTypeSelectionPanel.add(overweightCheckbox, CC.xy(3, 7)); } bodyTypeContainer.add(bodyTypeSelectionPanel, CC.xy(3, 1)); } leftInnerPanel.add(bodyTypeContainer, CC.xy(1, 19)); //======== attractivenessContainer ======== { attractivenessContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); attractivenessContainer.setName("attractivenessContainer"); attractivenessContainer .setLayout(new FormLayout("right:48dlu, $lcgap, 105dlu", "default")); //---- label35 ---- label35.setText("Attractiveness:"); label35.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); attractivenessContainer.add(label35, new CellConstraints(1, 1, 1, 1, CC.LEFT, CC.TOP, new Insets(5, 5, 0, 0))); //======== attractivenessSelectionPanel ======== { attractivenessSelectionPanel.setName("attractivenessSelectionPanel"); attractivenessSelectionPanel .setLayout(new FormLayout("default, 67dlu", "default, $lgap, default")); //---- averageAttractivenessCheckbox ---- averageAttractivenessCheckbox.setText("Average"); averageAttractivenessCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); averageAttractivenessCheckbox.setName("averageAttractiveness"); attractivenessSelectionPanel.add(averageAttractivenessCheckbox, CC.xy(1, 1)); //---- aboveAverageCheckbox ---- aboveAverageCheckbox.setText("Above Average"); aboveAverageCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); aboveAverageCheckbox.setName("aboveAverage"); attractivenessSelectionPanel.add(aboveAverageCheckbox, CC.xy(2, 1)); //---- hotCheckbox ---- hotCheckbox.setText("Hot"); hotCheckbox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); hotCheckbox.setName("hot"); attractivenessSelectionPanel.add(hotCheckbox, CC.xy(1, 3)); } attractivenessContainer.add(attractivenessSelectionPanel, CC.xy(3, 1, CC.RIGHT, CC.DEFAULT)); } leftInnerPanel.add(attractivenessContainer, CC.xy(1, 21)); //======== religionContainer ======== { religionContainer.setName("religionContainer"); religionContainer.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); religionContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); religionContainer.setLayout(new FormLayout("48dlu, $lcgap, 105dlu", "default")); //---- label24 ---- label24.setText("Religion:"); label24.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); religionContainer.add(label24, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== religionSelectionPanel ======== { religionSelectionPanel.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); religionSelectionPanel.setLayout( new FormLayout("default, $lcgap, default", "4*(default, $lgap), default")); //---- agnosticismCheckBox ---- agnosticismCheckBox.setText("Agnosticism"); agnosticismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); agnosticismCheckBox.setName("agnosticism"); religionSelectionPanel.add(agnosticismCheckBox, CC.xy(1, 1)); //---- atheismCheckBox ---- atheismCheckBox.setText("Atheism"); atheismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); atheismCheckBox.setName("atheism"); religionSelectionPanel.add(atheismCheckBox, CC.xy(3, 1)); //---- buddhismCheckBox ---- buddhismCheckBox.setText("Buddhism"); buddhismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); buddhismCheckBox.setName("buddhism"); religionSelectionPanel.add(buddhismCheckBox, CC.xy(1, 3)); //---- catholicismCheckBox ---- catholicismCheckBox.setText("Catholicism"); catholicismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); catholicismCheckBox.setName("catholicism"); religionSelectionPanel.add(catholicismCheckBox, CC.xy(3, 3)); //---- christianityCheckBox ---- christianityCheckBox.setText("Christianity"); christianityCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); christianityCheckBox.setName("christianity"); religionSelectionPanel.add(christianityCheckBox, CC.xy(1, 5)); //---- hinduismCheckBox ---- hinduismCheckBox.setText("Hinduism"); hinduismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); hinduismCheckBox.setName("hinduism"); religionSelectionPanel.add(hinduismCheckBox, CC.xy(3, 5)); //---- judaismCheckBox ---- judaismCheckBox.setText("Judaism"); judaismCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); judaismCheckBox.setName("judaism"); religionSelectionPanel.add(judaismCheckBox, CC.xy(1, 7)); //---- islamCheckBox ---- islamCheckBox.setText("Islam"); islamCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); islamCheckBox.setName("islam"); religionSelectionPanel.add(islamCheckBox, CC.xy(3, 7)); //---- otherReligionCheckBox ---- otherReligionCheckBox.setText("Other"); otherReligionCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); otherReligionCheckBox.setName("other_religion"); religionSelectionPanel.add(otherReligionCheckBox, CC.xy(1, 9)); } religionContainer.add(religionSelectionPanel, CC.xy(3, 1)); } leftInnerPanel.add(religionContainer, CC.xy(1, 23)); //======== childrenContainer ======== { childrenContainer.setName("childrenContainer"); childrenContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); childrenContainer.setVisible(false); childrenContainer.setLayout(new FormLayout("48dlu, $lcgap, 105dlu", "default")); //---- label32 ---- label32.setText("Children:"); label32.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); childrenContainer.add(label32, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== mainChildrenPanel ======== { mainChildrenPanel.setName("mainChildrenPanel"); mainChildrenPanel.setLayout(new FormLayout("default", "default, 5dlu, default")); //======== subChildrenPanel1 ======== { subChildrenPanel1.setName("subChildrenPanel1"); subChildrenPanel1.setLayout( new FormLayout("50dlu, $lcgap, default", "default, $lgap, default")); //---- wantsCheckBox ---- wantsCheckBox.setText("Wants kids"); wantsCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); wantsCheckBox.setName("wants_kids"); subChildrenPanel1.add(wantsCheckBox, CC.xy(1, 1)); //---- mightWantCheckBox ---- mightWantCheckBox.setText("Might want"); mightWantCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); mightWantCheckBox.setName("might_want"); subChildrenPanel1.add(mightWantCheckBox, CC.xy(3, 1)); //---- doesntWantCheckBox ---- doesntWantCheckBox.setText("Doesn't want"); doesntWantCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); doesntWantCheckBox.setName("doesnt_want"); subChildrenPanel1.add(doesntWantCheckBox, CC.xy(1, 3, CC.LEFT, CC.DEFAULT)); } mainChildrenPanel.add(subChildrenPanel1, CC.xy(1, 1)); //---- separator3 ---- separator3.setForeground(Color.black); mainChildrenPanel.add(separator3, CC.xy(1, 2)); //======== subChildrenPanel2 ======== { subChildrenPanel2.setName("subChildrenPanel2"); subChildrenPanel2 .setLayout(new FormLayout("41dlu, $lcgap, default", "default")); //---- hasKidsCheckBox ---- hasKidsCheckBox.setText("Has kids"); hasKidsCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); hasKidsCheckBox.setName("has_kids"); hasKidsCheckBox.setBorderPaintedFlat(true); hasKidsCheckBox.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); subChildrenPanel2.add(hasKidsCheckBox, CC.xy(1, 1, CC.LEFT, CC.DEFAULT)); //---- doesnthaveCheckBox ---- doesnthaveCheckBox.setText("Doesn't have"); doesnthaveCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); doesnthaveCheckBox.setName("doesnt_have"); doesnthaveCheckBox.setBorderPaintedFlat(true); doesnthaveCheckBox.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); subChildrenPanel2.add(doesnthaveCheckBox, CC.xy(3, 1)); } mainChildrenPanel.add(subChildrenPanel2, CC.xy(1, 3)); } childrenContainer.add(mainChildrenPanel, CC.xy(3, 1)); } leftInnerPanel.add(childrenContainer, CC.xy(1, 25)); } leftPanel.add(leftInnerPanel, CC.xy(1, 1, CC.LEFT, CC.TOP)); } panel1.add(leftPanel, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(10, 10, 0, 0))); //======== rightPanel ======== { rightPanel.setPreferredSize(new Dimension(344, 1000)); rightPanel.setLayout(new FormLayout("165dlu", "164dlu, 8dlu, 35dlu, 4*($lgap, default)")); //======== advancedFiltersPanel ======== { advancedFiltersPanel.setPreferredSize(new Dimension(344, 432)); advancedFiltersPanel.setMinimumSize(new Dimension(314, 390)); advancedFiltersPanel.setName("advancedFiltersPanel"); advancedFiltersPanel.setVisible(false); advancedFiltersPanel.setLayout(new FormLayout( "default, $lcgap, left:default, $lcgap, left:55dlu", "13*(pref, $lgap), pref")); //---- label8 ---- label8.setText("Personality"); advancedFiltersPanel.add(label8, CC.xy(1, 1, CC.LEFT, CC.DEFAULT)); //---- label9 ---- label9.setText("Degree"); advancedFiltersPanel.add(label9, new CellConstraints(3, 1, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0))); //---- label10 ---- label10.setText("Importance"); advancedFiltersPanel.add(label10, new CellConstraints(5, 1, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0))); //---- label11 ---- label11.setText("Agressiveness"); label11.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label11, CC.xy(1, 3)); //---- aggressivenessDegCombo ---- aggressivenessDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); aggressivenessDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); aggressivenessDegCombo.setPreferredSize(new Dimension(90, 22)); aggressivenessDegCombo.setName("aggressivenessDeg"); advancedFiltersPanel.add(aggressivenessDegCombo, CC.xy(3, 3)); //---- aggressivenessImpCombo ---- aggressivenessImpCombo .setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); aggressivenessImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); aggressivenessImpCombo.setPreferredSize(new Dimension(90, 22)); aggressivenessImpCombo.setName("aggressivenessImp"); advancedFiltersPanel.add(aggressivenessImpCombo, CC.xy(5, 3)); //---- label12 ---- label12.setText("Athleticisim"); label12.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label12, CC.xy(1, 5)); //---- athleticismDegCombo ---- athleticismDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); athleticismDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); athleticismDegCombo.setPreferredSize(new Dimension(90, 22)); athleticismDegCombo.setName("athleticismDeg"); advancedFiltersPanel.add(athleticismDegCombo, CC.xy(3, 5)); //---- athleticismImpCombo ---- athleticismImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); athleticismImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); athleticismImpCombo.setPreferredSize(new Dimension(90, 22)); athleticismImpCombo.setName("athleticismImp"); advancedFiltersPanel.add(athleticismImpCombo, CC.xy(5, 5)); //---- label13 ---- label13.setText("Cockiness"); label13.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label13, CC.xy(1, 7)); //---- cockinessDegCombo ---- cockinessDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); cockinessDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); cockinessDegCombo.setPreferredSize(new Dimension(90, 22)); cockinessDegCombo.setName("cockinessDeg"); advancedFiltersPanel.add(cockinessDegCombo, CC.xy(3, 7)); //---- cockinessImpCombo ---- cockinessImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); cockinessImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); cockinessImpCombo.setPreferredSize(new Dimension(90, 22)); cockinessImpCombo.setName("cockinessImp"); advancedFiltersPanel.add(cockinessImpCombo, CC.xy(5, 7)); //---- label14 ---- label14.setText("Dorkiness"); label14.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label14, CC.xy(1, 9)); //---- dorkinessDegCombo ---- dorkinessDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); dorkinessDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); dorkinessDegCombo.setPreferredSize(new Dimension(90, 22)); dorkinessDegCombo.setName("dorkinessDeg"); advancedFiltersPanel.add(dorkinessDegCombo, CC.xy(3, 9)); //---- dorkinessImpCombo ---- dorkinessImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); dorkinessImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); dorkinessImpCombo.setPreferredSize(new Dimension(90, 22)); dorkinessImpCombo.setName("dorkinessImp"); advancedFiltersPanel.add(dorkinessImpCombo, CC.xy(5, 9)); //---- label15 ---- label15.setText("Independence"); label15.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label15, CC.xy(1, 11)); //---- independenceDegCombo ---- independenceDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); independenceDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); independenceDegCombo.setPreferredSize(new Dimension(90, 22)); independenceDegCombo.setName("independenceDeg"); advancedFiltersPanel.add(independenceDegCombo, CC.xy(3, 11)); //---- independenceImpCombo ---- independenceImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); independenceImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); independenceImpCombo.setPreferredSize(new Dimension(90, 22)); independenceImpCombo.setName("independenceImp"); advancedFiltersPanel.add(independenceImpCombo, CC.xy(5, 11)); //---- label16 ---- label16.setText("Indie"); label16.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label16, CC.xy(1, 13)); //---- indieDegCombo ---- indieDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); indieDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); indieDegCombo.setPreferredSize(new Dimension(90, 22)); indieDegCombo.setName("indieDeg"); advancedFiltersPanel.add(indieDegCombo, CC.xy(3, 13)); //---- indieImpCombo ---- indieImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); indieImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); indieImpCombo.setPreferredSize(new Dimension(90, 22)); indieImpCombo.setName("indieImp"); advancedFiltersPanel.add(indieImpCombo, CC.xy(5, 13)); //---- label17 ---- label17.setText("Introversion"); label17.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label17, CC.xy(1, 15)); //---- introversionDegCombo ---- introversionDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); introversionDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); introversionDegCombo.setPreferredSize(new Dimension(90, 22)); introversionDegCombo.setName("introversionDeg"); advancedFiltersPanel.add(introversionDegCombo, CC.xy(3, 15)); //---- introversionImpCombo ---- introversionImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); introversionImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); introversionImpCombo.setPreferredSize(new Dimension(90, 22)); introversionImpCombo.setName("introversionImp"); advancedFiltersPanel.add(introversionImpCombo, CC.xy(5, 15)); //---- label18 ---- label18.setText("Old Fashionedness"); label18.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label18, CC.xy(1, 17)); //---- oldFashinednessDegCombo ---- oldFashinednessDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); oldFashinednessDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); oldFashinednessDegCombo.setPreferredSize(new Dimension(90, 22)); oldFashinednessDegCombo.setName("oldFashinednessDeg"); advancedFiltersPanel.add(oldFashinednessDegCombo, CC.xy(3, 17)); //---- oldFashinednessImpCombo ---- oldFashinednessImpCombo .setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); oldFashinednessImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); oldFashinednessImpCombo.setPreferredSize(new Dimension(90, 22)); oldFashinednessImpCombo.setName("oldFashinednessImp"); advancedFiltersPanel.add(oldFashinednessImpCombo, CC.xy(5, 17)); //---- label19 ---- label19.setText("Planning"); label19.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label19, CC.xy(1, 19)); //---- planningDegCombo ---- planningDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); planningDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); planningDegCombo.setPreferredSize(new Dimension(90, 22)); planningDegCombo.setName("planningDeg"); advancedFiltersPanel.add(planningDegCombo, CC.xy(3, 19)); //---- planningImpCombo ---- planningImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); planningImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); planningImpCombo.setPreferredSize(new Dimension(90, 22)); planningImpCombo.setName("planningImp"); advancedFiltersPanel.add(planningImpCombo, CC.xy(5, 19)); //---- label20 ---- label20.setText("Political"); label20.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label20, CC.xy(1, 21)); //---- politicalDegCombo ---- politicalDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); politicalDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); politicalDegCombo.setPreferredSize(new Dimension(90, 22)); politicalDegCombo.setName("politicalDeg"); advancedFiltersPanel.add(politicalDegCombo, CC.xy(3, 21)); //---- politicalImpCombo ---- politicalImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); politicalImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); politicalImpCombo.setPreferredSize(new Dimension(90, 22)); politicalImpCombo.setName("politicalImp"); advancedFiltersPanel.add(politicalImpCombo, CC.xy(5, 21)); //---- label21 ---- label21.setText("Sexual Experience"); label21.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label21, CC.xy(1, 23)); //---- sexualExperienceDegCombo ---- sexualExperienceDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); sexualExperienceDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); sexualExperienceDegCombo.setPreferredSize(new Dimension(90, 22)); sexualExperienceDegCombo.setName("sexualExperienceDeg"); advancedFiltersPanel.add(sexualExperienceDegCombo, CC.xy(3, 23)); //---- sexualExperienceImpCombo ---- sexualExperienceImpCombo .setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); sexualExperienceImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); sexualExperienceImpCombo.setPreferredSize(new Dimension(90, 22)); sexualExperienceImpCombo.setName("sexualExperienceImp"); advancedFiltersPanel.add(sexualExperienceImpCombo, CC.xy(5, 23)); //---- label22 ---- label22.setText("Socially Free"); label22.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label22, CC.xy(1, 25)); //---- sociallyFreeDegCombo ---- sociallyFreeDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); sociallyFreeDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); sociallyFreeDegCombo.setPreferredSize(new Dimension(90, 22)); sociallyFreeDegCombo.setName("sociallyFreeDeg"); advancedFiltersPanel.add(sociallyFreeDegCombo, CC.xy(3, 25)); //---- sociallyFreeImpCombo ---- sociallyFreeImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); sociallyFreeImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); sociallyFreeImpCombo.setPreferredSize(new Dimension(90, 22)); sociallyFreeImpCombo.setName("sociallyFreeImp"); advancedFiltersPanel.add(sociallyFreeImpCombo, CC.xy(5, 25)); //---- label23 ---- label23.setText("Spirituality"); label23.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); advancedFiltersPanel.add(label23, CC.xy(1, 27)); //---- spiritualityDegCombo ---- spiritualityDegCombo.setModel( new DefaultComboBoxModel<>(new String[] { "0", "2500", "5000", "7500", "10000" })); spiritualityDegCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); spiritualityDegCombo.setPreferredSize(new Dimension(90, 22)); spiritualityDegCombo.setName("spiritualityDeg"); advancedFiltersPanel.add(spiritualityDegCombo, CC.xy(3, 27)); //---- spiritualityImpCombo ---- spiritualityImpCombo.setModel(new DefaultComboBoxModel<>(new String[] { "0", "5", "10" })); spiritualityImpCombo.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); spiritualityImpCombo.setPreferredSize(new Dimension(90, 22)); spiritualityImpCombo.setName("spiritualityImp"); advancedFiltersPanel.add(spiritualityImpCombo, CC.xy(5, 27)); } rightPanel.add(advancedFiltersPanel, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.DEFAULT, new Insets(10, 0, 0, 0))); //======== educationContainer ======== { educationContainer.setName("educationContainer"); educationContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); educationContainer.setLayout(new FormLayout("37dlu, $lcgap, 101dlu:grow", "default")); //---- label33 ---- label33.setText("Education:"); label33.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); educationContainer.add(label33, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== educationSelectionPanel ======== { educationSelectionPanel.setName("educationSelectionPanel"); educationSelectionPanel.setLayout( new FormLayout("default, $lcgap, default", "default, $lgap, default")); //---- highschoolCheckBox ---- highschoolCheckBox.setText("High school"); highschoolCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); highschoolCheckBox.setName("high_school"); educationSelectionPanel.add(highschoolCheckBox, CC.xy(1, 1)); //---- twoyearCollegeCheckBox ---- twoyearCollegeCheckBox.setText("2-year college"); twoyearCollegeCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); twoyearCollegeCheckBox.setName("two_year_college"); educationSelectionPanel.add(twoyearCollegeCheckBox, CC.xy(3, 1)); //---- universityCheckBox ---- universityCheckBox.setText("University"); universityCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); universityCheckBox.setName("college_university"); educationSelectionPanel.add(universityCheckBox, CC.xy(1, 3)); //---- postGradCheckBox ---- postGradCheckBox.setText("Post grad"); postGradCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); postGradCheckBox.setName("post_grad"); educationSelectionPanel.add(postGradCheckBox, CC.xy(3, 3)); } educationContainer.add(educationSelectionPanel, CC.xy(3, 1)); } rightPanel.add(educationContainer, CC.xy(1, 3)); //======== smokesContainer ======== { smokesContainer.setName("smokesContainer"); smokesContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); smokesContainer.setLayout(new FormLayout("35dlu, $lcgap, 104dlu", "default")); //---- label27 ---- label27.setText("Smokes:"); label27.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); smokesContainer.add(label27, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== smokesSelectionPanel ======== { smokesSelectionPanel.setName("smokesSelectionPanel"); smokesSelectionPanel.setLayout( new FormLayout("default, $lcgap, default", "2*(default, $lgap), default")); //---- yesCheckBox ---- yesCheckBox.setText("Yes"); yesCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); yesCheckBox.setName("yes"); smokesSelectionPanel.add(yesCheckBox, CC.xy(1, 1)); //---- noCheckBox ---- noCheckBox.setText("No"); noCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); noCheckBox.setName("no"); smokesSelectionPanel.add(noCheckBox, CC.xy(3, 1)); //---- whenDrinkingCheckBox ---- whenDrinkingCheckBox.setText("When drinking"); whenDrinkingCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); whenDrinkingCheckBox.setName("when_drinking"); smokesSelectionPanel.add(whenDrinkingCheckBox, CC.xy(1, 3)); //---- sometimesSmokesCheckBox ---- sometimesSmokesCheckBox.setText("Sometimes"); sometimesSmokesCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); sometimesSmokesCheckBox.setName("sometimes_smokes"); smokesSelectionPanel.add(sometimesSmokesCheckBox, CC.xy(3, 3)); //---- tryingToQuitCheckBox ---- tryingToQuitCheckBox.setText("Trying to quit"); tryingToQuitCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); tryingToQuitCheckBox.setName("trying_to_quit"); smokesSelectionPanel.add(tryingToQuitCheckBox, CC.xy(1, 5)); } smokesContainer.add(smokesSelectionPanel, CC.xy(3, 1)); } rightPanel.add(smokesContainer, CC.xy(1, 5)); //======== drinksContainer ======== { drinksContainer.setName("drinksContainer"); drinksContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); drinksContainer.setVisible(false); drinksContainer.setLayout(new FormLayout("35dlu, $lcgap, 101dlu", "default")); //---- label28 ---- label28.setText("Drinks:"); label28.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); drinksContainer.add(label28, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== drinksSelectionPanel ======== { drinksSelectionPanel.setName("drinksSelectionPanel"); drinksSelectionPanel.setLayout( new FormLayout("default, $lcgap, default", "2*(default, $lgap), default")); //---- sociallyCheckBox ---- sociallyCheckBox.setText("Socially"); sociallyCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); sociallyCheckBox.setName("socially"); drinksSelectionPanel.add(sociallyCheckBox, CC.xy(1, 1)); //---- oftenDrinksCheckBox ---- oftenDrinksCheckBox.setText("Often"); oftenDrinksCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); oftenDrinksCheckBox.setName("often_drinks"); drinksSelectionPanel.add(oftenDrinksCheckBox, CC.xy(3, 1)); //---- rarelyCheckBox ---- rarelyCheckBox.setText("Rarely"); rarelyCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); rarelyCheckBox.setName("rarely"); drinksSelectionPanel.add(rarelyCheckBox, CC.xy(1, 3)); //---- notAtAllCheckBox ---- notAtAllCheckBox.setText("Not at all"); notAtAllCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); notAtAllCheckBox.setName("not_at_all"); drinksSelectionPanel.add(notAtAllCheckBox, CC.xy(3, 3)); //---- desperatelyCheckBox ---- desperatelyCheckBox.setText("Desperately"); desperatelyCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); desperatelyCheckBox.setName("desperately"); drinksSelectionPanel.add(desperatelyCheckBox, CC.xy(1, 5)); //---- veryOftenCheckBox ---- veryOftenCheckBox.setText("Very often"); veryOftenCheckBox.setName("very_often"); veryOftenCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); drinksSelectionPanel.add(veryOftenCheckBox, CC.xy(3, 5)); } drinksContainer.add(drinksSelectionPanel, CC.xy(3, 1)); } rightPanel.add(drinksContainer, CC.xy(1, 7)); //======== drugsContainer ======== { drugsContainer.setName("drugsContainer"); drugsContainer.setBorder(new MatteBorder(1, 1, 1, 1, Color.black)); drugsContainer.setVisible(false); drugsContainer.setLayout(new FormLayout("34dlu, $lcgap, 101dlu", "default")); //---- label29 ---- label29.setText("Drugs:"); label29.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); drugsContainer.add(label29, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0))); //======== drugsSelectionPanel ======== { drugsSelectionPanel.setName("drugsSelectionPanel"); drugsSelectionPanel .setLayout(new FormLayout("default, $lcgap, default", "2*(default)")); //---- everCheckBox ---- everCheckBox.setText("Never"); everCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); everCheckBox.setName("never"); drugsSelectionPanel.add(everCheckBox, CC.xy(1, 1)); //---- sometimesDrugsCheckBox ---- sometimesDrugsCheckBox.setText("Sometimes"); sometimesDrugsCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); sometimesDrugsCheckBox.setName("sometimes_drugs"); drugsSelectionPanel.add(sometimesDrugsCheckBox, CC.xy(3, 1)); //---- oftenDrugsCheckBox ---- oftenDrugsCheckBox.setText("Often"); oftenDrugsCheckBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); oftenDrugsCheckBox.setName("often_drugs"); drugsSelectionPanel.add(oftenDrugsCheckBox, CC.xy(1, 2)); } drugsContainer.add(drugsSelectionPanel, CC.xy(3, 1)); } rightPanel.add(drugsContainer, CC.xy(1, 11)); } panel1.add(rightPanel, CC.xy(2, 1)); //======== buttonPanel ======== { buttonPanel.setLayout(new FormLayout("2*(default, $lcgap), 39dlu", "default")); //---- closeButton ---- closeButton.setText("Close"); closeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { closeButtonActionPerformed(e); } }); buttonPanel.add(closeButton, CC.xy(1, 1)); //---- resetButton ---- resetButton.setText("Reset"); resetButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { resetButtonActionPerformed(e); } }); buttonPanel.add(resetButton, CC.xy(3, 1)); //---- applyButton ---- applyButton.setText("Apply"); applyButton.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); applyButton.setPreferredSize(new Dimension(70, 25)); applyButton.setEnabled(false); applyButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { applyButtonActionPerformed(e); } }); buttonPanel.add(applyButton, CC.xy(5, 1, CC.LEFT, CC.DEFAULT)); } panel1.add(buttonPanel, new CellConstraints(1, 3, 1, 1, CC.FILL, CC.DEFAULT, new Insets(0, 10, 0, 0))); } scrollPane1.setViewportView(panel1); } contentPane.add(scrollPane1, CC.xy(1, 1)); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:LoginMenu.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Jurko Guba dialogPane = new JPanel(); contentPanel = new JPanel(); label1 = new JLabel(); label2 = new JLabel(); label3 = new JLabel(); textField1 = new JTextField(); label5 = new JLabel(); textField3 = new JTextField(); label6 = new JLabel(); textField4 = new JTextField(); buttonBar = new JPanel(); label7 = new JLabel(); okButton = new JButton(); //======== this ======== setVisible(true);//from www .j av a 2 s . com Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.createEmptyBorder("7dlu, 7dlu, 7dlu, 7dlu")); // JFormDesigner evaluation mark dialogPane.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), dialogPane.getBorder())); dialogPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new FormLayout("default, $lcgap, 137dlu", "6*(default, $lgap), default")); //---- label1 ---- label1.setText("Simple TCP/IP Chat v2.0"); label1.setFont(label1.getFont().deriveFont(label1.getFont().getStyle() | Font.BOLD, label1.getFont().getSize() + 8f)); contentPanel.add(label1, CC.xywh(1, 1, 3, 1)); //---- label2 ---- label2.setText("Source code: http://github.com/jurkoguba"); contentPanel.add(label2, CC.xywh(1, 3, 3, 1)); //---- label3 ---- label3.setText("Username: "); contentPanel.add(label3, CC.xy(1, 7)); //---- textField1 ---- textField1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { usernameActionPerformed(e); } }); contentPanel.add(textField1, CC.xy(3, 7)); //---- label5 ---- label5.setText("IP Address:"); contentPanel.add(label5, CC.xy(1, 11)); //---- textField3 ---- textField3.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { addressActionPerformed(e); } }); contentPanel.add(textField3, CC.xy(3, 11)); //---- label6 ---- label6.setText("Port:"); contentPanel.add(label6, CC.xy(1, 13)); //---- textField4 ---- textField4.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { portActionPerformed(e); } }); contentPanel.add(textField4, CC.xy(3, 13)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.createEmptyBorder("5dlu, 0dlu, 0dlu, 0dlu")); buttonBar.setLayout(new FormLayout( "4*($lcgap, default), $glue, $button, $rgap, $button, 3*($lcgap, default)", "pref")); //---- label7 ---- label7.setText("Status code: 0"); buttonBar.add(label7, CC.xy(2, 1)); //---- okButton ---- okButton.setText("Login"); okButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { loginButtonActionPerformed(e); } }); buttonBar.add(okButton, CC.xywh(11, 1, 8, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:ConnectDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown ResourceBundle bundle = ResourceBundle.getBundle("ConnectDialog"); dialogPane = new JPanel(); JPanel contentPanel = new JPanel(); JLabel labelHostName = new JLabel(); fieldHostName = new JTextField(); JLabel labelPortNumber = new JLabel(); fieldPort = new JTextField(); checkAuthentification = new JCheckBox(); labelLoginName = new JLabel(); fieldUserName = new JTextField(); labelPassword = new JLabel(); fieldPassword = new JPasswordField(); checkStorePassword = new JCheckBox(); labelWarning = new JLabel(); JXButtonPanel buttonBar = new JXButtonPanel(); btnOk = new JButton(); btnCancel = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle(bundle.getString("this.title")); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {// ww w . j a v a 2 s . com dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); //---- labelHostName ---- labelHostName.setText(bundle.getString("labelHostName.text")); labelHostName.setLabelFor(fieldHostName); contentPanel.add(labelHostName, cc.xy(1, 1)); //---- fieldHostName ---- fieldHostName.setColumns(8); contentPanel.add(fieldHostName, cc.xy(3, 1)); //---- labelPortNumber ---- labelPortNumber.setText(bundle.getString("labelPortNumber.text")); labelPortNumber.setLabelFor(fieldPort); contentPanel.add(labelPortNumber, cc.xy(5, 1)); //---- fieldPort ---- fieldPort.setColumns(6); contentPanel.add(fieldPort, cc.xy(7, 1)); //---- checkAuthentification ---- checkAuthentification.setText(bundle.getString("checkAuthentification.text")); contentPanel.add(checkAuthentification, new CellConstraints(1, 3, 3, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 7, 0, 0))); //---- labelLoginName ---- labelLoginName.setText(bundle.getString("labelLoginName.text")); labelLoginName.setLabelFor(fieldUserName); contentPanel.add(labelLoginName, cc.xy(1, 5)); contentPanel.add(fieldUserName, cc.xy(3, 5)); //---- labelPassword ---- labelPassword.setText(bundle.getString("labelPassword.text")); labelPassword.setLabelFor(fieldPassword); contentPanel.add(labelPassword, cc.xy(1, 7)); contentPanel.add(fieldPassword, cc.xy(3, 7)); //---- checkStorePassword ---- checkStorePassword.setText(bundle.getString("checkStorePassword.text")); contentPanel.add(checkStorePassword, cc.xywh(5, 7, 3, 1)); //---- labelWarning ---- labelWarning.setText(bundle.getString("labelWarning.text")); labelWarning.setForeground(Color.red); contentPanel.add(labelWarning, cc.xywh(1, 9, 7, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 2, 4 } }); //---- btnOk ---- btnOk.setText(bundle.getString("btnOk.text")); buttonBar.add(btnOk, cc.xy(2, 1)); //---- btnCancel ---- btnCancel.setText(bundle.getString("btnCancel.text")); buttonBar.add(btnCancel, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:FabricPanel.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - David Ing DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); separator1 = compFactory.createSeparator("HeatMap"); cbHeatMap = new JCheckBox(); separator2 = compFactory.createSeparator("TouchPad"); cbTouchPad = new JCheckBox(); hSpacer1 = new JPanel(null); hSpacer2 = new JPanel(null); cbInterpolate = new JCheckBox(); vSpacer1 = new JPanel(null); rbTPFull = new JRadioButton(); rbTPRel = new JRadioButton(); label1 = compFactory.createLabel("Click Threshold:"); clickThreshold = new JSlider(); vSpacer2 = new JPanel(null); vSpacer3 = new JPanel(null); separator3 = compFactory.createSeparator("Music Application"); cbMusic = new JCheckBox(); cbHeatColor = new JCheckBox(); rbMDisc = new JRadioButton(); rbMCont = new JRadioButton(); label3 = compFactory.createLabel("Play Threshold:"); playThreshold = new JSlider(); label2 = compFactory.createLabel("Instrument:"); comboBox1 = new JComboBox(); vSpacer4 = new JPanel(null); //======== this ======== // JFormDesigner evaluation mark setBorder(/*from w w w . jav a 2s. c om*/ new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); setLayout(new FormLayout("7*(default, $lcgap), default", "21*(default, $lgap), default")); add(separator1, CC.xywh(3, 1, 7, 1, CC.FILL, CC.DEFAULT)); //---- cbHeatMap ---- cbHeatMap.setText("Enabled"); add(cbHeatMap, CC.xy(3, 3)); add(separator2, CC.xywh(3, 7, 7, 1)); //---- cbTouchPad ---- cbTouchPad.setText("Enabled"); add(cbTouchPad, CC.xy(3, 9)); add(hSpacer1, CC.xywh(1, 1, 1, 33)); add(hSpacer2, CC.xywh(11, 1, 1, 33)); //---- cbInterpolate ---- cbInterpolate.setText("Use Interpolation"); add(cbInterpolate, CC.xy(7, 3)); add(vSpacer1, CC.xywh(3, 5, 13, 2)); //---- rbTPFull ---- rbTPFull.setText("Full Screen"); add(rbTPFull, CC.xy(3, 11)); //---- rbTPRel ---- rbTPRel.setText("Relative"); add(rbTPRel, CC.xy(7, 11)); add(label1, CC.xy(3, 13)); add(clickThreshold, CC.xywh(5, 13, 4, 1, CC.FILL, CC.DEFAULT)); add(vSpacer2, CC.xywh(3, 14, 13, 5)); add(vSpacer3, CC.xywh(3, 17, 13, 2)); add(separator3, CC.xywh(3, 19, 7, 1)); //---- cbMusic ---- cbMusic.setText("Enabled"); cbMusic.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { cbMusicStateChanged(e); } }); add(cbMusic, CC.xy(3, 21)); //---- cbHeatColor ---- cbHeatColor.setText("Modify HeatMap Color"); add(cbHeatColor, CC.xy(7, 21)); //---- rbMDisc ---- rbMDisc.setText("Discrete"); add(rbMDisc, CC.xy(3, 23)); //---- rbMCont ---- rbMCont.setText("Continuous"); add(rbMCont, CC.xy(7, 23)); add(label3, CC.xy(3, 25)); add(playThreshold, CC.xywh(5, 25, 4, 1)); add(label2, CC.xy(3, 27)); add(comboBox1, CC.xy(7, 27)); add(vSpacer4, CC.xywh(3, 29, 5, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents comboBox1.addItem("Acoustic Grand Piano"); comboBox1.addItem("Bright Acoustic Piano"); comboBox1.addItem("Electric Grand Piano"); comboBox1.addItem("Honky-tonk Piano"); comboBox1.addItem("Electric Piano 1"); comboBox1.addItem("Electric Piano 2"); comboBox1.addItem("Harpsichord"); comboBox1.addItem("Clavi"); comboBox1.addItem("Celesta"); comboBox1.addItem("Glockenspiel"); comboBox1.addItem("Music Box"); comboBox1.addItem("Vibraphone"); comboBox1.addItem("Marimba"); comboBox1.addItem("Xylophone"); comboBox1.addItem("Tubular Bells"); comboBox1.addItem("Dulcimer"); comboBox1.addItem("Drawbar Organ"); comboBox1.addItem("Percussive Organ"); comboBox1.addItem("Rock Organ"); comboBox1.addItem("Church Organ"); comboBox1.addItem("Reed Organ"); comboBox1.addItem("Accordion"); comboBox1.addItem("Harmonica"); comboBox1.addItem("Tango Accordion"); comboBox1.addItem("Acoustic Guitar (nylon)"); comboBox1.addItem("Acoustic Guitar (steel)"); comboBox1.addItem("Electric Guitar (jazz)"); comboBox1.addItem("Electric Guitar (clean)"); comboBox1.addItem("Electric Guitar (muted)"); comboBox1.addItem("Overdriven Guitar"); comboBox1.addItem("Distortion Guitar"); comboBox1.addItem("Guitar harmonics"); comboBox1.addItem("Acoustic Bass"); comboBox1.addItem("Electric Bass (finger)"); comboBox1.addItem("Electric Bass (pick)"); comboBox1.addItem("Fretless Bass"); comboBox1.addItem("Slap Bass 1"); comboBox1.addItem("Slap Bass 2"); comboBox1.addItem("Synth Bass 1"); comboBox1.addItem("Synth Bass 2"); comboBox1.addItem("Violin"); comboBox1.addItem("Viola"); comboBox1.addItem("Cello"); comboBox1.addItem("Contrabass"); comboBox1.addItem("Tremolo Strings"); comboBox1.addItem("Pizzicato Strings"); comboBox1.addItem("Orchestral Harp"); comboBox1.addItem("Timpani"); comboBox1.addItem("String Ensemble 1"); comboBox1.addItem("String Ensemble 2"); comboBox1.addItem("SynthStrings 1"); comboBox1.addItem("SynthStrings 2"); comboBox1.addItem("Choir Aahs"); comboBox1.addItem("Voice Oohs"); comboBox1.addItem("Synth Voice"); comboBox1.addItem("Orchestra Hit"); comboBox1.addItem("Trumpet"); comboBox1.addItem("Trombone"); comboBox1.addItem("Tuba"); comboBox1.addItem("Muted Trumpet"); comboBox1.addItem("French Horn"); comboBox1.addItem("Brass Section"); comboBox1.addItem("SynthBrass 1"); comboBox1.addItem("SynthBrass 2"); comboBox1.addItem("Soprano Sax"); comboBox1.addItem("Alto Sax"); comboBox1.addItem("Tenor Sax"); comboBox1.addItem("Baritone Sax"); comboBox1.addItem("Oboe"); comboBox1.addItem("English Horn"); comboBox1.addItem("Bassoon"); comboBox1.addItem("Clarinet"); comboBox1.addItem("Piccolo"); comboBox1.addItem("Flute"); comboBox1.addItem("Recorder"); comboBox1.addItem("Pan Flute"); comboBox1.addItem("Blown Bottle"); comboBox1.addItem("Shakuhachi"); comboBox1.addItem("Whistle"); comboBox1.addItem("Ocarina"); comboBox1.addItem("Lead 1 (square)"); comboBox1.addItem("Lead 2 (sawtooth)"); comboBox1.addItem("Lead 3 (calliope)"); comboBox1.addItem("Lead 4 (chiff)"); comboBox1.addItem("Lead 5 (charang)"); comboBox1.addItem("Lead 6 (voice)"); comboBox1.addItem("Lead 7 (fifths)"); comboBox1.addItem("Lead 8 (bass + lead)"); comboBox1.addItem("Pad 1 (new age)"); comboBox1.addItem("Pad 2 (warm)"); comboBox1.addItem("Pad 3 (polysynth)"); comboBox1.addItem("Pad 4 (choir)"); comboBox1.addItem("Pad 5 (bowed)"); comboBox1.addItem("Pad 6 (metallic)"); comboBox1.addItem("Pad 7 (halo)"); comboBox1.addItem("Pad 8 (sweep)"); comboBox1.addItem("FX 1 (rain)"); comboBox1.addItem("FX 2 (soundtrack)"); comboBox1.addItem("FX 3 (crystal)"); comboBox1.addItem("FX 4 (atmosphere)"); comboBox1.addItem("FX 5 (brightness)"); comboBox1.addItem("FX 6 (goblins)"); comboBox1.addItem("FX 7 (echoes)"); comboBox1.addItem("FX 8 (sci-fi)"); comboBox1.addItem("Sitar"); comboBox1.addItem("Banjo"); comboBox1.addItem("Shamisen"); comboBox1.addItem("Koto"); comboBox1.addItem("Kalimba"); comboBox1.addItem("Bag pipe"); comboBox1.addItem("Fiddle"); comboBox1.addItem("Shanai"); comboBox1.addItem("Tinkle Bell"); comboBox1.addItem("Agogo"); comboBox1.addItem("Steel Drums"); comboBox1.addItem("Woodblock"); comboBox1.addItem("Taiko Drum"); comboBox1.addItem("Melodic Tom"); comboBox1.addItem("Synth Drum"); comboBox1.addItem("Reverse Cymbal"); comboBox1.addItem("Guitar Fret Noise"); comboBox1.addItem("Breath Noise"); comboBox1.addItem("Seashore"); comboBox1.addItem("Bird Tweet"); comboBox1.addItem("Telephone Ring"); comboBox1.addItem("Helicopter"); comboBox1.addItem("Applause"); comboBox1.addItem("Gunshot"); comboBox1.setSelectedIndex(0); ButtonGroup bgTouchPad = new ButtonGroup(); bgTouchPad.add(rbTPFull); bgTouchPad.add(rbTPRel); ButtonGroup bgMusic = new ButtonGroup(); bgMusic.add(rbMCont); bgMusic.add(rbMDisc); cbHeatMap.setSelected(true); cbTouchPad.setSelected(false); cbMusic.setSelected(true); cbHeatColor.setSelected(true); rbTPRel.setSelected(true); rbMDisc.setSelected(true); rbTPFull.setEnabled(false); //rbMCont.setEnabled(false); clickThreshold.setMaximum(500); clickThreshold.setMinimum(50); clickThreshold.setMajorTickSpacing(150); clickThreshold.setPaintTicks(true); clickThreshold.setPaintLabels(true); clickThreshold.setValue(275); playThreshold.setMaximum(500); playThreshold.setMinimum(100); playThreshold.setMajorTickSpacing(100); playThreshold.setPaintTicks(true); playThreshold.setPaintLabels(true); playThreshold.setValue(200); }
From source file:ScheduleView.java
private void setNewView() { getContentPane().setLayout(new FormLayout("139dlu", "129dlu")); pack();//ww w . ja v a 2 s .co m schedTitleTextField.setVisible(true); schedTitleComboBox.setVisible(false); schedTitleTextField.setText(""); startTimeInnerPanel2.setVisible(true); startTimeInnerPanel1.setVisible(false); startTimeHourTextField.setText("12"); startTimeMinuteTextField.setText("00"); freeRunCheckBox.setVisible(true); freeRunLabel.setVisible(false); searchPreferencesButton.setVisible(true); addButton.setVisible(true); editButton.setVisible(false); applyButton.setVisible(false); removeButton.setVisible(false); if (fetchScheduleCount() > 0) { cancelButton.setVisible(true); closeButton.setVisible(false); } else { cancelButton.setVisible(false); closeButton.setVisible(true); } newButton.setVisible(false); }
From source file:ScheduleView.java
private void setMainView() { Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("139dlu", "100dlu")); pack();/*from w ww . j a v a 2 s. c o m*/ schedTitleComboBox.setVisible(true); schedTitleTextField.setVisible(false); startTimeInnerPanel1.setVisible(true); startTimeInnerPanel2.setVisible(false); freeRunLabel.setVisible(true); freeRunCheckBox.setVisible(false); searchPreferencesButton.setVisible(false); editButton.setVisible(true); addButton.setVisible(false); applyButton.setVisible(false); removeButton.setVisible(true); closeButton.setVisible(true); cancelButton.setVisible(false); newButton.setVisible(true); populateSchedTitleComboBox(); populateComponents(); }
From source file:ScheduleView.java
private void setEditView(String schedTitle) { getContentPane().setLayout(new FormLayout("139dlu", "129dlu")); pack();/*from w w w . j a va2 s . c om*/ isEditView = true; initChangeListener(); // hide combobox and reveal textField schedTitleComboBox.setVisible(false); schedTitleTextField.setText(schedTitle); schedTitleTextField.setVisible(true); // hide startTime Labels and reveal startTime // text fields and combobox startTimeInnerPanel1.setVisible(false); startTimeInnerPanel2.setVisible(true); populateComponents(); freeRunLabel.setVisible(false); freeRunCheckBox.setVisible(true); searchPreferencesButton.setVisible(true); editButton.setVisible(false); addButton.setVisible(false); applyButton.setVisible(true); applyButton.setEnabled(false); removeButton.setVisible(false); closeButton.setVisible(false); cancelButton.setVisible(true); newButton.setVisible(false); initialValues = new HashMap(); initialValues = utils.generateUserInputMap(panel1, initialValues); utils.populateMap(panel1, initialValues); }
From source file:ScheduleView.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel1 = new JPanel(); schedTitlePanel = new JPanel(); label1 = new JLabel(); schedTitleComboBox = new JComboBox(); startTimeOuterPanel = new JPanel(); startTimeInnerPanel1 = new JPanel(); label9 = new JLabel(); startTimeHourLabel = new JLabel(); startTimeColonLabel1 = new JLabel(); startTimeMinuteLabel = new JLabel(); startTimeAmPmLabel = new JLabel(); startTimeInnerPanel2 = new JPanel(); label10 = new JLabel(); startTimeHourTextField = new JTextField(); startTimeColonLabel2 = new JLabel(); startTimeMinuteTextField = new JTextField(); startTimeAmPmComboBox = new JComboBox<>(); freeRunPanel = new JPanel(); label6 = new JLabel(); freeRunLabel = new JLabel(); searchPreferencesPanel = new JPanel(); searchPreferencesButton = new JButton(); buttonPanel = new JPanel(); editButton = new JButton(); removeButton = new JButton(); closeButton = new JButton(); newButton = new JButton(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("139dlu", "129dlu")); //======== panel1 ======== {/*from w w w. j a v a2 s .c om*/ panel1.setPreferredSize(new Dimension(250, 200)); panel1.setLayout( new FormLayout("123dlu", "default, $lgap, top:default, 2*($lgap, default), $lgap, 4dlu:grow")); //======== schedTitlePanel ======== { schedTitlePanel.setName("schedTitlePanel"); schedTitlePanel.setLayout(new FormLayout("default, $lcgap, default:grow", "default")); //---- label1 ---- label1.setText("Schedule Title:"); label1.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); schedTitlePanel.add(label1, CC.xy(1, 1)); //---- schedTitleComboBox ---- schedTitleComboBox.setName("schedTitleComboBox"); schedTitleComboBox.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { schedTitleComboBoxActionPerformed(e); } }); schedTitleComboBox.addPopupMenuListener(new PopupMenuListener() { @Override public void popupMenuCanceled(PopupMenuEvent e) { } @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { schedTitleComboBoxPopupMenuWillBecomeInvisible(e); } @Override public void popupMenuWillBecomeVisible(PopupMenuEvent e) { schedTitleComboBoxPopupMenuWillBecomeVisible(e); } }); schedTitleComboBox.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent e) { schedTitleComboBoxPropertyChange(e); } }); schedTitlePanel.add(schedTitleComboBox, CC.xy(3, 1)); } panel1.add(schedTitlePanel, CC.xy(1, 1)); //======== startTimeOuterPanel ======== { startTimeOuterPanel.setName("startTimeOuterPanel"); startTimeOuterPanel.setLayout(new FormLayout("default", "default, $lgap, default")); //======== startTimeInnerPanel1 ======== { startTimeInnerPanel1.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeInnerPanel1.setName("startTimeInnerPanel1"); startTimeInnerPanel1.setLayout(new FormLayout( "46dlu, $lcgap, default, $lcgap, center:2dlu, $lcgap, 10dlu, $lcgap, 11dlu", "default")); //---- label9 ---- label9.setText("Start Time:"); label9.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeInnerPanel1.add(label9, new CellConstraints(1, 1, 1, 1, CC.RIGHT, CC.DEFAULT, new Insets(0, 0, 0, 4))); //---- startTimeHourLabel ---- startTimeHourLabel.setText("00"); startTimeHourLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeHourLabel.setName("startTimeHourLabel"); startTimeInnerPanel1.add(startTimeHourLabel, CC.xy(3, 1)); //---- startTimeColonLabel1 ---- startTimeColonLabel1.setText(":"); startTimeColonLabel1.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeColonLabel1.setName("startTimeColonLabel1"); startTimeInnerPanel1.add(startTimeColonLabel1, CC.xy(5, 1)); //---- startTimeMinuteLabel ---- startTimeMinuteLabel.setText("00"); startTimeMinuteLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeMinuteLabel.setName("startTimeMinuteLabel"); startTimeInnerPanel1.add(startTimeMinuteLabel, CC.xy(7, 1)); //---- startTimeAmPmLabel ---- startTimeAmPmLabel.setText("AM"); startTimeAmPmLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeAmPmLabel.setName("startTimeAmPmLabel"); startTimeInnerPanel1.add(startTimeAmPmLabel, CC.xy(9, 1)); } startTimeOuterPanel.add(startTimeInnerPanel1, CC.xy(1, 1)); //======== startTimeInnerPanel2 ======== { startTimeInnerPanel2.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeInnerPanel2.setName("startTimeInnerPanel2"); startTimeInnerPanel2.setLayout(new FormLayout( "43dlu, $lcgap, 15dlu, $lcgap, center:2dlu, $lcgap, 17dlu, $lcgap, 35dlu", "default")); //---- label10 ---- label10.setText("Start Time:"); label10.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeInnerPanel2.add(label10, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- startTimeHourTextField ---- startTimeHourTextField.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); startTimeHourTextField.setName("startTimeHourTextField"); startTimeInnerPanel2.add(startTimeHourTextField, CC.xy(3, 1)); //---- startTimeColonLabel2 ---- startTimeColonLabel2.setText(":"); startTimeColonLabel2.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); startTimeColonLabel2.setName("startTimeColonLabel2"); startTimeInnerPanel2.add(startTimeColonLabel2, CC.xy(5, 1)); //---- startTimeMinuteTextField ---- startTimeMinuteTextField.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); startTimeMinuteTextField.setName("startTimeMinuteTextField"); startTimeInnerPanel2.add(startTimeMinuteTextField, CC.xy(7, 1)); //---- startTimeAmPmComboBox ---- startTimeAmPmComboBox.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); startTimeAmPmComboBox.setModel(new DefaultComboBoxModel<>(new String[] { "AM", "PM" })); startTimeAmPmComboBox.setName("startTimeAmPmComboBox"); startTimeInnerPanel2.add(startTimeAmPmComboBox, CC.xy(9, 1)); } startTimeOuterPanel.add(startTimeInnerPanel2, CC.xy(1, 3)); } panel1.add(startTimeOuterPanel, CC.xy(1, 3)); //======== freeRunPanel ======== { freeRunPanel.setName("freeRunPanel"); freeRunPanel.setLayout(new FormLayout("43dlu, 12dlu", "default")); //---- label6 ---- label6.setText("Free Run:"); label6.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); freeRunPanel.add(label6, CC.xy(1, 1, CC.RIGHT, CC.DEFAULT)); //---- freeRunLabel ---- freeRunLabel.setText("off"); freeRunLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 12)); freeRunLabel.setName("freeRunLabel"); freeRunPanel.add(freeRunLabel, CC.xy(2, 1, CC.RIGHT, CC.DEFAULT)); } panel1.add(freeRunPanel, CC.xy(1, 5)); //======== searchPreferencesPanel ======== { searchPreferencesPanel.setName("searchPreferencesPanel"); searchPreferencesPanel.setLayout(new FormLayout("default", "default")); //---- searchPreferencesButton ---- searchPreferencesButton.setText("Search Preferences"); searchPreferencesButton.setName("searchPreferencesButton"); searchPreferencesButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { searchPreferencesButtonActionPerformed(e); } }); searchPreferencesPanel.add(searchPreferencesButton, CC.xy(1, 1)); } panel1.add(searchPreferencesPanel, CC.xy(1, 7)); //======== buttonPanel ======== { buttonPanel.setName("buttonPanel"); buttonPanel.setLayout(new FormLayout("default, 41dlu", "2*(default)")); //---- editButton ---- editButton.setText("Edit"); editButton.setName("editButton"); editButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { editButtonActionPerformed(e); } }); buttonPanel.add(editButton, CC.xy(1, 1)); //---- removeButton ---- removeButton.setText("Remove"); removeButton.setName("removeButton"); removeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { removeButtonActionPerformed(e); } }); buttonPanel.add(removeButton, CC.xy(2, 1)); //---- closeButton ---- closeButton.setText("Close"); closeButton.setName("closeButton"); closeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { closeButtonActionPerformed(e); } }); buttonPanel.add(closeButton, CC.xy(1, 2)); //---- newButton ---- newButton.setText("New"); newButton.setName("newButton"); newButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { newButtonActionPerformed(e); } }); buttonPanel.add(newButton, CC.xy(2, 2)); } panel1.add(buttonPanel, CC.xy(1, 9, CC.DEFAULT, CC.TOP)); } contentPane.add(panel1, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.FILL, new Insets(10, 10, 0, 0))); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:AddRecipeGUI.java
public void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Adam Clemons createUIComponents();/*from w ww .jav a 2s . com*/ mainPanel = new JPanel(); nameLabel = new JLabel(); nameField = new JTextField(); tagsLabel = new JLabel(); amountLabel = new JLabel(); tagField = new JTextField(); unitLabel = new JLabel(); ingLabel = new JLabel(); ingNameLabel = new JLabel(); ingAmount1 = new JTextField(); ingUnit1 = new JTextField(); ingName1 = new JTextField(); ingName2 = new JTextField(); ingUnit2 = new JTextField(); ingAmount2 = new JTextField(); ingAmount3 = new JTextField(); ingUnit3 = new JTextField(); ingName3 = new JTextField(); ingAmount4 = new JTextField(); ingUnit4 = new JTextField(); ingName4 = new JTextField(); ingAmount5 = new JTextField(); ingUnit5 = new JTextField(); ingName5 = new JTextField(); ingAmount6 = new JTextField(); ingUnit6 = new JTextField(); ingName6 = new JTextField(); ingAmount7 = new JTextField(); ingUnit7 = new JTextField(); ingName7 = new JTextField(); ingAmount8 = new JTextField(); ingUnit8 = new JTextField(); ingName8 = new JTextField(); ingAmount9 = new JTextField(); ingUnit9 = new JTextField(); ingName9 = new JTextField(); ingAmount10 = new JTextField(); ingUnit10 = new JTextField(); ingName10 = new JTextField(); directionsLabel = new JLabel(); directionsPane = new JScrollPane(); directionsArea = new JTextArea(); submit = new JButton(); submit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Controller.gatherRecipe(thisGUI); Controller.closeAddWindow(edittingID); } }); //======== mainPanel ======== { mainPanel.setAutoscrolls(false); mainPanel.setBackground(bgColor); mainPanel.setInheritsPopupMenu(true); mainPanel.setPreferredSize(new Dimension(405, 650)); // JFormDesigner evaluation mark mainPanel.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), mainPanel.getBorder())); mainPanel.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); mainPanel.setLayout(new FormLayout("130px, left:4dlu, left:130px, left:4dlu, 130px", "[4px,default], top:4dlu, [4px,default], top:12dlu, 11*([4px,default], top:4dlu), [4px,default], top:17dlu, top:4dlu, 83px, [4px,default], top:4dlu, 28px")); //---- nameLabel ---- nameLabel.setAutoscrolls(false); nameLabel.setFont(nameLabel.getFont().deriveFont(Font.BOLD, 20f)); nameLabel.setForeground(fgColor); nameLabel.setText("Name:"); mainPanel.add(nameLabel, CC.xy(1, 1)); //---- nameField ---- nameField.setPreferredSize(new Dimension(100, 22)); nameField.setText(""); mainPanel.add(nameField, CC.xywh(3, 1, 3, 1, CC.FILL, CC.DEFAULT)); //---- tagsLabel ---- tagsLabel.setDoubleBuffered(true); tagsLabel.setFont(tagsLabel.getFont().deriveFont(Font.BOLD, 20f)); tagsLabel.setForeground(fgColor); tagsLabel.setText("Tags:"); mainPanel.add(tagsLabel, CC.xy(1, 3)); //---- amountLabel ---- amountLabel.setFocusTraversalPolicyProvider(true); amountLabel.setFont(amountLabel.getFont().deriveFont(Font.BOLD, 16f)); amountLabel.setForeground(fgColor); amountLabel.setText("Amount"); mainPanel.add(amountLabel, CC.xy(1, 7, CC.CENTER, CC.DEFAULT)); //---- tagField ---- tagField.setPreferredSize(new Dimension(100, 22)); mainPanel.add(tagField, CC.xywh(3, 3, 3, 1, CC.FILL, CC.DEFAULT)); //---- unitLabel ---- unitLabel.setBackground(bgColor); unitLabel.setFont(unitLabel.getFont().deriveFont(Font.BOLD, 16f)); unitLabel.setForeground(fgColor); unitLabel.setText("Unit"); mainPanel.add(unitLabel, CC.xy(3, 7, CC.CENTER, CC.DEFAULT)); //---- ingLabel ---- ingLabel.setBackground(bgColor); ingLabel.setFont(ingLabel.getFont().deriveFont(Font.BOLD, 20f)); ingLabel.setForeground(fgColor); ingLabel.setText("Ingredients"); mainPanel.add(ingLabel, CC.xy(3, 5, CC.CENTER, CC.DEFAULT)); //---- ingNameLabel ---- ingNameLabel.setBackground(bgColor); ingNameLabel.setFont(ingNameLabel.getFont().deriveFont(Font.BOLD, 16f)); ingNameLabel.setForeground(fgColor); ingNameLabel.setText("Name"); mainPanel.add(ingNameLabel, CC.xy(5, 7, CC.CENTER, CC.DEFAULT)); mainPanel.add(ingAmount1, CC.xy(1, 9, CC.FILL, CC.DEFAULT)); //---- ingUnit1 ---- ingUnit1.setText(""); mainPanel.add(ingUnit1, CC.xy(3, 9, CC.FILL, CC.DEFAULT)); //---- ingName1 ---- ingName1.setText(""); mainPanel.add(ingName1, CC.xy(5, 9, CC.FILL, CC.DEFAULT)); mainPanel.add(ingName2, CC.xy(5, 11, CC.FILL, CC.DEFAULT)); mainPanel.add(ingUnit2, CC.xy(3, 11, CC.FILL, CC.DEFAULT)); mainPanel.add(ingAmount2, CC.xy(1, 11, CC.FILL, CC.DEFAULT)); mainPanel.add(ingAmount3, CC.xy(1, 13, CC.FILL, CC.DEFAULT)); //---- ingUnit3 ---- ingUnit3.setText(""); mainPanel.add(ingUnit3, CC.xy(3, 13, CC.FILL, CC.DEFAULT)); mainPanel.add(ingName3, CC.xy(5, 13, CC.FILL, CC.DEFAULT)); //---- ingAmount4 ---- ingAmount4.setText(""); mainPanel.add(ingAmount4, CC.xy(1, 15, CC.FILL, CC.DEFAULT)); //---- ingUnit4 ---- ingUnit4.setText(""); mainPanel.add(ingUnit4, CC.xy(3, 15, CC.FILL, CC.DEFAULT)); mainPanel.add(ingName4, CC.xy(5, 15, CC.FILL, CC.DEFAULT)); //---- ingAmount5 ---- ingAmount5.setText(""); mainPanel.add(ingAmount5, CC.xy(1, 17, CC.FILL, CC.DEFAULT)); //---- ingUnit5 ---- ingUnit5.setText(""); mainPanel.add(ingUnit5, CC.xy(3, 17, CC.FILL, CC.DEFAULT)); //---- ingName5 ---- ingName5.setText(""); mainPanel.add(ingName5, CC.xy(5, 17, CC.FILL, CC.DEFAULT)); //---- ingAmount6 ---- ingAmount6.setText(""); mainPanel.add(ingAmount6, CC.xy(1, 19, CC.FILL, CC.DEFAULT)); //---- ingUnit6 ---- ingUnit6.setText(""); mainPanel.add(ingUnit6, CC.xy(3, 19, CC.FILL, CC.DEFAULT)); //---- ingName6 ---- ingName6.setText(""); mainPanel.add(ingName6, CC.xy(5, 19, CC.FILL, CC.DEFAULT)); //---- ingAmount7 ---- ingAmount7.setText(""); mainPanel.add(ingAmount7, CC.xy(1, 21, CC.FILL, CC.DEFAULT)); //---- ingUnit7 ---- ingUnit7.setText(""); mainPanel.add(ingUnit7, CC.xy(3, 21, CC.FILL, CC.DEFAULT)); //---- ingName7 ---- ingName7.setText(""); mainPanel.add(ingName7, CC.xy(5, 21, CC.FILL, CC.DEFAULT)); //---- ingAmount8 ---- ingAmount8.setText(""); mainPanel.add(ingAmount8, CC.xy(1, 23, CC.FILL, CC.DEFAULT)); mainPanel.add(ingUnit8, CC.xy(3, 23, CC.FILL, CC.DEFAULT)); //---- ingName8 ---- ingName8.setText(""); mainPanel.add(ingName8, CC.xy(5, 23, CC.FILL, CC.DEFAULT)); //---- ingAmount9 ---- ingAmount9.setText(""); mainPanel.add(ingAmount9, CC.xy(1, 25, CC.FILL, CC.DEFAULT)); mainPanel.add(ingUnit9, CC.xy(3, 25, CC.FILL, CC.DEFAULT)); mainPanel.add(ingName9, CC.xy(5, 25, CC.FILL, CC.DEFAULT)); //---- ingAmount10 ---- ingAmount10.setText(""); mainPanel.add(ingAmount10, CC.xy(1, 27, CC.FILL, CC.DEFAULT)); //---- ingUnit10 ---- ingUnit10.setText(""); mainPanel.add(ingUnit10, CC.xy(3, 27, CC.FILL, CC.DEFAULT)); mainPanel.add(ingName10, CC.xy(5, 27, CC.FILL, CC.DEFAULT)); //---- directionsLabel ---- directionsLabel.setBackground(bgColor); directionsLabel.setFont(directionsLabel.getFont().deriveFont(Font.BOLD, 20f)); directionsLabel.setForeground(fgColor); directionsLabel.setText("Directions"); mainPanel.add(directionsLabel, CC.xy(3, 28, CC.CENTER, CC.DEFAULT)); //======== directionsPane ======== { //---- directionsArea ---- directionsArea.setText(""); directionsArea.setLineWrap(true); directionsPane.setViewportView(directionsArea); } mainPanel.add(directionsPane, CC.xywh(1, 29, 5, 3, CC.FILL, CC.FILL)); //---- submit ---- submit.setActionCommand("submit"); submit.setAutoscrolls(false); submit.setInheritsPopupMenu(true); submit.setSelected(true); submit.setText("Submit"); mainPanel.add(submit, CC.xy(3, 33, CC.FILL, CC.DEFAULT)); } // JFormDesigner - End of component initialization //GEN-END:initComponents }