List of usage examples for javax.swing.colorchooser DefaultColorSelectionModel DefaultColorSelectionModel
public DefaultColorSelectionModel(Color color)
DefaultColorSelectionModel
with the current color set to color
, which should be non-null
. From source file:techtonic.Onview.java
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor.//w w w .ja v a 2s .c o m */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { titleBarPanel = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); toolBarPanel = new javax.swing.JPanel(); axisPanel = new javax.swing.JPanel(); jcbX_Axis = new javax.swing.JComboBox<>(); jcbY_Axis = new javax.swing.JComboBox<>(); lblXAxis = new javax.swing.JLabel(); lblYAxis = new javax.swing.JLabel(); btnRender = new javax.swing.JButton(); utilityPanel = new javax.swing.JPanel(); maxBtn = new javax.swing.JButton(); saveBtn = new javax.swing.JButton(); exportBtn = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); wellCombo = new javax.swing.JComboBox<>(); jspWell = new javax.swing.JScrollPane(); btnWellPanel = new javax.swing.JPanel(); jspProperty = new javax.swing.JScrollPane(); tblProperty = new javax.swing.JTable(); statusBar = new javax.swing.JLabel(); btnSetProperties = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); trajectoryPanel = new javax.swing.JPanel(); logsPanel = new javax.swing.JPanel(); displayArea1 = new javax.swing.JPanel(); menBarTectTonic = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jmiNew = new javax.swing.JMenuItem(); jmiLoad = new javax.swing.JMenuItem(); jmiSave = new javax.swing.JMenuItem(); jmiExit = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); jMenuItem5 = new javax.swing.JMenuItem(); jMenuItem6 = new javax.swing.JMenuItem(); jMenuItem7 = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Well Data Processor -TechTonic"); setName("TechTonic"); // NOI18N setPreferredSize(new java.awt.Dimension(100, 200)); setSize(new java.awt.Dimension(1000, 1500)); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); titleBarPanel.setBackground(new java.awt.Color(0, 0, 0)); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/techtonic/images/rlogo1.png"))); // NOI18N jLabel2.setText("jLabel2"); javax.swing.GroupLayout titleBarPanelLayout = new javax.swing.GroupLayout(titleBarPanel); titleBarPanel.setLayout(titleBarPanelLayout); titleBarPanelLayout.setHorizontalGroup( titleBarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(titleBarPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jLabel2).addContainerGap(1321, Short.MAX_VALUE))); titleBarPanelLayout.setVerticalGroup( titleBarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, titleBarPanelLayout.createSequentialGroup() .addContainerGap(23, Short.MAX_VALUE).addComponent(jLabel2).addGap(20, 20, 20))); getContentPane().add(titleBarPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, 1620, 80)); toolBarPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); toolBarPanel.setPreferredSize(new java.awt.Dimension(100, 65)); axisPanel.setBorder(javax.swing.BorderFactory.createTitledBorder( javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2), "Plot", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N axisPanel.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N axisPanel.setMinimumSize(new java.awt.Dimension(100, 100)); axisPanel.setPreferredSize(new java.awt.Dimension(699, 99)); jcbX_Axis.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jcbX_Axis.setModel( new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jcbX_Axis.setBorder(null); jcbX_Axis.setMinimumSize(new java.awt.Dimension(69, 20)); jcbX_Axis.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jcbX_AxisItemStateChanged(evt); } }); jcbX_Axis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jcbX_AxisActionPerformed(evt); } }); jcbY_Axis.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jcbY_Axis.setModel( new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jcbY_Axis.setBorder(null); jcbY_Axis.setMinimumSize(new java.awt.Dimension(69, 20)); jcbY_Axis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jcbY_AxisActionPerformed(evt); } }); lblXAxis.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N lblXAxis.setText("X-Axis"); lblYAxis.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N lblYAxis.setText("Y-Axis"); btnRender.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N btnRender.setText("Render"); btnRender.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnRender.setEnabled(false); btnRender.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRenderActionPerformed(evt); } }); javax.swing.GroupLayout axisPanelLayout = new javax.swing.GroupLayout(axisPanel); axisPanel.setLayout(axisPanelLayout); axisPanelLayout .setHorizontalGroup(axisPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(axisPanelLayout.createSequentialGroup().addContainerGap().addComponent(lblXAxis) .addGap(18, 18, 18) .addComponent(jcbX_Axis, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lblYAxis, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jcbY_Axis, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnRender, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE) .addGap(12, 12, 12))); axisPanelLayout .setVerticalGroup( axisPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(axisPanelLayout.createSequentialGroup().addGap(9, 9, 9) .addGroup(axisPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblXAxis, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jcbX_Axis, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblYAxis) .addComponent(jcbY_Axis, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnRender, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); utilityPanel.setBorder(javax.swing.BorderFactory.createTitledBorder( javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2), "Uitility", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N maxBtn.setIcon(new javax.swing.ImageIcon( "H:\\NetBeansProjects\\CMM021-Project-Team\\src\\techtonic\\images\\max.png")); // NOI18N maxBtn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); maxBtn.setEnabled(false); maxBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { maxBtnActionPerformed(evt); } }); saveBtn.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N saveBtn.setText("Save"); saveBtn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); saveBtn.setEnabled(false); saveBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBtnActionPerformed(evt); } }); exportBtn.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N exportBtn.setText("Export"); exportBtn.setEnabled(false); exportBtn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); exportBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exportBtnActionPerformed(evt); } }); javax.swing.GroupLayout utilityPanelLayout = new javax.swing.GroupLayout(utilityPanel); utilityPanel.setLayout(utilityPanelLayout); utilityPanelLayout.setHorizontalGroup( utilityPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, utilityPanelLayout.createSequentialGroup().addContainerGap() .addComponent(maxBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(saveBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(exportBtn, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE) .addContainerGap())); utilityPanelLayout.setVerticalGroup(utilityPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(utilityPanelLayout.createSequentialGroup() .addGroup(utilityPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(maxBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(saveBtn, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(exportBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(0, 0, 0))); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder( javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2), "Wells", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N wellCombo.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N wellCombo.setModel( new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); wellCombo.setBorder(null); wellCombo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wellComboActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(13, 13, 13) .addComponent(wellCombo, 0, 404, Short.MAX_VALUE).addContainerGap())); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(10, 10, 10) .addComponent(wellCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); javax.swing.GroupLayout toolBarPanelLayout = new javax.swing.GroupLayout(toolBarPanel); toolBarPanel.setLayout(toolBarPanelLayout); toolBarPanelLayout.setHorizontalGroup(toolBarPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(toolBarPanelLayout.createSequentialGroup().addGap(9, 9, 9) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(axisPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 887, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(utilityPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(6, 6, 6))); toolBarPanelLayout.setVerticalGroup(toolBarPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(toolBarPanelLayout.createSequentialGroup().addContainerGap().addGroup(toolBarPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(utilityPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(toolBarPanelLayout.createSequentialGroup() .addGroup(toolBarPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(axisPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); getContentPane().add(toolBarPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 101, 1620, 120)); jspWell.setPreferredSize(new java.awt.Dimension(1173, 2263)); btnWellPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); btnWellPanel.setPreferredSize(new java.awt.Dimension(100, 100)); javax.swing.GroupLayout btnWellPanelLayout = new javax.swing.GroupLayout(btnWellPanel); btnWellPanel.setLayout(btnWellPanelLayout); btnWellPanelLayout.setHorizontalGroup(btnWellPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 214, Short.MAX_VALUE)); btnWellPanelLayout.setVerticalGroup(btnWellPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 564, Short.MAX_VALUE)); jspWell.setViewportView(btnWellPanel); getContentPane().add(jspWell, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 240, 220, 570)); jspProperty.setBorder(javax.swing.BorderFactory.createCompoundBorder( javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)))); jspProperty.setPreferredSize(new java.awt.Dimension(1173, 2263)); ColorSelectionModel bgColorModel = new DefaultColorSelectionModel(Color.LIGHT_GRAY); ColorSelectionModel fgColorModel = new DefaultColorSelectionModel(Color.WHITE); TableButton t = new TableButton("hello"); tblProperty.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N tblProperty.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Background Colour", "color 1" }, { "Fore ground Colour", "color 2" }, { "Shape", t }, { "Shape Size" }, { "Label Colour" }, { null, null }, }, new String[] { "Properties", "Values" })); ///// table.getModel().getValueAt(row_index, col_index) TableModel tm = tblProperty.getModel(); TableColumn ce = tblProperty.getColumnModel().getColumn(1); // System.out.println(tm.getValueAt(1, 1)); // ce. jspProperty.setViewportView(tblProperty); if (tblProperty.getColumnModel().getColumnCount() > 0) { tblProperty.getColumnModel().getColumn(0).setResizable(false); tblProperty.getColumnModel().getColumn(1).setResizable(false); } getContentPane().add(jspProperty, new org.netbeans.lib.awtextra.AbsoluteConstraints(1340, 240, 290, 250)); statusBar.setForeground(new java.awt.Color(0, 51, 204)); statusBar.setText(" "); statusBar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); getContentPane().add(statusBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 830, 1620, -1)); btnSetProperties.setText("Set Properties"); getContentPane().add(btnSetProperties, new org.netbeans.lib.awtextra.AbsoluteConstraints(1340, 510, 290, 60)); btnSetProperties.setEnabled(false); btnSetProperties.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnSetPropery(); } }); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); trajectoryPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Trajectory")); javax.swing.GroupLayout trajectoryPanelLayout = new javax.swing.GroupLayout(trajectoryPanel); trajectoryPanel.setLayout(trajectoryPanelLayout); trajectoryPanelLayout.setHorizontalGroup(trajectoryPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); trajectoryPanelLayout.setVerticalGroup(trajectoryPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 220, Short.MAX_VALUE)); logsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Logs")); javax.swing.GroupLayout logsPanelLayout = new javax.swing.GroupLayout(logsPanel); logsPanel.setLayout(logsPanelLayout); logsPanelLayout.setHorizontalGroup(logsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 172, Short.MAX_VALUE)); logsPanelLayout.setVerticalGroup(logsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 216, Short.MAX_VALUE)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(logsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(trajectoryPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap())); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addComponent(trajectoryPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(logsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(241, 240, 230, 570)); javax.swing.GroupLayout displayArea1Layout = new javax.swing.GroupLayout(displayArea1); displayArea1.setLayout(displayArea1Layout); displayArea1Layout.setHorizontalGroup(displayArea1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 850, Short.MAX_VALUE)); displayArea1Layout.setVerticalGroup(displayArea1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 570, Short.MAX_VALUE)); displayArea1.setBorder(javax.swing.BorderFactory.createTitledBorder("Display Area")); getContentPane().add(displayArea1, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 240, 850, 570)); jMenu1.setText("File"); jmiNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK)); jmiNew.setText("New"); jMenu1.add(jmiNew); jmiLoad.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK)); jmiLoad.setText("Load"); jmiLoad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jmiLoadActionPerformed(evt); } }); jMenu1.add(jmiLoad); jmiSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); jmiSave.setText("Save"); jMenu1.add(jmiSave); jmiExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.CTRL_MASK)); jmiExit.setText("Exit"); jmiExit.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jmiExitMouseClicked(evt); } }); jmiExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jmiExitActionPerformed(evt); } }); jMenu1.add(jmiExit); menBarTectTonic.add(jMenu1); jMenu2.setText("Edit"); menBarTectTonic.add(jMenu2); jMenu3.setText("Visualize"); jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK)); jMenuItem5.setText("Scatter Plot"); jMenuItem5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem5ActionPerformed(evt); } }); jMenu3.add(jMenuItem5); jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.ALT_MASK)); jMenuItem6.setText("Bar Chat"); jMenu3.add(jMenuItem6); jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK)); jMenuItem7.setText("Line Graph"); jMenu3.add(jMenuItem7); menBarTectTonic.add(jMenu3); jMenu4.setText("About"); menBarTectTonic.add(jMenu4); setJMenuBar(menBarTectTonic); setSize(new java.awt.Dimension(1670, 982)); setLocationRelativeTo(null); }