List of usage examples for com.jgoodies.forms.factories CC xywh
public static CellConstraints xywh(int col, int row, int colSpan, int rowSpan, Alignment colAlign, Alignment rowAlign)
Examples:
CC.xywh(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM); CC.xywh(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL);
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 ww w.j a v a 2s . c o m 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:AddRecipeGUI.java
public void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Adam Clemons createUIComponents();/*from w w w . j a v a 2 s .c o m*/ 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 }
From source file:com.cs521.team7.HomePage.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Saurabh Jadhav DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); menuBar1 = new JMenuBar(); menu_file = new JMenu(); menuItem1 = new JMenuItem(); menu_help = new JMenu(); menu_faq = new JMenuItem(); menu_about = new JMenuItem(); menu1 = new JMenu(); menuItem_updateProfile = new JMenuItem(); panel1 = new JPanel(); label_welcome = new JLabel(); btn_account = new JButton(); btn_cart = new JButton(); btn_logout = new JButton(); separator2 = new JSeparator(); splitPane2 = new JSplitPane(); panel2 = new JPanel(); label2 = compFactory.createLabel("Total Cost of Cart: "); label_totalCartPrice = compFactory.createLabel(" $0"); label1 = new JLabel(); label_totalCartItems = new JLabel(); separator4 = new JSeparator(); label8 = new JLabel(); panel3 = new JPanel(); btn_search = new JButton(); label5 = new JLabel(); textField_searchBox = new JTextField(); label6 = new JLabel(); comboBox_filter = new JComboBox(); label7 = new JLabel(); comboBox_sort = new JComboBox(); separator3 = new JSeparator(); scrollPane1 = new JScrollPane(); table_ProductList = new JTable(); btn_addToCart = new JButton(); //======== this ======== setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage()); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("default:grow", "2*(default, $lgap), default")); //======== menuBar1 ======== {//ww w . j av a 2 s .c o m //======== menu_file ======== { menu_file.setText("Files"); //---- menuItem1 ---- menuItem1.setText("Exit"); menu_file.add(menuItem1); } menuBar1.add(menu_file); //======== menu_help ======== { menu_help.setText("Help"); menu_help.addActionListener(e -> menu_helpActionPerformed(e)); //---- menu_faq ---- menu_faq.setText("FAQ"); menu_help.add(menu_faq); //---- menu_about ---- menu_about.setText("About"); menu_about.addActionListener(e -> { menu_aboutActionPerformed(e); menu_aboutActionPerformed(e); }); menu_about.addMenuKeyListener(new MenuKeyListener() { @Override public void menuKeyPressed(MenuKeyEvent e) { menu_aboutMenuKeyPressed(e); } @Override public void menuKeyReleased(MenuKeyEvent e) { } @Override public void menuKeyTyped(MenuKeyEvent e) { } }); menu_help.add(menu_about); } menuBar1.add(menu_help); //======== menu1 ======== { menu1.setText("Profile"); //---- menuItem_updateProfile ---- menuItem_updateProfile.setText("Update Profile"); menuItem_updateProfile.addActionListener(e -> menuItem_updateProfileActionPerformed(e)); menu1.add(menuItem_updateProfile); } menuBar1.add(menu1); } setJMenuBar(menuBar1); //======== panel1 ======== { // JFormDesigner evaluation mark panel1.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), panel1.getBorder())); panel1.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); panel1.setLayout(new FormLayout( "default, $lcgap, default:grow, $lcgap, default, $lcgap, default:grow, 10*($lcgap, default)", "default")); //---- label_welcome ---- label_welcome.setText("Welcome "); panel1.add(label_welcome, CC.xy(1, 1, CC.CENTER, CC.DEFAULT)); //---- btn_account ---- btn_account.setText("My Account"); panel1.add(btn_account, CC.xy(23, 1, CC.RIGHT, CC.TOP)); //---- btn_cart ---- btn_cart.setText("Cart"); panel1.add(btn_cart, CC.xy(25, 1, CC.FILL, CC.DEFAULT)); //---- btn_logout ---- btn_logout.setText("Logout"); panel1.add(btn_logout, CC.xy(27, 1)); } contentPane.add(panel1, CC.xy(1, 1, CC.FILL, CC.DEFAULT)); contentPane.add(separator2, CC.xy(1, 3, CC.FILL, CC.CENTER)); //======== splitPane2 ======== { //======== panel2 ======== { panel2.setLayout(new FormLayout("min, default:grow", "4*(default, $lgap), default")); panel2.add(label2, CC.xy(1, 1, CC.LEFT, CC.DEFAULT)); panel2.add(label_totalCartPrice, CC.xywh(2, 1, 1, 2, CC.LEFT, CC.TOP)); //---- label1 ---- label1.setText("Total Items in Cart: "); panel2.add(label1, CC.xy(1, 3, CC.LEFT, CC.DEFAULT)); //---- label_totalCartItems ---- label_totalCartItems.setText(" 0"); panel2.add(label_totalCartItems, CC.xy(2, 3, CC.LEFT, CC.DEFAULT)); panel2.add(separator4, CC.xywh(1, 5, 2, 1, CC.FILL, CC.DEFAULT)); //---- label8 ---- label8.setText("Browse"); panel2.add(label8, CC.xy(1, 7, CC.LEFT, CC.DEFAULT)); } splitPane2.setLeftComponent(panel2); //======== panel3 ======== { panel3.setLayout(new FormLayout( "left:default, 2*($lcgap, default), $lcgap, default:grow, 5*($lcgap, default), $lcgap, default:grow, 6*($lcgap, default)", "4*(default, $lgap), 2*(default:grow, $lgap), default, $lgap, default:grow, 2*($lgap, default), $lgap, default:grow")); //---- btn_search ---- btn_search.setText("Search"); panel3.add(btn_search, CC.xywh(31, 1, 1, 5, CC.FILL, CC.DEFAULT)); //---- label5 ---- label5.setText("Search Text"); panel3.add(label5, CC.xy(1, 1)); panel3.add(textField_searchBox, CC.xywh(3, 1, 27, 1, CC.FILL, CC.DEFAULT)); //---- label6 ---- label6.setText("Filter"); panel3.add(label6, CC.xy(1, 3)); panel3.add(comboBox_filter, CC.xywh(3, 3, 27, 1, CC.FILL, CC.DEFAULT)); //---- label7 ---- label7.setText("Sort"); panel3.add(label7, CC.xy(1, 5)); panel3.add(comboBox_sort, CC.xywh(3, 5, 27, 1)); panel3.add(separator3, CC.xywh(1, 7, 31, 1, CC.FILL, CC.DEFAULT)); //======== scrollPane1 ======== { scrollPane1.setViewportView(table_ProductList); } panel3.add(scrollPane1, CC.xywh(1, 9, 29, 13, CC.FILL, CC.FILL)); //---- btn_addToCart ---- btn_addToCart.setText("Add to Cart"); btn_addToCart.addActionListener(e -> btn_addToCartActionPerformed(e)); panel3.add(btn_addToCart, CC.xy(31, 9)); } splitPane2.setRightComponent(panel3); } contentPane.add(splitPane2, CC.xy(1, 5, CC.RIGHT, CC.DEFAULT)); setSize(680, 360); setLocationRelativeTo(null); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.cs521.team7.LoginPage.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Saurabh Jadhav label_uname = new JLabel(); textField_uname = new JTextField(); label_password = new JLabel(); textField_password = new JPasswordField(); btn_signUp = new JButton(); btn_login = new JButton(); //======== this ======== setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage()); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("3*(default, $lcgap), default:grow, $lcgap, min, $lcgap, default", "2*(default, $lgap), top:default")); //---- label_uname ---- label_uname.setText("Username: "); contentPane.add(label_uname, CC.xy(1, 1)); contentPane.add(textField_uname, CC.xywh(3, 1, 9, 1, CC.FILL, CC.DEFAULT)); //---- label_password ---- label_password.setText("Password: "); contentPane.add(label_password, CC.xy(1, 3)); contentPane.add(textField_password, CC.xywh(3, 3, 9, 1, CC.FILL, CC.DEFAULT)); //---- btn_signUp ---- btn_signUp.setText("Sign Up"); btn_signUp.addActionListener(e -> signUP_btn_ActionPerformed(e)); contentPane.add(btn_signUp, CC.xy(9, 5, CC.DEFAULT, CC.TOP)); //---- btn_login ---- btn_login.setText("Login"); btn_login.addActionListener(e -> btn_loginActionPerformed(e)); contentPane.add(btn_login, CC.xy(11, 5, CC.LEFT, CC.TOP)); pack();/*from w ww . j a va2 s .co m*/ setLocationRelativeTo(null); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.cs521.team7.SignUpPage.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Abhijeet Kedari label_firstName = new JLabel(); textField_firstName = new JTextField(); label_lastName = new JLabel(); textField_lastName = new JTextField(); label_emailID = new JLabel(); textField_emailID = new JTextField(); label_username = new JLabel(); textField_userName = new JTextField(); label_password = new JLabel(); textField_password = new JPasswordField(); label_confirmPassword = new JLabel(); textField_confirmPassword = new JPasswordField(); btn_cancel = new JButton(); btn_signUp = new JButton(); //======== this ======== setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage()); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("default, $lcgap, pref, 2*($lcgap, pref:grow), $lcgap, pref", "3*(default, $lgap), default:grow, 3*($lgap, default), $lgap, default:grow, $lgap, default")); //---- label_firstName ---- label_firstName.setText("First Name"); contentPane.add(label_firstName, CC.xy(1, 1)); contentPane.add(textField_firstName, CC.xywh(3, 1, 7, 1, CC.FILL, CC.DEFAULT)); //---- label_lastName ---- label_lastName.setText("Last Name"); contentPane.add(label_lastName, CC.xy(1, 3)); contentPane.add(textField_lastName, CC.xywh(3, 3, 7, 1, CC.FILL, CC.DEFAULT)); //---- label_emailID ---- label_emailID.setText("Enter Email ID"); contentPane.add(label_emailID, CC.xy(1, 5)); contentPane.add(textField_emailID, CC.xywh(3, 5, 7, 1, CC.FILL, CC.DEFAULT)); //---- label_username ---- label_username.setText("Enter Username"); contentPane.add(label_username, CC.xy(1, 9)); contentPane.add(textField_userName, CC.xywh(3, 9, 7, 1, CC.FILL, CC.DEFAULT)); //---- label_password ---- label_password.setText("Enter Password"); contentPane.add(label_password, CC.xy(1, 11)); contentPane.add(textField_password, CC.xywh(3, 11, 7, 1, CC.FILL, CC.DEFAULT)); //---- label_confirmPassword ---- label_confirmPassword.setText("Confirm Password"); contentPane.add(label_confirmPassword, CC.xy(1, 13)); contentPane.add(textField_confirmPassword, CC.xywh(3, 13, 7, 1, CC.FILL, CC.DEFAULT)); //---- btn_cancel ---- btn_cancel.setText("Cancel"); btn_cancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btn_cancelActionPerformed(e); }// www .ja v a2 s . c o m }); contentPane.add(btn_cancel, CC.xy(3, 17)); //---- btn_signUp ---- btn_signUp.setText("Sign Up"); btn_signUp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btn_signUpActionPerformed(e); } }); contentPane.add(btn_signUp, CC.xy(9, 17)); setSize(305, 290); setLocationRelativeTo(null); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:cz.cvut.ds.student17.view.EditExperimentForm.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Ptero Bacter ResourceBundle bundle = ResourceBundle.getBundle("Application"); form = new JPanel(); this2 = new JPanel(); titleLabel = new JLabel(); titleField = new JTextField(); descriptionLabel = new JLabel(); scrollPane1 = new JScrollPane(); descriptionTextArea = new JTextArea(); budgetLabel = new JLabel(); budgetField = new JTextField(); statusLabel = new JLabel(); List<ExperimentStatusEntity> lese = facade.getAvailableEntities(ExperimentStatusEntity.class); alese = lese.toArray();//ww w . ja v a2 s.c o m final DefaultComboBoxModel model = new DefaultComboBoxModel(alese); statusCombo = new JComboBox(model); label1 = new JLabel(); deleteTrialsButton = new JButton(); experimentsScrollPane = new JScrollPane(); table = new WebTable(); buttons = new JPanel(); saveButton = new JButton(); cancelButton = new JButton(); removeButton = new JButton(); panel1 = new JPanel(); //======== this ======== // JFormDesigner evaluation mark 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), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); setLayout(new FormLayout("15dlu, 306dlu, 147dlu", "default, $lgap, 140dlu, $lgap, 131dlu, $lgap, 22dlu, $lgap, default")); //======== form ======== { form.setLayout(new FormLayout("311dlu, $lcgap, 150dlu", "default, $lgap, default")); //======== this2 ======== { this2.setLayout(new FormLayout("2*(default, $lcgap), 93dlu", "default, $lgap, 64dlu, 2*($lgap, default), $lgap, 10dlu")); //---- titleLabel ---- titleLabel.setText(bundle.getString("EditExperimentForm.titleLabel.text")); this2.add(titleLabel, CC.xy(3, 1)); this2.add(titleField, CC.xy(5, 1)); //---- descriptionLabel ---- descriptionLabel.setText(bundle.getString("EditExperimentForm.descriptionLabel.text")); this2.add(descriptionLabel, CC.xywh(3, 3, 3, 1, CC.DEFAULT, CC.TOP)); //======== scrollPane1 ======== { scrollPane1.setViewportView(descriptionTextArea); } this2.add(scrollPane1, CC.xy(5, 3, CC.FILL, CC.FILL)); //---- budgetLabel ---- budgetLabel.setText(bundle.getString("EditExperimentForm.budgetLabel.text")); this2.add(budgetLabel, CC.xy(3, 5)); this2.add(budgetField, CC.xy(5, 5)); //---- statusLabel ---- statusLabel.setText(bundle.getString("EditExperimentForm.statusLabel.text")); this2.add(statusLabel, CC.xy(3, 7)); this2.add(statusCombo, CC.xy(5, 7)); //---- label1 ---- label1.setText(bundle.getString("EditExperimentForm.label1.text")); this2.add(label1, CC.xy(3, 9, CC.DEFAULT, CC.BOTTOM)); //---- deleteTrialsButton ---- deleteTrialsButton.setText(bundle.getString("EditExperimentForm.deleteTrialsButton.text")); this2.add(deleteTrialsButton, CC.xy(5, 9)); } form.add(this2, CC.xy(1, 1)); } add(form, CC.xy(2, 3)); //======== experimentsScrollPane ======== { experimentsScrollPane.setViewportView(table); } add(experimentsScrollPane, CC.xy(2, 5, CC.FILL, CC.FILL)); //======== buttons ======== { buttons.setLayout(new FormLayout("2*(default, $lcgap), 58dlu", "default")); //---- saveButton ---- saveButton.setText(bundle.getString("EditExperimentForm.saveButton.text")); saveButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { saveButtonActionPerformed(e); } }); buttons.add(saveButton, CC.xy(1, 1)); //---- cancelButton ---- cancelButton.setText(bundle.getString("EditExperimentForm.cancelButton.text")); cancelButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cancelButtonActionPerformed(e); } }); buttons.add(cancelButton, CC.xy(3, 1)); //---- removeButton ---- removeButton.setText(bundle.getString("EditExperimentForm.removeButton.text")); removeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { removeButtonActionPerformed(e); } }); buttons.add(removeButton, CC.xy(5, 1)); } add(buttons, CC.xy(2, 7, CC.RIGHT, CC.DEFAULT)); //======== panel1 ======== { panel1.setLayout(new FormLayout("93dlu", "137dlu")); } add(panel1, CC.xy(1, 9)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:de.bund.bfr.knime.openkrise.db.gui.PlausibleDialog4Krise.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license dialogPane = new JPanel(); contentPanel = new JPanel(); label1 = new JLabel(); cs = new JCheckBox(); separator11 = new JSeparator(); label5 = new JLabel(); sn = new JSpinner(); lz = new JLabel(); sz = new JSpinner(); label7 = new JLabel(); ss = new JSpinner(); label8 = new JLabel(); snum = new JSpinner(); label9 = new JLabel(); sc = new JSpinner(); separator12 = new JSeparator(); label2 = new JLabel(); cp = new JCheckBox(); label10 = new JLabel(); ps = new JSpinner(); label11 = new JLabel(); pd = new JSpinner(); separator33 = new JSeparator(); label3 = new JLabel(); cl = new JCheckBox(); label12 = new JLabel(); la = new JSpinner(); label13 = new JLabel(); ll = new JSpinner(); separator41 = new JSeparator(); label4 = new JLabel(); cd = new JCheckBox(); label15 = new JLabel(); dl = new JSpinner(); label16 = new JLabel(); dd = new JSpinner(); label17 = new JLabel(); dr = new JSpinner(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); button1 = new JButton(); //======== this ======== setTitle("SimSearch Options"); setModal(true);//from w ww .jav a 2 s . c om Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel .setLayout(new FormLayout("12*(default, $lcgap), default", "6*(default, $lgap), default")); ((FormLayout) contentPanel.getLayout()) .setColumnGroups(new int[][] { { 7, 11, 15, 19, 23 }, { 9, 13, 17, 21, 25 } }); //---- label1 ---- label1.setText("Station:"); contentPanel.add(label1, CC.xy(1, 1)); contentPanel.add(cs, CC.xy(3, 1)); //---- separator11 ---- separator11.setOrientation(SwingConstants.VERTICAL); separator11.setForeground(Color.black); contentPanel.add(separator11, CC.xywh(5, 1, 1, 13, CC.RIGHT, CC.DEFAULT)); //---- label5 ---- label5.setText("Name:"); label5.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label5, CC.xy(7, 1)); //---- sn ---- sn.setModel(new SpinnerNumberModel(90, 0, 100, 10)); contentPanel.add(sn, CC.xy(9, 1)); //---- lz ---- lz.setText("Zip:"); lz.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(lz, CC.xy(11, 1)); //---- sz ---- sz.setModel(new SpinnerNumberModel(90, 0, 100, 10)); contentPanel.add(sz, CC.xy(13, 1)); //---- label7 ---- label7.setText("Street:"); label7.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label7, CC.xy(15, 1)); //---- ss ---- ss.setModel(new SpinnerNumberModel(90, 0, 100, 10)); contentPanel.add(ss, CC.xy(17, 1)); //---- label8 ---- label8.setText("Number:"); label8.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label8, CC.xy(19, 1)); //---- snum ---- snum.setModel(new SpinnerNumberModel(0, 0, 100, 10)); contentPanel.add(snum, CC.xy(21, 1)); //---- label9 ---- label9.setText("City:"); label9.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label9, CC.xy(23, 1)); //---- sc ---- sc.setModel(new SpinnerNumberModel(90, 0, 100, 10)); contentPanel.add(sc, CC.xy(25, 1)); //---- separator12 ---- separator12.setForeground(Color.black); contentPanel.add(separator12, CC.xywh(1, 3, 25, 1)); //---- label2 ---- label2.setText("Product:"); contentPanel.add(label2, CC.xy(1, 5)); contentPanel.add(cp, CC.xy(3, 5)); //---- label10 ---- label10.setText("Station:"); label10.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label10, CC.xy(7, 5)); //---- ps ---- ps.setModel(new SpinnerNumberModel(100, 0, 100, 10)); ps.setEnabled(false); contentPanel.add(ps, CC.xy(9, 5)); //---- label11 ---- label11.setText("Name:"); label11.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label11, CC.xy(11, 5)); //---- pd ---- pd.setModel(new SpinnerNumberModel(75, 0, 100, 10)); contentPanel.add(pd, CC.xy(13, 5)); //---- separator33 ---- separator33.setForeground(Color.black); contentPanel.add(separator33, CC.xywh(1, 7, 25, 1)); //---- label3 ---- label3.setText("Lot:"); contentPanel.add(label3, CC.xy(1, 9)); contentPanel.add(cl, CC.xy(3, 9)); //---- label12 ---- label12.setText("Article:"); label12.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label12, CC.xy(7, 9)); //---- la ---- la.setModel(new SpinnerNumberModel(100, 0, 100, 10)); la.setEnabled(false); contentPanel.add(la, CC.xy(9, 9)); //---- label13 ---- label13.setText("LotNo:"); label13.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label13, CC.xy(11, 9)); //---- ll ---- ll.setModel(new SpinnerNumberModel(75, 0, 100, 10)); contentPanel.add(ll, CC.xy(13, 9)); //---- separator41 ---- separator41.setForeground(Color.black); contentPanel.add(separator41, CC.xywh(1, 11, 25, 1)); //---- label4 ---- label4.setText("Delivery:"); contentPanel.add(label4, CC.xy(1, 13)); contentPanel.add(cd, CC.xy(3, 13)); //---- label15 ---- label15.setText("Lot:"); label15.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label15, CC.xy(7, 13)); //---- dl ---- dl.setModel(new SpinnerNumberModel(100, 0, 100, 10)); dl.setEnabled(false); contentPanel.add(dl, CC.xy(9, 13)); //---- label16 ---- label16.setText("DeliveryDate:"); label16.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label16, CC.xy(11, 13)); //---- dd ---- dd.setModel(new SpinnerNumberModel(0, 0, 100, 10)); contentPanel.add(dd, CC.xy(13, 13)); //---- label17 ---- label17.setText("Recipient:"); label17.setHorizontalAlignment(SwingConstants.RIGHT); contentPanel.add(label17, CC.xy(15, 13)); //---- dr ---- dr.setModel(new SpinnerNumberModel(100, 0, 100, 10)); dr.setEnabled(false); contentPanel.add(dr, CC.xy(17, 13)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout("$glue, $button, $rgap, $button, $lcgap, default", "pref")); //---- okButton ---- okButton.setText("OK"); okButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { okButtonActionPerformed(e); } }); buttonBar.add(okButton, CC.xy(2, 1)); //---- cancelButton ---- cancelButton.setText("Cancel"); cancelButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cancelButtonActionPerformed(e); } }); buttonBar.add(cancelButton, CC.xy(4, 1)); //---- button1 ---- button1.setText("Help"); button1.setPreferredSize(new Dimension(65, 23)); button1.setMinimumSize(new Dimension(65, 23)); button1.setMaximumSize(new Dimension(65, 23)); button1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button1ActionPerformed(e); } }); buttonBar.add(button1, CC.xy(6, 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:kamera.project.ui.CameraPreview.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - fdsafsd fdsafdsaf DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); menuBar1 = new JMenuBar(); menuProject = new JMenu(); openProjectList = new JMenuItem(); menu3 = new JMenu(); editProject = new JMenuItem(); editData = new JMenuItem(); menu2 = new JMenu(); menu1 = new JMenu(); refreshCameraPreview = new JMenuItem(); cameraData = new JMenuItem(); mainSplitPane = new JSplitPane(); leftSplitPane = new JPanel(); panel5 = new JPanel(); label1 = compFactory.createLabel("Wybierz projekt"); scrollPane3 = new JScrollPane(); projectsTree = new JTree(); addProject = new JButton(); rightSplitPane = new JSplitPane(); nagrano = new JTabbedPane(); panel1 = new JPanel(); panel2 = new JPanel(); button4 = new JButton(); button6 = new JButton(); zoomInAll = new JButton(); zoomOutAll = new JButton(); stopZoom = new JButton(); label26 = new JLabel(); lightValue = new JSlider(); panel3 = new JPanel(); label27 = new JLabel(); speed = new JSlider(); callBackward = new JButton(); callStop = new JButton(); callForward = new JButton(); panel4 = new JPanel(); cameraUp = new JButton(); cameraLeft = new JButton(); cameraReset = new JButton(); cameraRight = new JButton(); cameraDown = new JButton(); panel6 = new JPanel(); startRecord = new JButton(); stopRecord = new JButton(); currentRecordTime = new JTextField(); addEventsPanel = new JPanel(); textEvent = new JTextPane(); addEvent = new JButton(); scrollPane2 = new JScrollPane(); eventsList = new JTextArea(); close = new JButton(); preview = new JButton(); scrollPane1 = new JScrollPane(); info = new JPanel(); label19 = new JLabel(); label2 = new JLabel(); nazwaFirmy = new JTextField(); label3 = new JLabel(); numerOdcinka = new JTextField(); label8 = new JLabel(); miasto = new JTextField(); label18 = new JLabel(); label5 = new JLabel(); symbolStudni = new JTextField(); label4 = new JLabel(); textField3 = new JTextField(); label23 = new JLabel(); spinner4 = new JSpinner(); label24 = new JLabel(); spinner5 = new JSpinner(); label25 = new JLabel(); spinner6 = new JSpinner(); label20 = new JLabel(); label7 = new JLabel(); textField6 = new JTextField(); label6 = new JLabel(); textField5 = new JTextField(); label15 = new JLabel(); spinner1 = new JSpinner(); label21 = new JLabel(); spinner2 = new JSpinner(); label22 = new JLabel(); spinner3 = new JSpinner(); label11 = new JLabel(); label17 = new JLabel(); inspekcja = new JComboBox<>(); label9 = new JLabel(); material = new JComboBox<>(); label10 = new JLabel(); rozmiarRury = new JComboBox<>(); label12 = new JLabel(); przrekroj = new JComboBox<>(); label13 = new JLabel(); kierunekJazdy = new JComboBox<>(); label14 = new JLabel(); typStudni = new JComboBox<>(); label16 = new JLabel(); typInstalacji = new JComboBox<>(); cameraParent = new JPanel(); layeredPane1 = new JLayeredPane(); aboveCamera = new JPanel(); textAboveCamera = new JTextPane(); aboveCamera2 = new JPanel(); distance = new JTextPane(); camera = new JPanel(); //======== this ======== setMinimumSize(new Dimension(800, 600)); Container contentPane = getContentPane(); contentPane.setLayout(new GridLayout()); //======== menuBar1 ======== {/* ww w. ja v a 2 s. c om*/ //======== menuProject ======== { menuProject.setText("Projekt"); //---- openProjectList ---- openProjectList.setText("Zamknij"); menuProject.add(openProjectList); //======== menu3 ======== { menu3.setText("Edytuj"); //---- editProject ---- editProject.setText("Projekt"); menu3.add(editProject); //---- editData ---- editData.setText("Dane"); menu3.add(editData); } menuProject.add(menu3); } menuBar1.add(menuProject); //======== menu2 ======== { menu2.setText("Opcje"); //======== menu1 ======== { menu1.setText("Kamera"); //---- refreshCameraPreview ---- refreshCameraPreview.setText("Od\u015bwie\u017c po\u0142\u0105czenie"); menu1.add(refreshCameraPreview); } menu2.add(menu1); //---- cameraData ---- cameraData.setText("Dane \u015brodowiskowe"); menu2.add(cameraData); } menuBar1.add(menu2); } setJMenuBar(menuBar1); //======== mainSplitPane ======== { mainSplitPane.setDividerSize(0); mainSplitPane.setDividerLocation(250); //======== leftSplitPane ======== { leftSplitPane.setBackground(new Color(214, 217, 223)); // JFormDesigner evaluation mark leftSplitPane.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), leftSplitPane.getBorder())); leftSplitPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); leftSplitPane.setLayout(new BoxLayout(leftSplitPane, BoxLayout.X_AXIS)); //======== panel5 ======== { panel5.setBackground(new Color(214, 217, 223)); panel5.setLayout(new BorderLayout()); panel5.add(label1, BorderLayout.PAGE_START); //======== scrollPane3 ======== { //---- projectsTree ---- projectsTree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode("(Projekty)") { { DefaultMutableTreeNode node1 = new DefaultMutableTreeNode("projekt 1"); node1.add(new DefaultMutableTreeNode("nagranie 1")); node1.add(new DefaultMutableTreeNode("nagranie 2")); node1.add(new DefaultMutableTreeNode("nagranie 3")); add(node1); node1 = new DefaultMutableTreeNode("projekt 2"); node1.add(new DefaultMutableTreeNode("nagranie 1")); node1.add(new DefaultMutableTreeNode("nagranie 2")); add(node1); node1 = new DefaultMutableTreeNode("projekt 3"); node1.add(new DefaultMutableTreeNode("nagranie 1")); node1.add(new DefaultMutableTreeNode("nagranie 2")); node1.add(new DefaultMutableTreeNode("nagranie 3")); add(node1); } })); projectsTree.setRootVisible(false); scrollPane3.setViewportView(projectsTree); } panel5.add(scrollPane3, BorderLayout.CENTER); //---- addProject ---- addProject.setText("Dodaj projekt"); panel5.add(addProject, BorderLayout.PAGE_END); } leftSplitPane.add(panel5); } mainSplitPane.setLeftComponent(leftSplitPane); //======== rightSplitPane ======== { rightSplitPane.setDividerSize(5); rightSplitPane.setDividerLocation(300); //======== nagrano ======== { //======== panel1 ======== { panel1.setBorder(new EmptyBorder(5, 5, 5, 5)); panel1.setLayout(new FormLayout("${growing-button}, $lcgap, ${growing-button}", "3*(default), $lgap, default, $lgap, bottom:default:grow")); //======== panel2 ======== { panel2.setBorder(new TitledBorder("Kamera")); panel2.setLayout(new GridBagLayout()); ((GridBagLayout) panel2.getLayout()).columnWidths = new int[] { 0, 0, 0 }; ((GridBagLayout) panel2.getLayout()).rowHeights = new int[] { 0, 0, 7, 0, 0 }; ((GridBagLayout) panel2.getLayout()).columnWeights = new double[] { 1.0, 1.0, 1.0E-4 }; ((GridBagLayout) panel2.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 1.0E-4 }; //---- button4 ---- button4.setText("przybliz"); panel2.add(button4, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- button6 ---- button6.setText("oddal"); panel2.add(button6, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- zoomInAll ---- zoomInAll.setText("przybliz ca\u0142kiem"); panel2.add(zoomInAll, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- zoomOutAll ---- zoomOutAll.setText("oddal ca\u0142kiem"); panel2.add(zoomOutAll, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- stopZoom ---- stopZoom.setText("zatrzymaj"); panel2.add(stopZoom, new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- label26 ---- label26.setText("Nat\u0119\u017cenie \u015bwiat\u0142a"); panel2.add(label26, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- lightValue ---- lightValue.setMaximum(3); lightValue.setValue(0); panel2.add(lightValue, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } panel1.add(panel2, CC.xywh(1, 1, 3, 1, CC.DEFAULT, CC.FILL)); //======== panel3 ======== { panel3.setBorder(new TitledBorder("Silnik")); panel3.setLayout(new GridBagLayout()); ((GridBagLayout) panel3.getLayout()).columnWidths = new int[] { 0, 0, 0, 0 }; ((GridBagLayout) panel3.getLayout()).rowHeights = new int[] { 0, 0, 0 }; ((GridBagLayout) panel3.getLayout()).columnWeights = new double[] { 1.0, 0.0, 1.0, 1.0E-4 }; ((GridBagLayout) panel3.getLayout()).rowWeights = new double[] { 0.0, 1.0, 1.0E-4 }; //---- label27 ---- label27.setText("Pr\u0119dko\u015b\u0107"); panel3.add(label27, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- speed ---- speed.setMaximum(20); speed.setValue(10); panel3.add(speed, new GridBagConstraints(1, 0, 2, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- callBackward ---- callBackward.setText("Wstecz"); panel3.add(callBackward, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- callStop ---- callStop.setText("zatrzymaj"); panel3.add(callStop, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- callForward ---- callForward.setText("Naprz\u00f3d"); panel3.add(callForward, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } panel1.add(panel3, CC.xywh(1, 2, 3, 1, CC.DEFAULT, CC.CENTER)); //======== panel4 ======== { panel4.setBorder(new TitledBorder("Oko kamery")); panel4.setLayout(new GridBagLayout()); ((GridBagLayout) panel4.getLayout()).columnWidths = new int[] { 0, 0, 0, 0 }; ((GridBagLayout) panel4.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 }; ((GridBagLayout) panel4.getLayout()).columnWeights = new double[] { 1.0, 1.0, 1.0, 1.0E-4 }; ((GridBagLayout) panel4.getLayout()).rowWeights = new double[] { 1.0, 1.0, 1.0, 1.0E-4 }; //---- cameraUp ---- cameraUp.setText("G\u00f3ra"); panel4.add(cameraUp, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- cameraLeft ---- cameraLeft.setText("Lewo"); panel4.add(cameraLeft, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- cameraReset ---- cameraReset.setText("Reset"); panel4.add(cameraReset, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- cameraRight ---- cameraRight.setText("Prawo"); panel4.add(cameraRight, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); //---- cameraDown ---- cameraDown.setText("D\u00f3\u0142"); panel4.add(cameraDown, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } panel1.add(panel4, CC.xywh(1, 3, 3, 1, CC.DEFAULT, CC.CENTER)); //======== panel6 ======== { panel6.setBorder(new TitledBorder("Zarz\u0105dzaj nagrywaniem")); panel6.setLayout( new FormLayout("2*(default:grow, $lcgap), default", "default, $lgap, default")); //---- startRecord ---- startRecord.setText("nagrywaj"); panel6.add(startRecord, CC.xy(1, 1)); //---- stopRecord ---- stopRecord.setText("zatrzymaj"); panel6.add(stopRecord, CC.xy(3, 1)); //---- currentRecordTime ---- currentRecordTime.setHorizontalAlignment(SwingConstants.LEFT); currentRecordTime.setText("1"); currentRecordTime.setEnabled(false); currentRecordTime.setBackground(Color.white); panel6.add(currentRecordTime, CC.xy(5, 1)); //======== addEventsPanel ======== { addEventsPanel.setBorder(new TitledBorder(null, "Dodaj zdarzenie", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION)); addEventsPanel.setLayout( new FormLayout("default:grow, $lcgap, 95dlu:grow, $lcgap, default:grow", "default, $lgap, default")); //---- textEvent ---- textEvent.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR)); addEventsPanel.add(textEvent, CC.xywh(1, 1, 4, 1, CC.DEFAULT, CC.FILL)); //---- addEvent ---- addEvent.setText("Dodaj"); addEventsPanel.add(addEvent, CC.xy(5, 1, CC.DEFAULT, CC.TOP)); //======== scrollPane2 ======== { //---- eventsList ---- eventsList.setEnabled(false); eventsList.setLineWrap(true); scrollPane2.setViewportView(eventsList); } addEventsPanel.add(scrollPane2, CC.xywh(1, 3, 5, 1)); } panel6.add(addEventsPanel, CC.xywh(1, 3, 5, 1)); } panel1.add(panel6, CC.xywh(1, 5, 3, 1)); //---- close ---- close.setText("Zamknij"); panel1.add(close, CC.xy(1, 7)); //---- kamera.preview ---- preview.setText("Podgl\u0105g projektu"); panel1.add(preview, CC.xy(3, 7)); } nagrano.addTab("Sterowanie i Nagrywanie", panel1); //======== scrollPane1 ======== { scrollPane1.setBorder(new EmptyBorder(5, 5, 5, 5)); //======== info ======== { info.setLayout(new FormLayout("2*(default:grow)", "14dlu, 3*(min), 14dlu, 2*(min), 3*(default), 14dlu, 2*(min), 3*(default), 14dlu, 8*(min), $lgap, default")); //---- label19 ---- label19.setText("Og\u00f3lne"); info.add(label19, CC.xywh(1, 1, 2, 1)); //---- label2 ---- label2.setText("Nazwa firmy"); info.add(label2, CC.xy(1, 2)); //---- nazwaFirmy ---- nazwaFirmy.setToolTipText("nazwaFirmy"); nazwaFirmy.setName("nazwaFirmy"); info.add(nazwaFirmy, CC.xy(2, 2)); //---- label3 ---- label3.setText("Numer odcinka"); info.add(label3, CC.xy(1, 3)); //---- numerOdcinka ---- numerOdcinka.setToolTipText("numerOdcinka"); numerOdcinka.setName("numerOdcinka"); info.add(numerOdcinka, CC.xy(2, 3)); //---- label8 ---- label8.setText("Miasto"); info.add(label8, CC.xy(1, 4)); //---- miasto ---- miasto.setToolTipText("miasto"); miasto.setName("miasto"); info.add(miasto, CC.xy(2, 4)); //---- label18 ---- label18.setText("Studnia pocz\u0105tkowa"); info.add(label18, CC.xywh(1, 5, 2, 1)); //---- label5 ---- label5.setText("Symbol studni"); info.add(label5, CC.xy(1, 6)); //---- symbolStudni ---- symbolStudni.setToolTipText("poczatkowaSymbolStudni"); symbolStudni.setName("poczatkowaSymbolStudni"); info.add(symbolStudni, CC.xy(2, 6)); //---- label4 ---- label4.setText("Ulica poczatkowa"); info.add(label4, CC.xy(1, 7)); //---- textField3 ---- textField3.setToolTipText("poczatkowaUlica"); textField3.setName("poczatkowaUlica"); info.add(textField3, CC.xy(2, 7)); //---- label23 ---- label23.setText("Rz\u0119dna kinety (m)"); info.add(label23, CC.xy(1, 8)); //---- spinner4 ---- spinner4.setToolTipText("poczatkowaRzednaKinety"); spinner4.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner4.setName("poczatkowaRzednaKinety"); info.add(spinner4, CC.xy(2, 8)); //---- label24 ---- label24.setText("Rozmiar (mm)"); info.add(label24, CC.xy(1, 9)); //---- spinner5 ---- spinner5.setToolTipText("mm"); spinner5.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner5.setName("poczatkowaRozmiar"); info.add(spinner5, CC.xy(2, 9)); //---- label25 ---- label25.setText("Zg\u0142\u0119bienie (m)"); info.add(label25, CC.xy(1, 10)); //---- spinner6 ---- spinner6.setToolTipText("m"); spinner6.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner6.setName("poczatkowaZaglebienie"); info.add(spinner6, CC.xy(2, 10)); //---- label20 ---- label20.setText("Studnia ko\u0144cowa"); info.add(label20, CC.xywh(1, 11, 2, 1)); //---- label7 ---- label7.setText("Symbol studni"); info.add(label7, CC.xy(1, 12)); //---- textField6 ---- textField6.setName("koncowaSymbolStudni"); info.add(textField6, CC.xy(2, 12)); //---- label6 ---- label6.setText("Ulica ko\u0144cowa"); info.add(label6, CC.xy(1, 13)); //---- textField5 ---- textField5.setName("koncowaUlica"); info.add(textField5, CC.xy(2, 13)); //---- label15 ---- label15.setText("Rz\u0119dna kinety (m)"); info.add(label15, CC.xy(1, 14)); //---- spinner1 ---- spinner1.setToolTipText("m"); spinner1.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner1.setName("koncowaRzednaKinety"); info.add(spinner1, CC.xy(2, 14)); //---- label21 ---- label21.setText("Rozmiar (mm)"); info.add(label21, CC.xy(1, 15)); //---- spinner2 ---- spinner2.setToolTipText("mm"); spinner2.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner2.setName("koncowaRozmiar"); info.add(spinner2, CC.xy(2, 15)); //---- label22 ---- label22.setText("Zag\u0142\u0119bienie (m)"); info.add(label22, CC.xy(1, 16)); //---- spinner3 ---- spinner3.setToolTipText("m"); spinner3.setModel(new SpinnerNumberModel(0, 0, null, 1)); spinner3.setName("koncowaZaglebienie"); info.add(spinner3, CC.xy(2, 16)); //---- label11 ---- label11.setText("Opis kana\u0142u"); info.add(label11, CC.xy(1, 17)); //---- label17 ---- label17.setText("Rodzaj inspekcji"); info.add(label17, CC.xy(1, 18)); //---- inspekcja ---- inspekcja.setModel(new DefaultComboBoxModel<>(new String[] { "Inspekcja" })); inspekcja.setName("inspekcja"); info.add(inspekcja, CC.xy(2, 18)); //---- label9 ---- label9.setText("Materia\u0142 "); info.add(label9, CC.xy(1, 19)); //---- material ---- material.setModel( new DefaultComboBoxModel<>(new String[] { "Beton", "Plastik", "Stal" })); material.setName("material"); info.add(material, CC.xy(2, 19)); //---- label10 ---- label10.setText("Rozmiar rury"); info.add(label10, CC.xy(1, 20)); //---- rozmiarRury ---- rozmiarRury.setModel(new DefaultComboBoxModel<>(new String[] { "100", "200", "300", "400", "500", "600", "700", "800", "900", "1000", "1100" })); rozmiarRury.setName("rozmiarRury"); info.add(rozmiarRury, CC.xy(2, 20)); //---- label12 ---- label12.setText("Przekroj"); info.add(label12, CC.xy(1, 21)); //---- przrekroj ---- przrekroj.setModel(new DefaultComboBoxModel<>( new String[] { "Ko\u0142owy", "Tr\u00f3jk\u0105tny", "Kwadratowy" })); przrekroj.setName("przekroj"); info.add(przrekroj, CC.xy(2, 21)); //---- label13 ---- label13.setText("Kierunek jazdy"); info.add(label13, CC.xy(1, 22)); //---- kierunekJazdy ---- kierunekJazdy.setModel( new DefaultComboBoxModel<>(new String[] { "Pod pr\u0105d", "Z pr\u0105dem" })); kierunekJazdy.setName("kierunekJazdy"); info.add(kierunekJazdy, CC.xy(2, 22)); //---- label14 ---- label14.setText("Typ studni"); info.add(label14, CC.xy(1, 23)); //---- typStudni ---- typStudni.setModel( new DefaultComboBoxModel<>(new String[] { "Pocz\u0105tkowa", "Ko\u0144cowa" })); typStudni.setName("typStudni"); info.add(typStudni, CC.xy(2, 23)); //---- label16 ---- label16.setText("Typ instalacji"); info.add(label16, CC.xy(1, 24)); //---- typInstalacji ---- typInstalacji.setModel( new DefaultComboBoxModel<>(new String[] { "Deszczowa", "Sanitarna" })); typInstalacji.setName("typInstalacji"); info.add(typInstalacji, CC.xy(2, 24)); } scrollPane1.setViewportView(info); } nagrano.addTab("Informacje", scrollPane1); } rightSplitPane.setLeftComponent(nagrano); //======== cameraParent ======== { cameraParent.setOpaque(false); cameraParent.setLayout(new CardLayout()); //======== layeredPane1 ======== { layeredPane1.setBackground(Color.black); layeredPane1.addComponentListener(new ComponentAdapter() { @Override public void componentResized(ComponentEvent e) { layeredPane1ComponentResized(e); } }); //======== aboveCamera ======== { aboveCamera.setBackground(Color.white); aboveCamera.setLayout(new FlowLayout()); //---- textAboveCamera ---- textAboveCamera.setText("0.00%"); textAboveCamera.setFont(new Font("Tahoma", Font.PLAIN, 20)); textAboveCamera.setForeground(Color.black); textAboveCamera.setBackground(Color.white); textAboveCamera.setEditable(false); aboveCamera.add(textAboveCamera); } layeredPane1.add(aboveCamera, JLayeredPane.DEFAULT_LAYER); aboveCamera.setBounds(10, 10, 80, 40); //======== aboveCamera2 ======== { aboveCamera2.setBackground(Color.white); aboveCamera2.setLayout(new FlowLayout()); //---- distance ---- distance.setText("0.00 m"); distance.setFont(new Font("Tahoma", Font.PLAIN, 20)); distance.setBackground(Color.white); distance.setEditable(false); aboveCamera2.add(distance); } layeredPane1.add(aboveCamera2, JLayeredPane.DEFAULT_LAYER); aboveCamera2.setBounds(200, 10, 80, 40); //======== camera ======== { camera.setMinimumSize(new Dimension(16, 9)); camera.setMaximumSize(new Dimension(1600, 900)); camera.setPreferredSize(new Dimension(520, 495)); camera.setBackground(Color.black); camera.setLayout(new GridLayout()); } layeredPane1.add(camera, JLayeredPane.DEFAULT_LAYER); camera.setBounds(5, 0, 525, 645); } cameraParent.add(layeredPane1, "card4"); } rightSplitPane.setRightComponent(cameraParent); } mainSplitPane.setRightComponent(rightSplitPane); } contentPane.add(mainSplitPane); setSize(1090, 710); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:kg.nurolopher.MainForm.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - a b dialogPane = new JPanel(); buttonBar = new JPanel(); textFieldMessage = new JTextField(); okButton = new JButton(); textAreaMessages = new JTextArea(); //======== this ======== setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setMaximizedBounds(new Rectangle(0, 0, 500, 500)); setMinimumSize(new Dimension(500, 500)); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {/* w ww . j a v a2s . c o m*/ dialogPane.setBorder(Borders.createEmptyBorder("7dlu, 7dlu, 7dlu, 7dlu")); dialogPane.setMinimumSize(new Dimension(500, 500)); // 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()); //======== buttonBar ======== { buttonBar.setBorder(Borders.createEmptyBorder("5dlu, 0dlu, 0dlu, 0dlu")); buttonBar.setLayout(new FormLayout("2*($lcgap, default), $glue, $button", "pref")); //---- textFieldMessage ---- textFieldMessage.setMinimumSize(new Dimension(20, 24)); textFieldMessage.setPreferredSize(new Dimension(350, 24)); buttonBar.add(textFieldMessage, CC.xywh(2, 1, 4, 1, CC.DEFAULT, CC.BOTTOM)); //---- okButton ---- okButton.setText("OK"); okButton.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { okButtonMouseClicked(e); } }); buttonBar.add(okButton, CC.xy(6, 1, CC.DEFAULT, CC.FILL)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); //---- textAreaMessages ---- textAreaMessages.setPreferredSize(new Dimension(350, 100)); dialogPane.add(textAreaMessages, BorderLayout.WEST); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(null); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:op.care.prescription.DlgRegular.java
License:Open Source License
public void initDialog() { fillComboBoxes();/*from ww w.j ava2s . c o m*/ String tooltip = SYSTools.xx("nursingrecords.prescription.dlgRegular.tx.tooltip").replace('[', '<') .replace(']', '>'); lblTX.setToolTipText(SYSTools.toHTMLForScreen("<p style=\"width:300px;\">" + tooltip + "</p>")); ignoreEvent = true; rbActive.setText(SYSTools.xx("nursingrecords.prescription.dlgRegular.rbActive")); rbEndOfPackage.setText(SYSTools.xx("nursingrecords.prescription.dlgRegular.rbEndOfPackage")); txtMed.setText(""); cmbMed.setRenderer(TradeFormTools.getRenderer(TradeFormTools.LONG)); cmbDocON.setSelectedItem(prescription.getDocON()); cmbHospitalON.setSelectedItem(prescription.getHospitalON()); cmbMed.setModel(new DefaultComboBoxModel()); rbEndOfPackage.setSelected(prescription.isUntilEndOfPackage()); txtBemerkung.setText(SYSTools.catchNull(prescription.getText())); if (prescription.hasMed()) { cmbMed.setModel(new DefaultComboBoxModel(new TradeForm[] { prescription.getTradeForm() })); } cmbIntervention.setModel( new DefaultComboBoxModel(InterventionTools.findBy(InterventionTools.TYPE_PRESCRIPTION).toArray())); cmbIntervention.setRenderer(InterventionTools.getRenderer()); cmbIntervention.setEnabled(cmbMed.getModel().getSize() == 0); cmbIntervention.setSelectedItem(prescription.getIntervention()); txtIntervention.setEnabled(cmbMed.getModel().getSize() == 0); tbDailyPlan = GUITools.getNiceToggleButton("nursingrecords.prescription.dlgRegular.addToDailyPlan"); jPanel1.add(tbDailyPlan, CC.xywh(1, 5, 5, 1, CC.LEFT, CC.DEFAULT)); tbDailyPlan.setEnabled(cmbMed.getModel().getSize() == 0); tbDailyPlan.setSelected(prescription.isOnDailyPlan()); // tbWeightControl = GUITools.getNiceToggleButton("nursingrecords.prescription.dlgRegular.weightControl"); // jPanel1.add(tbWeightControl, CC.xywh(1, 7, 5, 1, CC.LEFT, CC.DEFAULT)); // tbWeightControl.setEnabled(cmbMed.getModel().getSize() != 0); // tbWeightControl.setSelected(prescription.isWeightControl()); cmbMed.setEnabled(editMode != MODE_CHANGE); txtMed.setEnabled(editMode != MODE_CHANGE); cmbIntervention.setEnabled(editMode != MODE_CHANGE); txtIntervention.setEnabled(editMode != MODE_CHANGE); if (cmbMed.getSelectedItem() != null) { OPDE.getDisplayManager().addSubMessage( new DisplayMessage(TradeFormTools.toPrettyString((TradeForm) cmbMed.getSelectedItem()))); } rbEndOfPackage.setEnabled(prescription.getResident().isCalcMediUPR1() && cmbMed.getSelectedItem() != null); ignoreEvent = false; txtMed.requestFocus(); setFocusCycleRoot(true); setFocusTraversalPolicy(GUITools.createTraversalPolicy(new ArrayList<Component>( Arrays.asList(new Component[] { cmbDocON, cmbHospitalON, txtMed, rbActive, txtBemerkung })))); reloadTable(); pnlCommonTags = new PnlCommonTags(prescription.getCommontags(), true, 3); jPanel3.add(new JScrollPane(pnlCommonTags), CC.xy(1, 9, CC.DEFAULT, CC.FILL)); }