List of usage examples for javax.swing SwingConstants BOTTOM
int BOTTOM
To view the source code for javax.swing SwingConstants BOTTOM.
Click Source Link
From source file:com.maxl.java.amikodesk.AMiKoDesk.java
private static void setupButton(JToggleButton button, String toolTipText, String rolloverImg, String selectedImg) {/*from w ww . j a v a 2 s .c o m*/ button.setFont(new Font("Dialog", Font.PLAIN, 12)); button.setVerticalTextPosition(SwingConstants.BOTTOM); button.setHorizontalTextPosition(SwingConstants.CENTER); button.setText(toolTipText); button.setRolloverIcon(new ImageIcon(Constants.IMG_FOLDER + rolloverImg)); button.setSelectedIcon(new ImageIcon(Constants.IMG_FOLDER + selectedImg)); button.setBackground(m_selected_but_color); button.setToolTipText(toolTipText); // Remove border Border emptyBorder = BorderFactory.createEmptyBorder(); button.setBorder(emptyBorder); // Set adequate size button.setPreferredSize(new Dimension(32, 32)); }
From source file:ECallCenter21.java
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lookAndFeelGroup = new javax.swing.ButtonGroup(); colorMaskPanel = new javax.swing.JPanel(); tabPane = new javax.swing.JTabbedPane(); callCenterPanel = new javax.swing.JPanel(); layeredImagePane = new javax.swing.JLayeredPane(); phonesPoolTableScrollPane = new javax.swing.JScrollPane(); phonesPoolTable = new javax.swing.JTable(); imageBrandLabel = new javax.swing.JLabel(); imageProductLabel = new javax.swing.JLabel(); imagePostfixLabel = new javax.swing.JLabel(); imageLinkLabel = new javax.swing.JLabel(); imageIconLabel = new javax.swing.JLabel(); statisticsPanel = new javax.swing.JPanel(); mainPanel = new javax.swing.JPanel(); systemStatsLabel = new javax.swing.JLabel(); systemStatsScrollPane = new javax.swing.JScrollPane(); systemStatsTable = new javax.swing.JTable(); orderLabel = new javax.swing.JLabel(); orderStatsScrollPane = new javax.swing.JScrollPane(); orderTable = new javax.swing.JTable(); phoneStatsLabel = new javax.swing.JLabel(); phoneStatsScrollPane = new javax.swing.JScrollPane(); phoneStatsTable = new javax.swing.JTable(); reponseStatsLabel = new javax.swing.JLabel(); responseStatsScrollPane = new javax.swing.JScrollPane(); responseStatsTable = new javax.swing.JTable(); campaignLabel = new javax.swing.JLabel(); campaignScrollPane = new javax.swing.JScrollPane(); campaignTable = new javax.swing.JTable(); turnoverStatsLabel = new javax.swing.JLabel(); turnoverStatsScrollPane = new javax.swing.JScrollPane(); turnoverStatsTable = new javax.swing.JTable(); graphPanel = new javax.swing.JPanel(); graphInnerPanel = new javax.swing.JPanel(); phoneDisplayTabPanel = new javax.swing.JPanel(); phoneDisplayPanel = new javax.swing.JPanel(); softphoneInfoLabel = new javax.swing.JLabel(); proxyInfoLabel = new javax.swing.JLabel(); primaryStatusLabel = new javax.swing.JLabel(); primaryStatusDetailsLabel = new javax.swing.JLabel(); secondaryStatusLabel = new javax.swing.JLabel(); secondaryStatusDetailsLabel = new javax.swing.JLabel(); onPanel = new javax.swing.JPanel(); onLabel = new javax.swing.JLabel(); idlePanel = new javax.swing.JPanel(); idleLabel = new javax.swing.JLabel(); connectingPanel = new javax.swing.JPanel(); connectingLabel = new javax.swing.JLabel(); callingPanel = new javax.swing.JPanel(); callingLabel = new javax.swing.JLabel(); ringingPanel = new javax.swing.JPanel(); ringingLabel = new javax.swing.JLabel(); acceptingPanel = new javax.swing.JPanel(); acceptingLabel = new javax.swing.JLabel(); talkingPanel = new javax.swing.JPanel(); talkingLabel = new javax.swing.JLabel(); registeredPanel = new javax.swing.JPanel(); registeredLabel = new javax.swing.JLabel(); answerPanel = new javax.swing.JPanel(); answerLabel = new javax.swing.JLabel(); mutePanel = new javax.swing.JPanel(); muteLabel = new javax.swing.JLabel(); cancelPanel = new javax.swing.JPanel(); cancelLabel = new javax.swing.JLabel(); toolsPanel = new javax.swing.JPanel(); toolsInnerPanel = new javax.swing.JPanel(); netManagerOutboundServerToggleButton = new javax.swing.JToggleButton(); netManagerInboundServerToggleButton = new javax.swing.JToggleButton(); controlsPanel = new javax.swing.JPanel(); displayLabel = new javax.swing.JLabel(); enableDisplayCheckBox = new javax.swing.JCheckBox(); snmpLabel1 = new javax.swing.JLabel(); smoothCheckBox = new javax.swing.JCheckBox(); scanCheckBox = new javax.swing.JCheckBox(); smoothLabel = new javax.swing.JLabel(); lookAndFeelPanel = new javax.swing.JPanel(); lookAndFeelRButtonMotif = new javax.swing.JRadioButton(); lookAndFeelRButtonGTK = new javax.swing.JRadioButton(); lookAndFeelRButtonNimbus = new javax.swing.JRadioButton(); lookAndFeelRButtonWindows = new javax.swing.JRadioButton(); sipInfoPanel = new javax.swing.JPanel(); destinationScrollPane = new javax.swing.JScrollPane(); destinationTextArea = new javax.swing.JTextArea(); netConfigPanel = new javax.swing.JPanel(); authenticationPanel = new javax.swing.JPanel(); iconsLabel = new javax.swing.JLabel(); iconsCheckBox = new javax.swing.JCheckBox(); clientIPLabel = new javax.swing.JLabel(); clientIPField = new javax.swing.JTextField(); pubIPLabel = new javax.swing.JLabel(); pubIPField = new javax.swing.JTextField(); clientPortLabel = new javax.swing.JLabel(); registerCheckBox = new javax.swing.JCheckBox(); registerLabel = new javax.swing.JLabel(); clientPortField = new javax.swing.JTextField(); domainLabel = new javax.swing.JLabel(); domainField = new javax.swing.JTextField(); serverIPLabel = new javax.swing.JLabel(); serverIPField = new javax.swing.JTextField(); serverPortLabel = new javax.swing.JLabel(); serverPortField = new javax.swing.JTextField(); pfixLabel = new javax.swing.JLabel(); usersecretLabel = new javax.swing.JLabel(); suffixLabel = new javax.swing.JLabel(); prefixField = new javax.swing.JTextField(); usernameField = new javax.swing.JTextField(); suffixField = new javax.swing.JTextField(); saveConfigurationButton = new javax.swing.JButton(); toegangField = new javax.swing.JPasswordField(); secretLabel = new javax.swing.JLabel(); prefPhoneLinesPanel = new javax.swing.JPanel(); prefPhoneLinesSlider = new javax.swing.JSlider(); licensePanel = new javax.swing.JPanel(); licenseTypePanel = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); vergunningTypeList = new javax.swing.JList(); licenseDatePanel = new javax.swing.JPanel(); vergunningDateChooserPanel = new datechooser.beans.DateChooserPanel(); licensePeriodPanel = new javax.swing.JPanel(); licensePeriodScrollPane = new javax.swing.JScrollPane(); vergunningPeriodList = new javax.swing.JList(); activationCodePanel = new javax.swing.JPanel(); activationCodeField = new javax.swing.JTextField(); licenseCodePanel = new javax.swing.JPanel(); vergunningCodeField = new javax.swing.JTextField(); licenseDetailsPanel = new javax.swing.JPanel(); licenseDetailsScrollPane = new javax.swing.JScrollPane(); vergunningDetailsTable = new javax.swing.JTable(); applyVergunningButton = new javax.swing.JButton(); requestVergunningButton = new javax.swing.JButton(); logPanel = new javax.swing.JPanel(); logScrollPane = new javax.swing.JScrollPane(); textLogArea = new javax.swing.JTextArea(); aboutPanel = new javax.swing.JPanel(); brandLabel = new javax.swing.JLabel(); brandDescriptionLabel = new javax.swing.JTextArea(); productLabel = new javax.swing.JLabel(); productDescriptionLabel = new javax.swing.JTextArea(); copyrightLabel = new javax.swing.JTextArea(); displayPanel = new javax.swing.JPanel(); captionTable = new javax.swing.JTable(); statusBar = new javax.swing.JTextPane(); controlButtonPanel = new javax.swing.JPanel(); callButton = new javax.swing.JButton(); serviceLoopProgressBar = new javax.swing.JProgressBar(); autoSpeedToggleButton = new javax.swing.JToggleButton(); powerToggleButton = new javax.swing.JToggleButton(); runCampaignToggleButton = new javax.swing.JToggleButton(); endButton = new javax.swing.JButton(); phoneButton = new javax.swing.JButton(); stopCampaignButton = new javax.swing.JButton(); muteAudioToggleButton = new javax.swing.JToggleButton(); campaignProgressBar = new javax.swing.JProgressBar(); humanResponseSimulatorToggleButton = new javax.swing.JToggleButton(); registerToggleButton = new javax.swing.JToggleButton(); campaignComboBox = new javax.swing.JComboBox(); debugToggleButton = new javax.swing.JToggleButton(); resizeWindowButton = new javax.swing.JButton(); controlSliderPanel = new javax.swing.JPanel(); buttonPanel = new javax.swing.JPanel(); outboundSliderPanel = new javax.swing.JPanel(); vmUsageThresholdLabel = new javax.swing.JLabel(); vmUsagePauseValue = new javax.swing.JLabel(); vmUsageThresholdSlider = new javax.swing.JSlider(); memFreeThresholdLabel = new javax.swing.JLabel(); memFreeThresholdValue = new javax.swing.JLabel(); memFreeThresholdSlider = new javax.swing.JSlider(); heapMemFreeThresholdLabel = new javax.swing.JLabel(); heapMemFreeThresholdValue = new javax.swing.JLabel(); heapMemFreeThresholdSlider = new javax.swing.JSlider(); connectingTallyLimitLabel = new javax.swing.JLabel(); connectingTallyLimitValue = new javax.swing.JLabel(); connectingTallyLimitSlider = new javax.swing.JSlider(); callingTallyLimitLabel = new javax.swing.JLabel(); callingTallyLimitValue = new javax.swing.JLabel(); callingTallyLimitSlider = new javax.swing.JSlider(); establishedTallyLimitLabel = new javax.swing.JLabel(); establishedTallyLimitValue = new javax.swing.JLabel(); establishedTallyLimitSlider = new javax.swing.JSlider(); callSpeedLabel = new javax.swing.JLabel(); callSpeedValue = new javax.swing.JLabel(); callSpeedSlider = new javax.swing.JSlider(); performanceMeterPanel = new javax.swing.JPanel(); inboundSliderPanel = new javax.swing.JPanel(); registerSpeedLabel = new javax.swing.JLabel(); inboundRingingResponseDelayLabel = new javax.swing.JLabel(); inboundRingingResponseBusyRatioLabel = new javax.swing.JLabel(); inboundEndDelayLabel = new javax.swing.JLabel(); inboundEndDelayValue = new javax.swing.JLabel(); registerSpeedValue = new javax.swing.JLabel(); inboundRingingResponseDelayValue = new javax.swing.JLabel(); inboundRingingResponseBusyRatioValue = new javax.swing.JLabel(); registerSpeedSlider = new javax.swing.JSlider(); inboundRingingResponseDelaySlider = new javax.swing.JSlider(); inboundRingingResponseBusyRatioSlider = new javax.swing.JSlider(); inboundEndDelaySlider = new javax.swing.JSlider(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(new java.awt.Color(216, 216, 222)); setBounds(new java.awt.Rectangle(0, 22, 710, 796)); setFocusable(false);/* www . j a v a2 s .co m*/ setFont(new java.awt.Font("STHeiti", 0, 10)); setMinimumSize(new java.awt.Dimension(710, 598)); setName(""); // NOI18N setSize(new java.awt.Dimension(710, 830)); colorMaskPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); colorMaskPanel.setMaximumSize(new java.awt.Dimension(700, 785)); colorMaskPanel.setMinimumSize(new java.awt.Dimension(700, 400)); tabPane.setBackground(new java.awt.Color(204, 204, 204)); tabPane.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("STHeiti", 0, 13))); // NOI18N tabPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT); tabPane.setToolTipText(""); tabPane.setFocusTraversalKeysEnabled(false); tabPane.setFont(new java.awt.Font("STHeiti", 0, 13)); tabPane.setMaximumSize(new java.awt.Dimension(695, 390)); tabPane.setMinimumSize(new java.awt.Dimension(695, 390)); tabPane.setNextFocusableComponent(statisticsPanel); tabPane.setPreferredSize(new java.awt.Dimension(695, 390)); tabPane.setSize(new java.awt.Dimension(695, 390)); tabPane.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tabPaneMouseClicked(evt); } }); callCenterPanel.setBackground(new java.awt.Color(255, 255, 255)); callCenterPanel.setToolTipText("Visualised status & stats of all Phones in Pool"); callCenterPanel.setFocusTraversalKeysEnabled(false); callCenterPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); callCenterPanel.setNextFocusableComponent(statisticsPanel); callCenterPanel.setOpaque(false); callCenterPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { callCenterPanelKeyPressed(evt); } }); layeredImagePane.setFont(new java.awt.Font("STHeiti", 0, 13)); layeredImagePane.setMaximumSize(new java.awt.Dimension(670, 333)); layeredImagePane.setSize(new java.awt.Dimension(670, 333)); phonesPoolTableScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); phonesPoolTableScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); phonesPoolTableScrollPane.setAutoscrolls(true); phonesPoolTableScrollPane.setColumnHeaderView(null); phonesPoolTableScrollPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); phonesPoolTableScrollPane.setEnabled(false); phonesPoolTableScrollPane.setFocusTraversalKeysEnabled(false); phonesPoolTableScrollPane.setFocusable(false); phonesPoolTableScrollPane.setMaximumSize(new java.awt.Dimension(670, 330)); phonesPoolTableScrollPane.setMinimumSize(new java.awt.Dimension(670, 330)); phonesPoolTableScrollPane.setPreferredSize(new java.awt.Dimension(670, 330)); phonesPoolTable.setFont(new java.awt.Font("STHeiti", 0, 14)); // NOI18N phonesPoolTable.setForeground(new java.awt.Color(102, 102, 102)); phonesPoolTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { })); phonesPoolTable.setToolTipText("Double click to show Phone"); phonesPoolTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF); phonesPoolTable.setAutoscrolls(false); phonesPoolTable.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); phonesPoolTable.setDoubleBuffered(true); phonesPoolTable.setFocusTraversalKeysEnabled(false); phonesPoolTable.setFocusable(false); phonesPoolTable.setRequestFocusEnabled(false); phonesPoolTable.setRowSelectionAllowed(false); phonesPoolTable.setSelectionBackground(new java.awt.Color(204, 204, 204)); phonesPoolTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); phonesPoolTable.setShowGrid(false); phonesPoolTable.getTableHeader().setResizingAllowed(false); phonesPoolTable.getTableHeader().setReorderingAllowed(false); phonesPoolTable.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { phonesPoolTableMouseClicked(evt); } }); phonesPoolTableScrollPane.setViewportView(phonesPoolTable); phonesPoolTableScrollPane.setBounds(0, 0, 660, 330); layeredImagePane.add(phonesPoolTableScrollPane, javax.swing.JLayeredPane.DEFAULT_LAYER); imageBrandLabel.setFont(new java.awt.Font("STHeiti", 0, 48)); imageBrandLabel.setForeground(new java.awt.Color(255, 255, 255)); imageBrandLabel.setText("VoipStorm"); imageBrandLabel.setToolTipText(""); imageBrandLabel.setBounds(30, 30, 250, 50); layeredImagePane.add(imageBrandLabel, javax.swing.JLayeredPane.DEFAULT_LAYER); imageProductLabel.setFont(new java.awt.Font("STHeiti", 0, 18)); imageProductLabel.setForeground(new java.awt.Color(233, 232, 232)); imageProductLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); imageProductLabel.setText("ECallCenter 21"); imageProductLabel.setToolTipText(""); imageProductLabel.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); imageProductLabel.setBounds(30, 80, 140, 20); layeredImagePane.add(imageProductLabel, javax.swing.JLayeredPane.DEFAULT_LAYER); imagePostfixLabel.setFont(new java.awt.Font("STHeiti", 2, 18)); imagePostfixLabel.setForeground(new java.awt.Color(203, 254, 254)); imagePostfixLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); imagePostfixLabel.setText("st Century"); imagePostfixLabel.setToolTipText(""); imagePostfixLabel.setBounds(170, 80, 100, 20); layeredImagePane.add(imagePostfixLabel, javax.swing.JLayeredPane.DEFAULT_LAYER); imageLinkLabel.setFont(new java.awt.Font("STHeiti", 0, 14)); imageLinkLabel.setForeground(new java.awt.Color(204, 204, 204)); imageLinkLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); imageLinkLabel.setText("http://www.voipstorm.nl/"); imageLinkLabel.setToolTipText(""); imageLinkLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); imageLinkLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { imageLinkLabelMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { imageLinkLabelMouseExited(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { imageLinkLabelMouseEntered(evt); } }); imageLinkLabel.setBounds(240, 300, 190, 20); layeredImagePane.add(imageLinkLabel, javax.swing.JLayeredPane.DEFAULT_LAYER); imageIconLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); imageIconLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); imageIconLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/vsheader.jpg"))); // NOI18N imageIconLabel.setToolTipText(""); imageIconLabel.setMaximumSize(new java.awt.Dimension(670, 333)); imageIconLabel.setMinimumSize(new java.awt.Dimension(670, 333)); imageIconLabel.setOpaque(true); imageIconLabel.setPreferredSize(new java.awt.Dimension(670, 333)); imageIconLabel.setBounds(-2, 0, 670, 330); layeredImagePane.add(imageIconLabel, javax.swing.JLayeredPane.DEFAULT_LAYER); org.jdesktop.layout.GroupLayout callCenterPanelLayout = new org.jdesktop.layout.GroupLayout( callCenterPanel); callCenterPanel.setLayout(callCenterPanelLayout); callCenterPanelLayout.setHorizontalGroup( callCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(callCenterPanelLayout.createSequentialGroup().addContainerGap().add(layeredImagePane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 656, Short.MAX_VALUE))); callCenterPanelLayout .setVerticalGroup(callCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(callCenterPanelLayout.createSequentialGroup().addContainerGap() .add(layeredImagePane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 333, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); tabPane.addTab("Call Center", callCenterPanel); statisticsPanel.setToolTipText("Overview Overall Statistics Campaign"); statisticsPanel.setFocusTraversalKeysEnabled(false); statisticsPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); statisticsPanel.setNextFocusableComponent(graphPanel); statisticsPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { statisticsPanelKeyPressed(evt); } }); mainPanel.setBackground(new java.awt.Color(255, 255, 255)); mainPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); mainPanel.setMaximumSize(new java.awt.Dimension(1600, 1600)); mainPanel.setPreferredSize(new java.awt.Dimension(800, 241)); systemStatsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); systemStatsLabel.setForeground(new java.awt.Color(102, 102, 102)); systemStatsLabel.setText("System (Health)"); systemStatsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); systemStatsScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); systemStatsTable.setFont(new java.awt.Font("STHeiti", 0, 10)); // NOI18N systemStatsTable.setForeground(new java.awt.Color(102, 102, 102)); systemStatsTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { { "VM Usage", new Long(0), "%" }, { "Threads", new Long(0), "" }, { "MemFree", new Long(0), "MB" }, { "HeapMemMax", new Long(0), "MB" }, { "HeapMemTot", new Long(0), "MB" }, { "HeapMemFree", new Long(0), "MB" }, { " ", null, null } }, new String[] { "", "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Long.class, java.lang.String.class }; boolean[] canEdit = new boolean[] { false, false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); systemStatsTable.setToolTipText("System Utilization Statistics used by Automated Call Burst Rate Slider"); systemStatsTable.setAutoCreateRowSorter(true); systemStatsTable.setAutoscrolls(false); systemStatsTable.setDoubleBuffered(true); systemStatsTable.setFocusable(false); systemStatsTable.setMaximumSize(new java.awt.Dimension(55, 110)); systemStatsTable.setMinimumSize(new java.awt.Dimension(55, 110)); systemStatsTable.setName("name"); // NOI18N systemStatsTable.setPreferredSize(new java.awt.Dimension(55, 110)); systemStatsTable.setRowHeight(15); systemStatsTable.setRowSelectionAllowed(false); systemStatsTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); systemStatsTable.setShowGrid(false); systemStatsTable.setSize(new java.awt.Dimension(55, 110)); systemStatsScrollPane.setViewportView(systemStatsTable); systemStatsTable.getColumnModel().getColumn(0).setResizable(false); systemStatsTable.getColumnModel().getColumn(0).setPreferredWidth(80); systemStatsTable.getColumnModel().getColumn(1).setResizable(false); systemStatsTable.getColumnModel().getColumn(1).setPreferredWidth(50); systemStatsTable.getColumnModel().getColumn(2).setResizable(false); systemStatsTable.getColumnModel().getColumn(2).setPreferredWidth(20); orderLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); orderLabel.setForeground(new java.awt.Color(102, 102, 102)); orderLabel.setText("Order"); orderStatsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); orderStatsScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); orderTable.setFont(new java.awt.Font("STHeiti", 0, 10)); orderTable.setForeground(new java.awt.Color(102, 102, 102)); orderTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { { "Recipients", "-" }, { "Time Window", "-" }, { "Total Calls", "-" }, { "Call Duration", "-" }, { "Message Rate", "-" }, { "Message Rate", "-" }, { "SubTotal", "-" } }, new String[] { "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean[] { false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); orderTable.setToolTipText("Represents highlevel Running Campaign Info based on Customer Order"); orderTable.setAutoCreateRowSorter(true); orderTable.setAutoscrolls(false); orderTable.setDoubleBuffered(true); orderTable.setFocusable(false); orderTable.setMaximumSize(new java.awt.Dimension(55, 110)); orderTable.setMinimumSize(new java.awt.Dimension(55, 110)); orderTable.setName("name"); // NOI18N orderTable.setPreferredSize(new java.awt.Dimension(55, 110)); orderTable.setRowHeight(15); orderTable.setRowSelectionAllowed(false); orderTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); orderTable.setShowGrid(false); orderTable.setSize(new java.awt.Dimension(55, 110)); orderStatsScrollPane.setViewportView(orderTable); orderTable.getColumnModel().getColumn(0).setResizable(false); orderTable.getColumnModel().getColumn(0).setPreferredWidth(40); orderTable.getColumnModel().getColumn(1).setResizable(false); orderTable.getColumnModel().getColumn(1).setPreferredWidth(15); phoneStatsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); phoneStatsLabel.setForeground(new java.awt.Color(102, 102, 102)); phoneStatsLabel.setText("Phone Pool"); phoneStatsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); phoneStatsScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); phoneStatsScrollPane.setFont(new java.awt.Font("STHeiti", 0, 13)); phoneStatsTable.setFont(new java.awt.Font("STHeiti", 0, 10)); phoneStatsTable.setForeground(new java.awt.Color(102, 102, 102)); phoneStatsTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Phones", new Long(0) }, { "Processing", new Long(0) }, { "On", new Long(0) }, { "Registered", new Long(0) }, { "Listening", new Long(0) }, { "Connecting", new Long(0) }, { "Trying", new Long(0) }, { "Calling", new Long(0) }, { "Accepting", new Long(0) }, { "Ringing", new Long(0) }, { "Established", new Long(0) }, { "Total Calls", new Long(0) }, { " Total Established", new Long(0) }, { " ", null }, { " ", null }, { " ", null }, { " ", null }, { " ", null }, { " ", null }, { null, null }, { " ", null } }, new String[] { "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Long.class }; boolean[] canEdit = new boolean[] { true, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); phoneStatsTable.setToolTipText("Overall Status of all Phones in Pool"); phoneStatsTable.setAutoCreateRowSorter(true); phoneStatsTable.setAutoscrolls(false); phoneStatsTable.setDoubleBuffered(true); phoneStatsTable.setEditingColumn(0); phoneStatsTable.setEditingRow(0); phoneStatsTable.setFocusable(false); phoneStatsTable.setMaximumSize(new java.awt.Dimension(1400, 330)); phoneStatsTable.setMinimumSize(new java.awt.Dimension(30, 330)); phoneStatsTable.setName("name"); // NOI18N phoneStatsTable.setPreferredSize(new java.awt.Dimension(75, 330)); phoneStatsTable.setRowHeight(15); phoneStatsTable.setRowSelectionAllowed(false); phoneStatsTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); phoneStatsTable.setShowGrid(false); phoneStatsTable.setSize(new java.awt.Dimension(75, 190)); phoneStatsScrollPane.setViewportView(phoneStatsTable); phoneStatsTable.getColumnModel().getColumn(0).setResizable(false); phoneStatsTable.getColumnModel().getColumn(0).setPreferredWidth(40); phoneStatsTable.getColumnModel().getColumn(1).setResizable(false); phoneStatsTable.getColumnModel().getColumn(1).setPreferredWidth(40); reponseStatsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); reponseStatsLabel.setForeground(new java.awt.Color(102, 102, 102)); reponseStatsLabel.setText("Response"); responseStatsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); responseStatsScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); responseStatsTable.setFont(new java.awt.Font("STHeiti", 0, 10)); responseStatsTable.setForeground(new java.awt.Color(102, 102, 102)); responseStatsTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Info", "1XX", new Long(0) }, { "Success", "2XX", new Long(0) }, { "Redirection", "3XX", new Long(0) }, { "Client Error", "4XX", new Long(0) }, { "Server Error", "5XX", new Long(0) }, { "Gen. Error", "6XX", new Long(0) }, { "", "", null }, { null, null, null }, { null, null, null }, { null, null, null }, { null, null, null }, { "Timeout", null, new Long(0) }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null } }, new String[] { "", "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class, java.lang.Long.class }; boolean[] canEdit = new boolean[] { true, false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); responseStatsTable.setToolTipText("Represents Highlevel Proxy/Answerer Response Statistics"); responseStatsTable.setAutoCreateRowSorter(true); responseStatsTable.setAutoscrolls(false); responseStatsTable.setDoubleBuffered(true); responseStatsTable.setFocusable(false); responseStatsTable.setMaximumSize(new java.awt.Dimension(2000, 330)); responseStatsTable.setMinimumSize(new java.awt.Dimension(45, 330)); responseStatsTable.setName("name"); // NOI18N responseStatsTable.setPreferredSize(new java.awt.Dimension(95, 330)); responseStatsTable.setRowHeight(15); responseStatsTable.setRowSelectionAllowed(false); responseStatsTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); responseStatsTable.setShowGrid(false); responseStatsScrollPane.setViewportView(responseStatsTable); responseStatsTable.getColumnModel().getColumn(0).setResizable(false); responseStatsTable.getColumnModel().getColumn(0).setPreferredWidth(60); responseStatsTable.getColumnModel().getColumn(1).setResizable(false); responseStatsTable.getColumnModel().getColumn(1).setPreferredWidth(10); responseStatsTable.getColumnModel().getColumn(2).setResizable(false); responseStatsTable.getColumnModel().getColumn(2).setPreferredWidth(25); campaignLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); campaignLabel.setForeground(new java.awt.Color(102, 102, 102)); campaignLabel.setText("Campaign"); campaignScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); campaignScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); campaignTable.setFont(new java.awt.Font("STHeiti", 0, 10)); campaignTable.setForeground(new java.awt.Color(102, 102, 102)); campaignTable .setModel( new javax.swing.table.DefaultTableModel( new Object[][] { { "Start Sched", "-" }, { "End Sched", "-" }, { "Start Exp", "-" }, { "End Exp", "-" }, { "Start Reg", "-" }, { "End Reg", "-" }, { "Time Total", "-" }, { "Time Past", "-" }, { "Time ETA", "-" }, { "Throughput", "-" }, { " ", null }, { " ", null } }, new String[] { "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); campaignTable.setToolTipText("Time Statistics related to running Campaign"); campaignTable.setAutoCreateRowSorter(true); campaignTable.setAutoscrolls(false); campaignTable.setDoubleBuffered(true); campaignTable.setEditingColumn(0); campaignTable.setEditingRow(0); campaignTable.setFocusable(false); campaignTable.setMaximumSize(new java.awt.Dimension(55, 180)); campaignTable.setMinimumSize(new java.awt.Dimension(55, 180)); campaignTable.setName("name"); // NOI18N campaignTable.setPreferredSize(new java.awt.Dimension(55, 180)); campaignTable.setRowHeight(15); campaignTable.setRowSelectionAllowed(false); campaignTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); campaignTable.setShowGrid(false); campaignTable.setSize(new java.awt.Dimension(55, 160)); campaignScrollPane.setViewportView(campaignTable); campaignTable.getColumnModel().getColumn(0).setResizable(false); campaignTable.getColumnModel().getColumn(0).setPreferredWidth(30); campaignTable.getColumnModel().getColumn(1).setResizable(false); campaignTable.getColumnModel().getColumn(1).setPreferredWidth(75); turnoverStatsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); turnoverStatsLabel.setForeground(new java.awt.Color(102, 102, 102)); turnoverStatsLabel.setText("Turnover"); turnoverStatsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); turnoverStatsScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); turnoverStatsTable.setFont(new java.awt.Font("STHeiti", 0, 10)); turnoverStatsTable.setForeground(new java.awt.Color(102, 102, 102)); turnoverStatsTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Hourly", "", new Float(0.0) }, { "Progress", "", new Float(0.0) }, { "Total (excl.)", "", new Float(0.0) }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { " ", null, null }, { null, null, null } }, new String[] { "", "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class, java.lang.Float.class }; boolean[] canEdit = new boolean[] { false, false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); turnoverStatsTable.setToolTipText("Financial Statistics"); turnoverStatsTable.setAutoCreateRowSorter(true); turnoverStatsTable.setAutoscrolls(false); turnoverStatsTable.setDoubleBuffered(true); turnoverStatsTable.setFocusable(false); turnoverStatsTable.setMaximumSize(new java.awt.Dimension(55, 180)); turnoverStatsTable.setMinimumSize(new java.awt.Dimension(55, 180)); turnoverStatsTable.setName("name"); // NOI18N turnoverStatsTable.setPreferredSize(new java.awt.Dimension(55, 180)); turnoverStatsTable.setRowHeight(15); turnoverStatsTable.setRowSelectionAllowed(false); turnoverStatsTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); turnoverStatsTable.setShowGrid(false); turnoverStatsTable.setSize(new java.awt.Dimension(55, 160)); turnoverStatsScrollPane.setViewportView(turnoverStatsTable); turnoverStatsTable.getColumnModel().getColumn(0).setResizable(false); turnoverStatsTable.getColumnModel().getColumn(0).setPreferredWidth(60); turnoverStatsTable.getColumnModel().getColumn(1).setResizable(false); turnoverStatsTable.getColumnModel().getColumn(1).setPreferredWidth(10); turnoverStatsTable.getColumnModel().getColumn(2).setResizable(false); turnoverStatsTable.getColumnModel().getColumn(2).setPreferredWidth(50); org.jdesktop.layout.GroupLayout mainPanelLayout = new org.jdesktop.layout.GroupLayout(mainPanel); mainPanel.setLayout(mainPanelLayout); mainPanelLayout.setHorizontalGroup(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanelLayout.createSequentialGroup().add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanelLayout.createSequentialGroup().add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanelLayout.createSequentialGroup().add(60, 60, 60).add(systemStatsLabel)) .add(mainPanelLayout.createSequentialGroup().addContainerGap().add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(systemStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE) .add(campaignScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(mainPanelLayout.createSequentialGroup().add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(turnoverStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE) .add(orderStatsScrollPane, 0, 0, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(mainPanelLayout.createSequentialGroup().add(orderLabel).add(80, 80, 80)))) .add(org.jdesktop.layout.GroupLayout.TRAILING, mainPanelLayout.createSequentialGroup() .add(75, 75, 75).add(campaignLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 93, Short.MAX_VALUE) .add(turnoverStatsLabel).add(69, 69, 69))) .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add( org.jdesktop.layout.GroupLayout.LEADING, mainPanelLayout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(phoneStatsScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 140, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(responseStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.LEADING, mainPanelLayout.createSequentialGroup().add(43, 43, 43).add(phoneStatsLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 90, Short.MAX_VALUE) .add(reponseStatsLabel).add(53, 53, 53))) .addContainerGap())); mainPanelLayout.setVerticalGroup(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanelLayout.createSequentialGroup().add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanelLayout.createSequentialGroup() .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(reponseStatsLabel).add(phoneStatsLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phoneStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE) .add(responseStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE))) .add(mainPanelLayout.createSequentialGroup() .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(systemStatsLabel).add(orderLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mainPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(systemStatsScrollPane, 0, 0, Short.MAX_VALUE).add(orderStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(turnoverStatsLabel).add(campaignLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(turnoverStatsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, campaignScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)))) .addContainerGap())); org.jdesktop.layout.GroupLayout statisticsPanelLayout = new org.jdesktop.layout.GroupLayout( statisticsPanel); statisticsPanel.setLayout(statisticsPanelLayout); statisticsPanelLayout.setHorizontalGroup( statisticsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(mainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 662, Short.MAX_VALUE)); statisticsPanelLayout .setVerticalGroup(statisticsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)); tabPane.addTab("Statistics", statisticsPanel); graphPanel.setEnabled(false); graphPanel.setFocusTraversalKeysEnabled(false); graphPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); graphPanel.setNextFocusableComponent(phoneDisplayPanel); graphPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { graphPanelKeyPressed(evt); } }); org.jdesktop.layout.GroupLayout graphInnerPanelLayout = new org.jdesktop.layout.GroupLayout( graphInnerPanel); graphInnerPanel.setLayout(graphInnerPanelLayout); graphInnerPanelLayout.setHorizontalGroup(graphInnerPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 662, Short.MAX_VALUE)); graphInnerPanelLayout.setVerticalGroup(graphInnerPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 323, Short.MAX_VALUE)); org.jdesktop.layout.GroupLayout graphPanelLayout = new org.jdesktop.layout.GroupLayout(graphPanel); graphPanel.setLayout(graphPanelLayout); graphPanelLayout.setHorizontalGroup(graphPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 662, Short.MAX_VALUE) .add(graphPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( graphInnerPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); graphPanelLayout.setVerticalGroup(graphPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 335, Short.MAX_VALUE) .add(graphPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(graphPanelLayout.createSequentialGroup().addContainerGap() .add(graphInnerPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()))); tabPane.addTab("Graph", graphPanel); phoneDisplayTabPanel.setToolTipText("Display for all individual SoftPhones in Pool"); phoneDisplayTabPanel.setFocusTraversalKeysEnabled(false); phoneDisplayTabPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); phoneDisplayTabPanel.setNextFocusableComponent(netConfigPanel); phoneDisplayTabPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { phoneDisplayTabPanelKeyPressed(evt); } }); phoneDisplayPanel.setBackground(new java.awt.Color(255, 255, 255)); phoneDisplayPanel.setToolTipText(""); phoneDisplayPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseExited(java.awt.event.MouseEvent evt) { phoneDisplayPanelMouseExited(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { phoneDisplayPanelMouseEntered(evt); } }); softphoneInfoLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); softphoneInfoLabel.setForeground(new java.awt.Color(102, 102, 102)); softphoneInfoLabel.setToolTipText(""); proxyInfoLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); proxyInfoLabel.setForeground(new java.awt.Color(102, 102, 102)); proxyInfoLabel.setToolTipText(""); proxyInfoLabel.setHorizontalAlignment(SwingConstants.RIGHT); primaryStatusLabel.setFont(new java.awt.Font("STHeiti", 1, 24)); primaryStatusLabel.setForeground(new java.awt.Color(102, 102, 102)); primaryStatusLabel.setToolTipText(""); primaryStatusLabel.setHorizontalAlignment(SwingConstants.CENTER); primaryStatusDetailsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); primaryStatusDetailsLabel.setForeground(new java.awt.Color(102, 102, 102)); primaryStatusDetailsLabel.setToolTipText(""); primaryStatusDetailsLabel.setHorizontalAlignment(SwingConstants.CENTER); secondaryStatusLabel.setFont(new java.awt.Font("STHeiti", 1, 24)); secondaryStatusLabel.setForeground(new java.awt.Color(102, 102, 102)); secondaryStatusLabel.setToolTipText(""); secondaryStatusLabel.setHorizontalAlignment(SwingConstants.CENTER); secondaryStatusDetailsLabel.setFont(new java.awt.Font("STHeiti", 0, 12)); secondaryStatusDetailsLabel.setForeground(new java.awt.Color(102, 102, 102)); secondaryStatusDetailsLabel.setToolTipText(""); secondaryStatusDetailsLabel.setHorizontalAlignment(SwingConstants.CENTER); onPanel.setBackground(new java.awt.Color(255, 255, 255)); onPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); onPanel.setToolTipText("Powered On"); onLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); onLabel.setForeground(new java.awt.Color(204, 204, 204)); onLabel.setText("ON"); org.jdesktop.layout.GroupLayout onPanelLayout = new org.jdesktop.layout.GroupLayout(onPanel); onPanel.setLayout(onPanelLayout); onPanelLayout .setHorizontalGroup(onPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, onPanelLayout.createSequentialGroup() .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(onLabel).addContainerGap())); onPanelLayout.setVerticalGroup( onPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(onLabel)); idlePanel.setBackground(new java.awt.Color(255, 255, 255)); idlePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); idlePanel.setToolTipText("Phone is Ready"); idleLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); idleLabel.setForeground(new java.awt.Color(204, 204, 204)); idleLabel.setText("IDL"); org.jdesktop.layout.GroupLayout idlePanelLayout = new org.jdesktop.layout.GroupLayout(idlePanel); idlePanel.setLayout(idlePanelLayout); idlePanelLayout .setHorizontalGroup(idlePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, idlePanelLayout.createSequentialGroup() .addContainerGap(11, Short.MAX_VALUE).add(idleLabel).addContainerGap())); idlePanelLayout.setVerticalGroup( idlePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(idleLabel)); connectingPanel.setBackground(new java.awt.Color(255, 255, 255)); connectingPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); connectingPanel.setToolTipText("Connecting Callout"); connectingLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); connectingLabel.setForeground(new java.awt.Color(204, 204, 204)); connectingLabel.setText("CON"); org.jdesktop.layout.GroupLayout connectingPanelLayout = new org.jdesktop.layout.GroupLayout( connectingPanel); connectingPanel.setLayout(connectingPanelLayout); connectingPanelLayout.setHorizontalGroup( connectingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(connectingPanelLayout.createSequentialGroup().addContainerGap().add(connectingLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); connectingPanelLayout.setVerticalGroup(connectingPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(connectingLabel)); callingPanel.setBackground(new java.awt.Color(255, 255, 255)); callingPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); callingPanel.setToolTipText("Calling"); callingLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); callingLabel.setForeground(new java.awt.Color(204, 204, 204)); callingLabel.setText("CLL"); org.jdesktop.layout.GroupLayout callingPanelLayout = new org.jdesktop.layout.GroupLayout(callingPanel); callingPanel.setLayout(callingPanelLayout); callingPanelLayout .setHorizontalGroup(callingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(callingPanelLayout.createSequentialGroup().addContainerGap().add(callingLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); callingPanelLayout.setVerticalGroup( callingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(callingLabel)); ringingPanel.setBackground(new java.awt.Color(255, 255, 255)); ringingPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); ringingPanel.setToolTipText("Ringing"); ringingLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); ringingLabel.setForeground(new java.awt.Color(204, 204, 204)); ringingLabel.setText("RNG"); org.jdesktop.layout.GroupLayout ringingPanelLayout = new org.jdesktop.layout.GroupLayout(ringingPanel); ringingPanel.setLayout(ringingPanelLayout); ringingPanelLayout .setHorizontalGroup(ringingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, ringingPanelLayout.createSequentialGroup() .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(ringingLabel).addContainerGap())); ringingPanelLayout.setVerticalGroup( ringingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(ringingLabel)); acceptingPanel.setBackground(new java.awt.Color(255, 255, 255)); acceptingPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); acceptingPanel.setToolTipText("Accepting Incoming Call"); acceptingLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); acceptingLabel.setForeground(new java.awt.Color(204, 204, 204)); acceptingLabel.setText("ACC"); org.jdesktop.layout.GroupLayout acceptingPanelLayout = new org.jdesktop.layout.GroupLayout(acceptingPanel); acceptingPanel.setLayout(acceptingPanelLayout); acceptingPanelLayout.setHorizontalGroup( acceptingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(acceptingPanelLayout.createSequentialGroup().addContainerGap().add(acceptingLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); acceptingPanelLayout.setVerticalGroup(acceptingPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(acceptingLabel)); talkingPanel.setBackground(new java.awt.Color(255, 255, 255)); talkingPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); talkingPanel.setToolTipText("Phonecall Established (Talking)"); talkingLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); talkingLabel.setForeground(new java.awt.Color(204, 204, 204)); talkingLabel.setText("TALK"); org.jdesktop.layout.GroupLayout talkingPanelLayout = new org.jdesktop.layout.GroupLayout(talkingPanel); talkingPanel.setLayout(talkingPanelLayout); talkingPanelLayout .setHorizontalGroup(talkingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(talkingPanelLayout.createSequentialGroup().addContainerGap().add(talkingLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); talkingPanelLayout.setVerticalGroup( talkingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(talkingLabel)); registeredPanel.setBackground(new java.awt.Color(255, 255, 255)); registeredPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); registeredPanel.setToolTipText("Registered with Proxy (Incoming Proxy Calls Enabled)"); registeredLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); registeredLabel.setForeground(new java.awt.Color(204, 204, 204)); registeredLabel.setText("REG"); org.jdesktop.layout.GroupLayout registeredPanelLayout = new org.jdesktop.layout.GroupLayout( registeredPanel); registeredPanel.setLayout(registeredPanelLayout); registeredPanelLayout.setHorizontalGroup( registeredPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(registeredPanelLayout.createSequentialGroup().addContainerGap().add(registeredLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); registeredPanelLayout.setVerticalGroup(registeredPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(registeredLabel)); answerPanel.setBackground(new java.awt.Color(255, 255, 255)); answerPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); answerPanel.setToolTipText("Auto Answer Calls"); answerLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); answerLabel.setForeground(new java.awt.Color(204, 204, 204)); answerLabel.setText("ANS"); org.jdesktop.layout.GroupLayout answerPanelLayout = new org.jdesktop.layout.GroupLayout(answerPanel); answerPanel.setLayout(answerPanelLayout); answerPanelLayout .setHorizontalGroup(answerPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(answerPanelLayout.createSequentialGroup().addContainerGap().add(answerLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); answerPanelLayout.setVerticalGroup( answerPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(answerLabel)); mutePanel.setBackground(new java.awt.Color(255, 255, 255)); mutePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); mutePanel.setToolTipText("Mute Audio"); muteLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); muteLabel.setForeground(new java.awt.Color(204, 204, 204)); muteLabel.setText("MUT"); org.jdesktop.layout.GroupLayout mutePanelLayout = new org.jdesktop.layout.GroupLayout(mutePanel); mutePanel.setLayout(mutePanelLayout); mutePanelLayout .setHorizontalGroup(mutePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(mutePanelLayout.createSequentialGroup().addContainerGap().add(muteLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); mutePanelLayout.setVerticalGroup( mutePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(muteLabel)); cancelPanel.setBackground(new java.awt.Color(255, 255, 255)); cancelPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204))); cancelPanel.setToolTipText("Auto Cancel Calls"); cancelLabel.setFont(new java.awt.Font("STHeiti", 1, 8)); cancelLabel.setForeground(new java.awt.Color(204, 204, 204)); cancelLabel.setText("CAN"); org.jdesktop.layout.GroupLayout cancelPanelLayout = new org.jdesktop.layout.GroupLayout(cancelPanel); cancelPanel.setLayout(cancelPanelLayout); cancelPanelLayout .setHorizontalGroup(cancelPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(cancelPanelLayout.createSequentialGroup().addContainerGap().add(cancelLabel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); cancelPanelLayout.setVerticalGroup( cancelPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(cancelLabel)); org.jdesktop.layout.GroupLayout phoneDisplayPanelLayout = new org.jdesktop.layout.GroupLayout( phoneDisplayPanel); phoneDisplayPanel.setLayout(phoneDisplayPanelLayout); phoneDisplayPanelLayout.setHorizontalGroup(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phoneDisplayPanelLayout.createSequentialGroup().addContainerGap().add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phoneDisplayPanelLayout.createSequentialGroup().add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(primaryStatusLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE) .add(phoneDisplayPanelLayout.createSequentialGroup() .add(softphoneInfoLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 351, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(proxyInfoLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)) .add(primaryStatusDetailsLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE) .add(secondaryStatusDetailsLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE) .add(secondaryStatusLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE)) .addContainerGap()) .add(org.jdesktop.layout.GroupLayout.TRAILING, phoneDisplayPanelLayout.createSequentialGroup() .add(onPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(idlePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(connectingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(callingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(ringingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(acceptingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(talkingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(registeredPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(answerPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(mutePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(148, 148, 148))))); phoneDisplayPanelLayout.setVerticalGroup(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phoneDisplayPanelLayout.createSequentialGroup().add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(softphoneInfoLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(proxyInfoLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(24, 24, 24) .add(primaryStatusLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(primaryStatusDetailsLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(24, 24, 24) .add(secondaryStatusLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(secondaryStatusDetailsLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 143, Short.MAX_VALUE) .add(phoneDisplayPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(acceptingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, phoneDisplayPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(ringingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, phoneDisplayPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(callingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, phoneDisplayPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(connectingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, phoneDisplayPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(idlePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, onPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))) .add(talkingPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(phoneDisplayPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, registeredPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(answerPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(cancelPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(mutePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); org.jdesktop.layout.GroupLayout phoneDisplayTabPanelLayout = new org.jdesktop.layout.GroupLayout( phoneDisplayTabPanel); phoneDisplayTabPanel.setLayout(phoneDisplayTabPanelLayout); phoneDisplayTabPanelLayout.setHorizontalGroup( phoneDisplayTabPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( phoneDisplayPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); phoneDisplayTabPanelLayout.setVerticalGroup( phoneDisplayTabPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( phoneDisplayPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); tabPane.addTab("Display", phoneDisplayTabPanel); toolsInnerPanel.setBorder( javax.swing.BorderFactory.createTitledBorder(null, "Tools", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 14))); // NOI18N toolsInnerPanel.setToolTipText(""); toolsInnerPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { toolsInnerPanelMouseClicked(evt); } }); netManagerOutboundServerToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); netManagerOutboundServerToggleButton.setText("OutManagementClient"); netManagerOutboundServerToggleButton.setToolTipText("Outbound NetManager Server (Managed Mode)"); netManagerOutboundServerToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { netManagerOutboundServerToggleButtonActionPerformed(evt); } }); netManagerInboundServerToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); netManagerInboundServerToggleButton.setText("InManagementClient"); netManagerInboundServerToggleButton .setToolTipText("Start Inbound NetManager Server for CallCenter Manager"); netManagerInboundServerToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { netManagerInboundServerToggleButtonActionPerformed(evt); } }); controlsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Controls", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N displayLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); displayLabel.setText("Display"); enableDisplayCheckBox.setFont(new java.awt.Font("STHeiti", 0, 10)); enableDisplayCheckBox.setToolTipText("Enable SoftPhones Display Feedback"); enableDisplayCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); enableDisplayCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); enableDisplayCheckBox.setIconTextGap(0); snmpLabel1.setFont(new java.awt.Font("STHeiti", 0, 10)); snmpLabel1.setText("Scan"); smoothCheckBox.setFont(new java.awt.Font("STHeiti", 0, 10)); smoothCheckBox.setSelected(true); smoothCheckBox.setToolTipText("Smooth Meter Animation (disabling slightly increases performance)"); smoothCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); smoothCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); smoothCheckBox.setIconTextGap(0); scanCheckBox.setFont(new java.awt.Font("STHeiti", 0, 10)); scanCheckBox.setToolTipText("Campaign Scan Phonenumbers Mode"); scanCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); scanCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); scanCheckBox.setIconTextGap(0); smoothLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); smoothLabel.setText("Smooth"); org.jdesktop.layout.GroupLayout controlsPanelLayout = new org.jdesktop.layout.GroupLayout(controlsPanel); controlsPanel.setLayout(controlsPanelLayout); controlsPanelLayout.setHorizontalGroup(controlsPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlsPanelLayout.createSequentialGroup().addContainerGap() .add(controlsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(displayLabel).add(enableDisplayCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(snmpLabel1).add(scanCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(10, 10, 10) .add(controlsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(smoothLabel) .add(controlsPanelLayout.createSequentialGroup().add(6, 6, 6).add(smoothCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addContainerGap(183, Short.MAX_VALUE))); controlsPanelLayout.linkSize( new java.awt.Component[] { enableDisplayCheckBox, scanCheckBox, smoothCheckBox }, org.jdesktop.layout.GroupLayout.HORIZONTAL); controlsPanelLayout .setVerticalGroup(controlsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlsPanelLayout.createSequentialGroup().add(displayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(enableDisplayCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(12, 12, 12)) .add(controlsPanelLayout.createSequentialGroup() .add(controlsPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(snmpLabel1).add(smoothLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlsPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(smoothCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 21, Short.MAX_VALUE) .add(scanCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); controlsPanelLayout.linkSize( new java.awt.Component[] { enableDisplayCheckBox, scanCheckBox, smoothCheckBox }, org.jdesktop.layout.GroupLayout.VERTICAL); lookAndFeelPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Look and Feel", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N lookAndFeelGroup.add(lookAndFeelRButtonMotif); lookAndFeelRButtonMotif.setFont(new java.awt.Font("STHeiti", 0, 8)); lookAndFeelRButtonMotif.setText("Motif"); lookAndFeelRButtonMotif.setToolTipText("Set Look & Feel"); lookAndFeelRButtonMotif.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lookAndFeelRButtonMotifMouseClicked(evt); } }); lookAndFeelGroup.add(lookAndFeelRButtonGTK); lookAndFeelRButtonGTK.setFont(new java.awt.Font("STHeiti", 0, 8)); lookAndFeelRButtonGTK.setText("GTK"); lookAndFeelRButtonGTK.setToolTipText("Set Look & Feel"); lookAndFeelRButtonGTK.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lookAndFeelRButtonGTKMouseClicked(evt); } }); lookAndFeelGroup.add(lookAndFeelRButtonNimbus); lookAndFeelRButtonNimbus.setFont(new java.awt.Font("STHeiti", 0, 8)); lookAndFeelRButtonNimbus.setSelected(true); lookAndFeelRButtonNimbus.setText("Nimbus"); lookAndFeelRButtonNimbus.setToolTipText("Set Look & Feel"); lookAndFeelRButtonNimbus.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lookAndFeelRButtonNimbusMouseClicked(evt); } }); lookAndFeelGroup.add(lookAndFeelRButtonWindows); lookAndFeelRButtonWindows.setFont(new java.awt.Font("STHeiti", 0, 8)); lookAndFeelRButtonWindows.setText("Windows"); lookAndFeelRButtonWindows.setToolTipText("Set Look & Feel"); lookAndFeelRButtonWindows.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lookAndFeelRButtonWindowsMouseClicked(evt); } }); org.jdesktop.layout.GroupLayout lookAndFeelPanelLayout = new org.jdesktop.layout.GroupLayout( lookAndFeelPanel); lookAndFeelPanel.setLayout(lookAndFeelPanelLayout); lookAndFeelPanelLayout.setHorizontalGroup(lookAndFeelPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lookAndFeelPanelLayout.createSequentialGroup().add(19, 19, 19).add(lookAndFeelRButtonNimbus) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED).add(lookAndFeelRButtonWindows) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(lookAndFeelRButtonGTK) .add(18, 18, 18).add(lookAndFeelRButtonMotif).addContainerGap(18, Short.MAX_VALUE))); lookAndFeelPanelLayout.setVerticalGroup(lookAndFeelPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lookAndFeelPanelLayout.createSequentialGroup().addContainerGap() .add(lookAndFeelPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lookAndFeelRButtonNimbus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lookAndFeelRButtonWindows, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lookAndFeelRButtonGTK, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lookAndFeelRButtonMotif, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); org.jdesktop.layout.GroupLayout toolsInnerPanelLayout = new org.jdesktop.layout.GroupLayout( toolsInnerPanel); toolsInnerPanel.setLayout(toolsInnerPanelLayout); toolsInnerPanelLayout.setHorizontalGroup( toolsInnerPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(toolsInnerPanelLayout.createSequentialGroup().addContainerGap() .add(toolsInnerPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(org.jdesktop.layout.GroupLayout.LEADING, lookAndFeelPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, controlsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, toolsInnerPanelLayout.createSequentialGroup() .add(netManagerOutboundServerToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(netManagerInboundServerToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); toolsInnerPanelLayout.setVerticalGroup(toolsInnerPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(toolsInnerPanelLayout.createSequentialGroup().addContainerGap().add(toolsInnerPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(netManagerOutboundServerToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 37, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(netManagerInboundServerToggleButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(lookAndFeelPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(75, Short.MAX_VALUE))); toolsInnerPanelLayout.linkSize(new java.awt.Component[] { netManagerInboundServerToggleButton, netManagerOutboundServerToggleButton }, org.jdesktop.layout.GroupLayout.VERTICAL); sipInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "SIP Information", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 12))); // NOI18N sipInfoPanel.setToolTipText(""); destinationScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); destinationTextArea.setBackground(new java.awt.Color(204, 204, 204)); destinationTextArea.setColumns(1); destinationTextArea.setFont(new java.awt.Font("STHeiti", 0, 10)); destinationTextArea.setRows(16); destinationTextArea.setToolTipText("Telephone Addresses"); destinationTextArea.setEnabled(false); destinationTextArea.setMinimumSize(new java.awt.Dimension(330, 65)); destinationScrollPane.setViewportView(destinationTextArea); org.jdesktop.layout.GroupLayout sipInfoPanelLayout = new org.jdesktop.layout.GroupLayout(sipInfoPanel); sipInfoPanel.setLayout(sipInfoPanelLayout); sipInfoPanelLayout.setHorizontalGroup( sipInfoPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( destinationScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 261, Short.MAX_VALUE)); sipInfoPanelLayout .setVerticalGroup(sipInfoPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sipInfoPanelLayout .createSequentialGroup().addContainerGap().add(destinationScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE) .addContainerGap())); org.jdesktop.layout.GroupLayout toolsPanelLayout = new org.jdesktop.layout.GroupLayout(toolsPanel); toolsPanel.setLayout(toolsPanelLayout); toolsPanelLayout .setHorizontalGroup(toolsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(toolsPanelLayout.createSequentialGroup() .add(toolsInnerPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sipInfoPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(47, Short.MAX_VALUE))); toolsPanelLayout.setVerticalGroup(toolsPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(toolsPanelLayout.createSequentialGroup() .add(toolsInnerPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(54, 54, 54)) .add(toolsPanelLayout.createSequentialGroup() .add(sipInfoPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap())); toolsPanelLayout.linkSize(new java.awt.Component[] { sipInfoPanel, toolsInnerPanel }, org.jdesktop.layout.GroupLayout.VERTICAL); tabPane.addTab("Tools", toolsPanel); netConfigPanel.setToolTipText("Mainly Proxy Configuration"); netConfigPanel.setFocusTraversalKeysEnabled(false); netConfigPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); netConfigPanel.setNextFocusableComponent(logPanel); netConfigPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { netConfigPanelKeyPressed(evt); } }); authenticationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Network Configuration", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 12))); // NOI18N authenticationPanel.setToolTipText(""); iconsLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); iconsLabel.setText("Icons"); iconsCheckBox.setFont(new java.awt.Font("STHeiti", 0, 10)); iconsCheckBox.setSelected(true); iconsCheckBox.setToolTipText("Smooth needle movement Meters / Dials"); iconsCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); iconsCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); iconsCheckBox.setIconTextGap(0); clientIPLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); clientIPLabel.setText("Client"); clientIPField.setBackground(new java.awt.Color(204, 204, 204)); clientIPField.setFont(new java.awt.Font("STHeiti", 0, 10)); clientIPField.setToolTipText("Your computer's IP (Automatic)"); pubIPLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); pubIPLabel.setText("Pub IP"); pubIPField.setFont(new java.awt.Font("STHeiti", 0, 10)); pubIPField.setToolTipText( "Please fill in your public IP address (type: \"myip\" in google to find you public ip address)"); pubIPField.setNextFocusableComponent(usernameField); clientPortLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); clientPortLabel.setText("Port"); registerCheckBox.setFont(new java.awt.Font("STHeiti", 0, 10)); registerCheckBox.setToolTipText("Enable Automatic Proxy Login at startup"); registerCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); registerCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); registerCheckBox.setIconTextGap(0); registerLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); registerLabel.setText("Reg"); clientPortField.setBackground(new java.awt.Color(204, 204, 204)); clientPortField.setFont(new java.awt.Font("STHeiti", 0, 10)); clientPortField.setToolTipText("Client Port (Tip: \"auto\")"); clientPortField.setNextFocusableComponent(usernameField); domainLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); domainLabel.setText("Domain"); domainField.setFont(new java.awt.Font("STHeiti", 0, 10)); domainField.setToolTipText("Internet Telephone Provider Domain (Tip: sip1.budgetphone.nl)"); serverIPLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); serverIPLabel.setText("Server"); serverIPField.setFont(new java.awt.Font("STHeiti", 0, 10)); serverIPField.setToolTipText("Internet Telephone Provider Server (Tip: sip1.budgetphone.nl)"); serverIPField.setNextFocusableComponent(usernameField); serverPortLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); serverPortLabel.setText("Port"); serverPortField.setFont(new java.awt.Font("STHeiti", 0, 10)); serverPortField.setToolTipText("Internet Telephone Provider Port (Tip: \"5060\")"); serverPortField.setNextFocusableComponent(usernameField); pfixLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); pfixLabel.setText("PFix"); usersecretLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); usersecretLabel.setText("User"); suffixLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); suffixLabel.setText("SFix"); prefixField.setBackground(new java.awt.Color(204, 204, 204)); prefixField.setFont(new java.awt.Font("STHeiti", 0, 10)); prefixField.setToolTipText("Password Prefix (advanced usage normally not needed)"); prefixField.setNextFocusableComponent(usernameField); usernameField.setFont(new java.awt.Font("STHeiti", 0, 10)); usernameField.setToolTipText("Username (comes from your Internet Telephone Provider)"); suffixField.setBackground(new java.awt.Color(204, 204, 204)); suffixField.setFont(new java.awt.Font("STHeiti", 0, 10)); suffixField.setToolTipText("Password Suffix (advanced usage normally not needed)"); suffixField.setNextFocusableComponent(usernameField); saveConfigurationButton.setFont(new java.awt.Font("STHeiti", 0, 10)); saveConfigurationButton.setText("Save"); saveConfigurationButton.setToolTipText("Saves Config (Tip: Power Cycle again after Save)"); saveConfigurationButton.setFocusPainted(false); saveConfigurationButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveConfigurationButtonActionPerformed(evt); } }); toegangField.setFont(new java.awt.Font("STHeiti", 0, 10)); toegangField.setToolTipText("Password (comes from your Internet Telephone Provider)"); secretLabel.setFont(new java.awt.Font("STHeiti", 0, 10)); secretLabel.setText("Secr"); prefPhoneLinesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Preferred number of CallCenter Phone Lines", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N prefPhoneLinesSlider.setFont(new java.awt.Font("STHeiti", 0, 8)); prefPhoneLinesSlider.setMajorTickSpacing(50); prefPhoneLinesSlider.setMaximum(500); prefPhoneLinesSlider.setMinimum(100); prefPhoneLinesSlider.setMinorTickSpacing(25); prefPhoneLinesSlider.setPaintLabels(true); prefPhoneLinesSlider.setPaintTicks(true); prefPhoneLinesSlider.setSnapToTicks(true); prefPhoneLinesSlider.setToolTipText("The number of preferred CallCenter phonelines"); prefPhoneLinesSlider.setValue(500); org.jdesktop.layout.GroupLayout prefPhoneLinesPanelLayout = new org.jdesktop.layout.GroupLayout( prefPhoneLinesPanel); prefPhoneLinesPanel.setLayout(prefPhoneLinesPanelLayout); prefPhoneLinesPanelLayout.setHorizontalGroup( prefPhoneLinesPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(prefPhoneLinesPanelLayout .createSequentialGroup().add(18, 18, 18).add(prefPhoneLinesSlider, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 383, Short.MAX_VALUE) .addContainerGap())); prefPhoneLinesPanelLayout.setVerticalGroup( prefPhoneLinesPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(prefPhoneLinesPanelLayout.createSequentialGroup() .add(prefPhoneLinesSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(7, Short.MAX_VALUE))); org.jdesktop.layout.GroupLayout authenticationPanelLayout = new org.jdesktop.layout.GroupLayout( authenticationPanel); authenticationPanel.setLayout(authenticationPanelLayout); authenticationPanelLayout.setHorizontalGroup(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout.createSequentialGroup().addContainerGap() .add(authenticationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(prefPhoneLinesPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(authenticationPanelLayout.createSequentialGroup() .add(authenticationPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING, false) .add(clientIPLabel) .add(serverIPLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(domainLabel)) .add(13, 13, 13) .add(authenticationPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout.createSequentialGroup() .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(authenticationPanelLayout .createSequentialGroup() .add(pfixLabel).add(21, 21, 21)) .add(prefixField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(usernameField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 43, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(usersecretLabel)) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(toegangField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 53, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(secretLabel)) .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout .createSequentialGroup() .add(11, 11, 11).add(suffixLabel) .add(17, 17, 17)) .add(authenticationPanelLayout .createSequentialGroup() .addPreferredGap( org.jdesktop.layout.LayoutStyle.UNRELATED) .add(suffixField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE)))) .add(serverIPField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, authenticationPanelLayout.createSequentialGroup() .add(clientIPField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(pubIPLabel) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(pubIPField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 85, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(domainField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(authenticationPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout.createSequentialGroup() .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(clientPortLabel).add(serverPortLabel)) .add(17, 17, 17) .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, serverPortField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, clientPortField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE))) .add(authenticationPanelLayout.createSequentialGroup().add( registerCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(24, 24, 24) .add(authenticationPanelLayout.createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(iconsCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(iconsLabel))) .add(registerLabel)) .addContainerGap())) .add(org.jdesktop.layout.GroupLayout.TRAILING, authenticationPanelLayout.createSequentialGroup() .add(saveConfigurationButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(166, 166, 166))))); authenticationPanelLayout.linkSize(new java.awt.Component[] { clientPortLabel, serverPortLabel }, org.jdesktop.layout.GroupLayout.HORIZONTAL); authenticationPanelLayout.setVerticalGroup(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout.createSequentialGroup().addContainerGap() .add(authenticationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(authenticationPanelLayout.createSequentialGroup() .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(clientIPLabel).add(clientPortLabel) .add(clientIPField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(pubIPLabel).add(pubIPField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(domainLabel).add(domainField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(serverIPField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverIPLabel).add(serverPortLabel))) .add(authenticationPanelLayout.createSequentialGroup() .add(clientPortField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(47, 47, 47).add(serverPortField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(7, 7, 7) .add(authenticationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(authenticationPanelLayout.createSequentialGroup().add(suffixLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER) .add(prefixField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(toegangField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(usernameField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(suffixField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(registerCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(iconsCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .add(authenticationPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(pfixLabel).add(usersecretLabel).add(secretLabel)) .add(registerLabel).add(iconsLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(prefPhoneLinesPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(saveConfigurationButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap())); authenticationPanelLayout.linkSize(new java.awt.Component[] { clientIPLabel, domainLabel, serverIPLabel }, org.jdesktop.layout.GroupLayout.VERTICAL); authenticationPanelLayout.linkSize( new java.awt.Component[] { clientIPField, clientPortField, domainField, prefixField, pubIPField, serverIPField, serverPortField, suffixField, toegangField, usernameField }, org.jdesktop.layout.GroupLayout.VERTICAL); authenticationPanelLayout.linkSize(new java.awt.Component[] { clientPortLabel, serverPortLabel }, org.jdesktop.layout.GroupLayout.VERTICAL); org.jdesktop.layout.GroupLayout netConfigPanelLayout = new org.jdesktop.layout.GroupLayout(netConfigPanel); netConfigPanel.setLayout(netConfigPanelLayout); netConfigPanelLayout.setHorizontalGroup( netConfigPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, netConfigPanelLayout.createSequentialGroup().addContainerGap(114, Short.MAX_VALUE) .add(authenticationPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(111, 111, 111))); netConfigPanelLayout .setVerticalGroup(netConfigPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(netConfigPanelLayout.createSequentialGroup() .add(authenticationPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(67, Short.MAX_VALUE))); tabPane.addTab("Config", netConfigPanel); licensePanel.setName("licensePanel"); // NOI18N licensePanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { licensePanelMouseClicked(evt); } }); licenseTypePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "License Type", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N licenseTypePanel.setToolTipText(""); licenseTypePanel.setFont(new java.awt.Font("STHeiti", 0, 13)); licenseTypePanel.setMaximumSize(new java.awt.Dimension(200, 239)); licenseTypePanel.setPreferredSize(new java.awt.Dimension(200, 239)); licenseTypePanel.setSize(new java.awt.Dimension(200, 239)); vergunningTypeList.setFont(new java.awt.Font("Courier New", 1, 12)); vergunningTypeList.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Demo", "Standard", "Professional", "Enterprise" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); vergunningTypeList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); vergunningTypeList.setToolTipText(""); vergunningTypeList.setSelectedIndices(new int[] { 0 }); vergunningTypeList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { vergunningTypeListMouseClicked(evt); } }); jScrollPane1.setViewportView(vergunningTypeList); org.jdesktop.layout.GroupLayout licenseTypePanelLayout = new org.jdesktop.layout.GroupLayout( licenseTypePanel); licenseTypePanel.setLayout(licenseTypePanelLayout); licenseTypePanelLayout.setHorizontalGroup( licenseTypePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)); licenseTypePanelLayout.setVerticalGroup( licenseTypePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseTypePanelLayout.createSequentialGroup() .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 157, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(17, Short.MAX_VALUE))); licenseDatePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "License Start", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N licenseDatePanel.setToolTipText(""); licenseDatePanel.setFont(new java.awt.Font("STHeiti", 0, 13)); licenseDatePanel.setMaximumSize(new java.awt.Dimension(200, 239)); licenseDatePanel.setMinimumSize(new java.awt.Dimension(200, 239)); licenseDatePanel.setSize(new java.awt.Dimension(200, 239)); vergunningDateChooserPanel.setCurrentView(new datechooser.view.appearance.AppearancesList("Bordered", new datechooser.view.appearance.ViewAppearance("custom", new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(0, 0, 0), new java.awt.Color(0, 0, 255), false, true, new datechooser.view.appearance.swing.ButtonPainter()), new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(0, 0, 0), new java.awt.Color(0, 0, 255), true, true, new datechooser.view.appearance.swing.ButtonPainter()), new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(0, 0, 255), new java.awt.Color(0, 0, 255), false, true, new datechooser.view.appearance.swing.ButtonPainter()), new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(128, 128, 128), new java.awt.Color(0, 0, 255), false, true, new datechooser.view.appearance.swing.LabelPainter()), new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(0, 0, 0), new java.awt.Color(0, 0, 255), false, true, new datechooser.view.appearance.swing.LabelPainter()), new datechooser.view.appearance.swing.SwingCellAppearance( new java.awt.Font("Lucida Grande", java.awt.Font.PLAIN, 13), new java.awt.Color(0, 0, 0), new java.awt.Color(255, 0, 0), false, false, new datechooser.view.appearance.swing.ButtonPainter()), (datechooser.view.BackRenderer) null, false, true))); vergunningDateChooserPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder( javax.swing.border.EtchedBorder.LOWERED, (java.awt.Color) null, (java.awt.Color) null)); vergunningDateChooserPanel.setLocale(new java.util.Locale("en", "", "")); vergunningDateChooserPanel.setNavigateFont(new java.awt.Font("STHeiti", java.awt.Font.PLAIN, 10)); vergunningDateChooserPanel.setBehavior(datechooser.model.multiple.MultyModelBehavior.SELECT_SINGLE); vergunningDateChooserPanel.addSelectionChangedListener(new datechooser.events.SelectionChangedListener() { public void onSelectionChange(datechooser.events.SelectionChangedEvent evt) { vergunningDateChooserPanelOnSelectionChange(evt); } }); org.jdesktop.layout.GroupLayout licenseDatePanelLayout = new org.jdesktop.layout.GroupLayout( licenseDatePanel); licenseDatePanel.setLayout(licenseDatePanelLayout); licenseDatePanelLayout.setHorizontalGroup( licenseDatePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, licenseDatePanelLayout.createSequentialGroup() .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(vergunningDateChooserPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 220, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap())); licenseDatePanelLayout.setVerticalGroup( licenseDatePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseDatePanelLayout.createSequentialGroup() .add(vergunningDateChooserPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 155, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(19, Short.MAX_VALUE))); licensePeriodPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "License Period", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N licensePeriodPanel.setToolTipText(""); licensePeriodPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); licensePeriodPanel.setMaximumSize(new java.awt.Dimension(200, 239)); licensePeriodPanel.setPreferredSize(new java.awt.Dimension(200, 239)); licensePeriodPanel.setSize(new java.awt.Dimension(200, 239)); vergunningPeriodList.setFont(new java.awt.Font("Courier New", 1, 12)); vergunningPeriodList.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Month", "Year" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); vergunningPeriodList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); vergunningPeriodList.setToolTipText(""); vergunningPeriodList.setEnabled(false); vergunningPeriodList.setFocusable(false); vergunningPeriodList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { vergunningPeriodListMouseClicked(evt); } }); licensePeriodScrollPane.setViewportView(vergunningPeriodList); org.jdesktop.layout.GroupLayout licensePeriodPanelLayout = new org.jdesktop.layout.GroupLayout( licensePeriodPanel); licensePeriodPanel.setLayout(licensePeriodPanelLayout); licensePeriodPanelLayout.setHorizontalGroup(licensePeriodPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePeriodScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)); licensePeriodPanelLayout.setVerticalGroup( licensePeriodPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePeriodPanelLayout.createSequentialGroup() .add(licensePeriodScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 156, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(18, Short.MAX_VALUE))); activationCodePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Activation Code", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N activationCodePanel.setToolTipText(""); activationCodePanel.setFont(new java.awt.Font("STHeiti", 0, 13)); activationCodePanel.setMaximumSize(new java.awt.Dimension(200, 239)); activationCodePanel.setMinimumSize(new java.awt.Dimension(200, 239)); activationCodePanel.setSize(new java.awt.Dimension(200, 239)); activationCodeField.setBackground(new java.awt.Color(204, 204, 204)); activationCodeField.setFont(new java.awt.Font("Courier New", 1, 10)); activationCodeField.setToolTipText("Please give this ActivationCode to the Sales department"); activationCodeField.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); activationCodeField.setMaximumSize(new java.awt.Dimension(483, 20)); activationCodeField.setMinimumSize(new java.awt.Dimension(483, 20)); activationCodeField.setPreferredSize(new java.awt.Dimension(483, 20)); activationCodeField.setSize(new java.awt.Dimension(483, 20)); org.jdesktop.layout.GroupLayout activationCodePanelLayout = new org.jdesktop.layout.GroupLayout( activationCodePanel); activationCodePanel.setLayout(activationCodePanelLayout); activationCodePanelLayout .setHorizontalGroup( activationCodePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(activationCodePanelLayout.createSequentialGroup().add(activationCodeField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 461, Short.MAX_VALUE) .addContainerGap())); activationCodePanelLayout.setVerticalGroup( activationCodePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(activationCodePanelLayout.createSequentialGroup() .add(activationCodeField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(17, Short.MAX_VALUE))); licenseCodePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "License Code", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N licenseCodePanel.setToolTipText(""); licenseCodePanel.setFont(new java.awt.Font("STHeiti", 0, 13)); licenseCodePanel.setMaximumSize(new java.awt.Dimension(200, 239)); licenseCodePanel.setMinimumSize(new java.awt.Dimension(200, 239)); licenseCodePanel.setSize(new java.awt.Dimension(200, 239)); vergunningCodeField.setFont(new java.awt.Font("Courier New", 1, 10)); vergunningCodeField.setToolTipText( "Please fill in the LicenseCode here that you recieved from the Sales Department or Doubleclick to enter License Authorisation Code"); vergunningCodeField.setEnabled(false); vergunningCodeField.setMaximumSize(new java.awt.Dimension(483, 20)); vergunningCodeField.setMinimumSize(new java.awt.Dimension(483, 20)); vergunningCodeField.setPreferredSize(new java.awt.Dimension(483, 20)); vergunningCodeField.setSize(new java.awt.Dimension(483, 20)); vergunningCodeField.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { vergunningCodeFieldMouseClicked(evt); } }); vergunningCodeField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { vergunningCodeFieldActionPerformed(evt); } }); vergunningCodeField.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { vergunningCodeFieldKeyReleased(evt); } }); org.jdesktop.layout.GroupLayout licenseCodePanelLayout = new org.jdesktop.layout.GroupLayout( licenseCodePanel); licenseCodePanel.setLayout(licenseCodePanelLayout); licenseCodePanelLayout .setHorizontalGroup( licenseCodePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseCodePanelLayout.createSequentialGroup().add(vergunningCodeField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 461, Short.MAX_VALUE) .addContainerGap())); licenseCodePanelLayout.setVerticalGroup( licenseCodePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseCodePanelLayout.createSequentialGroup() .add(vergunningCodeField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(17, Short.MAX_VALUE))); licenseDetailsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "License Details", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10))); // NOI18N licenseDetailsPanel.setToolTipText(""); licenseDetailsPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); licenseDetailsPanel.setMaximumSize(new java.awt.Dimension(200, 239)); licenseDetailsPanel.setPreferredSize(new java.awt.Dimension(200, 239)); licenseDetailsPanel.setSize(new java.awt.Dimension(200, 239)); licenseDetailsScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); licenseDetailsScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); licenseDetailsScrollPane.setFont(new java.awt.Font("STHeiti", 0, 13)); vergunningDetailsTable.setFont(new java.awt.Font("STHeiti", 0, 8)); vergunningDetailsTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Licensed", null }, { "Type", null }, { "Period", null }, { "Start Date", null }, { "End Date", null }, { "Phonelines", null }, { "Calls / Hour", null }, { "Calls / Run", null }, { " Digits", null }, { "", null } }, new String[] { "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean[] { true, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); vergunningDetailsTable.setToolTipText("Overall Status of all Phones in Pool"); vergunningDetailsTable.setAutoCreateRowSorter(true); vergunningDetailsTable.setAutoscrolls(false); vergunningDetailsTable.setDoubleBuffered(true); vergunningDetailsTable.setEditingColumn(0); vergunningDetailsTable.setEditingRow(0); vergunningDetailsTable.setFocusable(false); vergunningDetailsTable.setMaximumSize(new java.awt.Dimension(75, 190)); vergunningDetailsTable.setMinimumSize(new java.awt.Dimension(75, 190)); vergunningDetailsTable.setName("name"); // NOI18N vergunningDetailsTable.setPreferredSize(new java.awt.Dimension(75, 190)); vergunningDetailsTable.setRowSelectionAllowed(false); vergunningDetailsTable.setSelectionBackground(new java.awt.Color(51, 102, 255)); vergunningDetailsTable.setShowGrid(false); vergunningDetailsTable.setSize(new java.awt.Dimension(75, 190)); licenseDetailsScrollPane.setViewportView(vergunningDetailsTable); vergunningDetailsTable.getColumnModel().getColumn(0).setResizable(false); vergunningDetailsTable.getColumnModel().getColumn(0).setPreferredWidth(50); vergunningDetailsTable.getColumnModel().getColumn(1).setResizable(false); vergunningDetailsTable.getColumnModel().getColumn(1).setPreferredWidth(50); org.jdesktop.layout.GroupLayout licenseDetailsPanelLayout = new org.jdesktop.layout.GroupLayout( licenseDetailsPanel); licenseDetailsPanel.setLayout(licenseDetailsPanelLayout); licenseDetailsPanelLayout.setHorizontalGroup(licenseDetailsPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseDetailsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)); licenseDetailsPanelLayout.setVerticalGroup( licenseDetailsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseDetailsPanelLayout.createSequentialGroup() .add(licenseDetailsScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 156, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(18, Short.MAX_VALUE))); applyVergunningButton.setFont(new java.awt.Font("STHeiti", 0, 14)); applyVergunningButton.setText("Apply License"); applyVergunningButton.setToolTipText("Apply LicenseCode"); applyVergunningButton.setEnabled(false); applyVergunningButton.setFocusPainted(false); applyVergunningButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { applyVergunningButtonActionPerformed(evt); } }); requestVergunningButton.setFont(new java.awt.Font("STHeiti", 0, 14)); requestVergunningButton.setText("Request License"); requestVergunningButton.setToolTipText("Request a License"); requestVergunningButton.setEnabled(false); requestVergunningButton.setFocusPainted(false); requestVergunningButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { requestVergunningButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout licensePanelLayout = new org.jdesktop.layout.GroupLayout(licensePanel); licensePanel.setLayout(licensePanelLayout); licensePanelLayout.setHorizontalGroup(licensePanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePanelLayout.createSequentialGroup().addContainerGap().add(licensePanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePanelLayout.createSequentialGroup() .add(licenseTypePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 128, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(licenseDatePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(licensePeriodPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 95, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(6, 6, 6)) .add(licensePanelLayout.createSequentialGroup() .add(activationCodePanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(licensePanelLayout.createSequentialGroup() .add(licenseCodePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(licensePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(requestVergunningButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(applyVergunningButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) .add(licenseDetailsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, Short.MAX_VALUE)) .add(56, 56, 56))); licensePanelLayout.linkSize(new java.awt.Component[] { activationCodePanel, licenseCodePanel }, org.jdesktop.layout.GroupLayout.HORIZONTAL); licensePanelLayout.setVerticalGroup(licensePanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licensePanelLayout.createSequentialGroup().add(licensePanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(licenseDatePanel, 0, 197, Short.MAX_VALUE) .add(licenseTypePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 197, Short.MAX_VALUE) .add(licensePeriodPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 197, Short.MAX_VALUE) .add(licenseDetailsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 197, Short.MAX_VALUE)) .add(5, 5, 5) .add(licensePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(requestVergunningButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE) .add(activationCodePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(licensePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(applyVergunningButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(licenseCodePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, Short.MAX_VALUE)) .addContainerGap())); licensePanelLayout.linkSize(new java.awt.Component[] { licenseDatePanel, licenseTypePanel }, org.jdesktop.layout.GroupLayout.VERTICAL); licensePanelLayout.linkSize(new java.awt.Component[] { activationCodePanel, licenseCodePanel }, org.jdesktop.layout.GroupLayout.VERTICAL); tabPane.addTab("License", licensePanel); logPanel.setToolTipText("Clicking clears Display"); logPanel.setFocusTraversalKeysEnabled(false); logPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); logPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { logPanelKeyPressed(evt); } }); logScrollPane.setForeground(new java.awt.Color(255, 255, 255)); logScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); logScrollPane.setDoubleBuffered(true); logScrollPane.setFont(new java.awt.Font("STHeiti", 0, 13)); textLogArea.setBackground(new java.awt.Color(51, 51, 51)); textLogArea.setColumns(20); textLogArea.setEditable(false); textLogArea.setFont(new java.awt.Font("Courier", 0, 8)); textLogArea.setForeground(new java.awt.Color(255, 255, 255)); textLogArea.setLineWrap(true); textLogArea.setRows(5); textLogArea.setToolTipText("Doubleclick to Clear"); textLogArea.setDoubleBuffered(true); textLogArea.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { textLogAreaMouseClicked(evt); } }); logScrollPane.setViewportView(textLogArea); org.jdesktop.layout.GroupLayout logPanelLayout = new org.jdesktop.layout.GroupLayout(logPanel); logPanel.setLayout(logPanelLayout); logPanelLayout .setHorizontalGroup(logPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(logScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 662, Short.MAX_VALUE)); logPanelLayout.setVerticalGroup(logPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, logScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)); tabPane.addTab("Log", logPanel); aboutPanel.setBackground(new java.awt.Color(51, 51, 51)); aboutPanel.setToolTipText("Background Information on this Product"); aboutPanel.setFocusTraversalKeysEnabled(false); aboutPanel.setFont(new java.awt.Font("STHeiti", 0, 12)); aboutPanel.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { aboutPanelKeyPressed(evt); } }); brandLabel.setFont(new java.awt.Font("STHeiti", 1, 24)); brandLabel.setForeground(new java.awt.Color(51, 51, 51)); brandLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); brandDescriptionLabel.setBackground(new java.awt.Color(51, 51, 51)); brandDescriptionLabel.setColumns(20); brandDescriptionLabel.setEditable(false); brandDescriptionLabel.setFont(new java.awt.Font("STHeiti", 0, 14)); brandDescriptionLabel.setForeground(new java.awt.Color(51, 51, 51)); brandDescriptionLabel.setLineWrap(true); brandDescriptionLabel.setRows(5); brandDescriptionLabel.setWrapStyleWord(true); brandDescriptionLabel.setAutoscrolls(false); brandDescriptionLabel.setBorder(null); brandDescriptionLabel.setDragEnabled(false); brandDescriptionLabel.setFocusable(false); productLabel.setFont(new java.awt.Font("STHeiti", 1, 24)); productLabel.setForeground(new java.awt.Color(51, 51, 51)); productLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); productDescriptionLabel.setBackground(new java.awt.Color(51, 51, 51)); productDescriptionLabel.setColumns(20); productDescriptionLabel.setEditable(false); productDescriptionLabel.setFont(new java.awt.Font("STHeiti", 0, 14)); productDescriptionLabel.setForeground(new java.awt.Color(51, 51, 51)); productDescriptionLabel.setLineWrap(true); productDescriptionLabel.setRows(5); productDescriptionLabel.setWrapStyleWord(true); productDescriptionLabel.setAutoscrolls(false); productDescriptionLabel.setBorder(null); productDescriptionLabel.setDragEnabled(false); productDescriptionLabel.setFocusable(false); copyrightLabel.setBackground(new java.awt.Color(51, 51, 51)); copyrightLabel.setColumns(20); copyrightLabel.setEditable(false); copyrightLabel.setFont(new java.awt.Font("STHeiti", 0, 14)); copyrightLabel.setForeground(new java.awt.Color(51, 51, 51)); copyrightLabel.setLineWrap(true); copyrightLabel.setRows(5); copyrightLabel.setWrapStyleWord(true); copyrightLabel.setAutoscrolls(false); copyrightLabel.setBorder(null); copyrightLabel.setDragEnabled(false); copyrightLabel.setFocusable(false); org.jdesktop.layout.GroupLayout aboutPanelLayout = new org.jdesktop.layout.GroupLayout(aboutPanel); aboutPanel.setLayout(aboutPanelLayout); aboutPanelLayout.setHorizontalGroup(aboutPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, aboutPanelLayout.createSequentialGroup().addContainerGap() .add(aboutPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, productDescriptionLabel) .add(org.jdesktop.layout.GroupLayout.LEADING, brandLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, brandDescriptionLabel) .add(org.jdesktop.layout.GroupLayout.LEADING, productLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE)) .add(22, 22, 22)) .add(aboutPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(aboutPanelLayout .createSequentialGroup().addContainerGap().add(copyrightLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE) .addContainerGap()))); aboutPanelLayout .linkSize( new java.awt.Component[] { brandDescriptionLabel, brandLabel, copyrightLabel, productDescriptionLabel, productLabel }, org.jdesktop.layout.GroupLayout.HORIZONTAL); aboutPanelLayout .setVerticalGroup(aboutPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(aboutPanelLayout.createSequentialGroup().addContainerGap() .add(brandLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(brandDescriptionLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(productLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(productDescriptionLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(92, Short.MAX_VALUE)) .add(aboutPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(aboutPanelLayout.createSequentialGroup().add(277, 277, 277) .add(copyrightLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(22, Short.MAX_VALUE)))); tabPane.addTab("About", aboutPanel); displayPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("")); displayPanel.setToolTipText(""); displayPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); displayPanel.setMaximumSize(new java.awt.Dimension(695, 105)); displayPanel.setMinimumSize(new java.awt.Dimension(695, 105)); displayPanel.setPreferredSize(new java.awt.Dimension(695, 105)); displayPanel.setSize(new java.awt.Dimension(695, 105)); captionTable.setBackground(new java.awt.Color(240, 240, 240)); captionTable.setFont(new java.awt.Font("STHeiti", 0, 10)); captionTable.setForeground(new java.awt.Color(102, 102, 102)); captionTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "", null, null, null, null, null, null, null, null, null, null }, { null, null, null, null, null, null, null, null, null, null, null }, { null, null, null, null, null, null, null, null, null, null, null } }, new String[] { "", "", "", "", "", "", "", "", "", "", "" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); captionTable.setToolTipText("CallCenter Statistics"); captionTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS); captionTable.setAutoscrolls(false); captionTable.setColumnSelectionAllowed(true); captionTable.setDoubleBuffered(true); captionTable.setEnabled(false); captionTable.setFocusable(false); captionTable.setIntercellSpacing(new java.awt.Dimension(0, 0)); captionTable.setMaximumSize(new java.awt.Dimension(660, 45)); captionTable.setMinimumSize(new java.awt.Dimension(660, 45)); captionTable.setPreferredSize(new java.awt.Dimension(660, 45)); captionTable.setRowHeight(15); captionTable.setRowSelectionAllowed(false); captionTable.setShowGrid(false); captionTable.setSize(new java.awt.Dimension(660, 45)); captionTable.setUpdateSelectionOnSort(false); captionTable.setVerifyInputWhenFocusTarget(false); statusBar.setBackground(new java.awt.Color(230, 230, 230)); statusBar.setBorder(javax.swing.BorderFactory.createEtchedBorder()); statusBar.setEditable(false); statusBar.setFont(new java.awt.Font("Synchro LET", 2, 14)); statusBar.setForeground(new java.awt.Color(102, 102, 102)); statusBar.setToolTipText("Status Bar"); statusBar.setMaximumSize(new java.awt.Dimension(500, 25)); statusBar.setMinimumSize(new java.awt.Dimension(500, 25)); statusBar.setPreferredSize(new java.awt.Dimension(500, 25)); statusBar.setSize(new java.awt.Dimension(500, 25)); org.jdesktop.layout.GroupLayout displayPanelLayout = new org.jdesktop.layout.GroupLayout(displayPanel); displayPanel.setLayout(displayPanelLayout); displayPanelLayout .setHorizontalGroup(displayPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(captionTable, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 683, Short.MAX_VALUE) .add(statusBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 683, Short.MAX_VALUE)); displayPanelLayout .setVerticalGroup(displayPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(displayPanelLayout.createSequentialGroup() .add(captionTable, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(statusBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE) .addContainerGap())); captionTable.getColumnModel().getSelectionModel() .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); captionTable.getColumnModel().getColumn(0).setResizable(false); captionTable.getColumnModel().getColumn(1).setResizable(false); captionTable.getColumnModel().getColumn(2).setResizable(false); captionTable.getColumnModel().getColumn(3).setResizable(false); captionTable.getColumnModel().getColumn(4).setResizable(false); captionTable.getColumnModel().getColumn(5).setResizable(false); captionTable.getColumnModel().getColumn(6).setResizable(false); captionTable.getColumnModel().getColumn(7).setResizable(false); captionTable.getColumnModel().getColumn(8).setResizable(false); captionTable.getColumnModel().getColumn(9).setResizable(false); captionTable.getColumnModel().getColumn(10).setResizable(false); controlButtonPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("STHeiti", 0, 13), new java.awt.Color(255, 255, 255))); // NOI18N controlButtonPanel.setMaximumSize(new java.awt.Dimension(695, 63)); controlButtonPanel.setMinimumSize(new java.awt.Dimension(695, 63)); controlButtonPanel.setPreferredSize(new java.awt.Dimension(695, 63)); controlButtonPanel.setSize(new java.awt.Dimension(695, 63)); callButton.setFont(new java.awt.Font("STHeiti", 0, 8)); callButton.setForeground(new java.awt.Color(51, 204, 0)); callButton.setText(""); callButton.setToolTipText("Call Button"); callButton.setEnabled(false); callButton.setFocusPainted(false); callButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { callButtonActionPerformed(evt); } }); serviceLoopProgressBar.setFont(new java.awt.Font("STHeiti", 0, 8)); serviceLoopProgressBar.setToolTipText("Service Progress"); serviceLoopProgressBar.setBorderPainted(false); serviceLoopProgressBar.setEnabled(false); serviceLoopProgressBar.setFocusTraversalKeysEnabled(false); serviceLoopProgressBar.setFocusable(false); serviceLoopProgressBar.setName("progressBar"); // NOI18N serviceLoopProgressBar.setOpaque(true); serviceLoopProgressBar.setStringPainted(true); autoSpeedToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); autoSpeedToggleButton.setSelected(true); autoSpeedToggleButton.setText(""); autoSpeedToggleButton.setToolTipText("Automatic Speed"); autoSpeedToggleButton.setEnabled(false); autoSpeedToggleButton.setFocusPainted(false); autoSpeedToggleButton.setFocusable(false); autoSpeedToggleButton.setMaximumSize(new java.awt.Dimension(55, 29)); autoSpeedToggleButton.setMinimumSize(new java.awt.Dimension(55, 29)); autoSpeedToggleButton.setPreferredSize(new java.awt.Dimension(55, 29)); autoSpeedToggleButton.setRequestFocusEnabled(false); autoSpeedToggleButton.setSize(new java.awt.Dimension(55, 29)); autoSpeedToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { autoSpeedToggleButtonActionPerformed(evt); } }); powerToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); powerToggleButton.setText(""); powerToggleButton.setToolTipText("Power Button"); powerToggleButton.setEnabled(false); powerToggleButton.setMaximumSize(new java.awt.Dimension(50, 29)); powerToggleButton.setMinimumSize(new java.awt.Dimension(50, 29)); powerToggleButton.setPreferredSize(new java.awt.Dimension(50, 29)); powerToggleButton.setSize(new java.awt.Dimension(55, 29)); powerToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { powerToggleButtonActionPerformed(evt); } }); runCampaignToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); runCampaignToggleButton.setText(""); runCampaignToggleButton.setToolTipText("Run / Pause Campaign"); runCampaignToggleButton.setEnabled(false); runCampaignToggleButton.setFocusPainted(false); runCampaignToggleButton.setFocusable(false); runCampaignToggleButton.setMaximumSize(new java.awt.Dimension(55, 29)); runCampaignToggleButton.setMinimumSize(new java.awt.Dimension(55, 29)); runCampaignToggleButton.setPreferredSize(new java.awt.Dimension(55, 29)); runCampaignToggleButton.setRequestFocusEnabled(false); runCampaignToggleButton.setSize(new java.awt.Dimension(55, 29)); runCampaignToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { runCampaignToggleButtonActionPerformed(evt); } }); endButton.setFont(new java.awt.Font("STHeiti", 0, 8)); endButton.setForeground(new java.awt.Color(255, 0, 0)); endButton.setText(""); endButton.setToolTipText("End Button"); endButton.setEnabled(false); endButton.setFocusPainted(false); endButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { endButtonActionPerformed(evt); } }); phoneButton.setFont(new java.awt.Font("STHeiti", 0, 8)); phoneButton.setForeground(new java.awt.Color(51, 51, 255)); phoneButton.setText(""); phoneButton.setToolTipText("SoftPhone"); phoneButton.setEnabled(false); phoneButton.setFocusPainted(false); phoneButton.setMaximumSize(new java.awt.Dimension(100, 29)); phoneButton.setMinimumSize(new java.awt.Dimension(100, 29)); phoneButton.setPreferredSize(new java.awt.Dimension(100, 29)); phoneButton.setSize(new java.awt.Dimension(35, 30)); phoneButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { phoneButtonActionPerformed(evt); } }); stopCampaignButton.setFont(new java.awt.Font("STHeiti", 0, 5)); stopCampaignButton.setText(""); stopCampaignButton.setToolTipText("Stop Campaign"); stopCampaignButton.setEnabled(false); stopCampaignButton.setFocusPainted(false); stopCampaignButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stopCampaignButtonActionPerformed(evt); } }); muteAudioToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); muteAudioToggleButton.setText(""); muteAudioToggleButton.setToolTipText("Mute Audio"); muteAudioToggleButton.setAlignmentY(0.0F); muteAudioToggleButton.setEnabled(false); muteAudioToggleButton.setFocusable(false); muteAudioToggleButton.setMaximumSize(new java.awt.Dimension(100, 30)); muteAudioToggleButton.setMinimumSize(new java.awt.Dimension(100, 30)); muteAudioToggleButton.setPreferredSize(new java.awt.Dimension(100, 30)); muteAudioToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { muteAudioToggleButtonActionPerformed(evt); } }); campaignProgressBar.setFont(new java.awt.Font("STHeiti", 0, 8)); campaignProgressBar.setMaximum(1000); campaignProgressBar.setToolTipText("Campaign Progress"); campaignProgressBar.setBorderPainted(false); campaignProgressBar.setEnabled(false); campaignProgressBar.setFocusTraversalKeysEnabled(false); campaignProgressBar.setFocusable(false); campaignProgressBar.setName("campaignProgressBar"); // NOI18N campaignProgressBar.setOpaque(true); campaignProgressBar.setStringPainted(true); humanResponseSimulatorToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); humanResponseSimulatorToggleButton.setText(""); humanResponseSimulatorToggleButton.setToolTipText("Simulate Human Behavior (Inbound)"); humanResponseSimulatorToggleButton.setAlignmentY(0.0F); humanResponseSimulatorToggleButton.setEnabled(false); humanResponseSimulatorToggleButton.setFocusable(false); humanResponseSimulatorToggleButton.setMaximumSize(new java.awt.Dimension(100, 30)); humanResponseSimulatorToggleButton.setMinimumSize(new java.awt.Dimension(100, 30)); humanResponseSimulatorToggleButton.setPreferredSize(new java.awt.Dimension(100, 30)); humanResponseSimulatorToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { humanResponseSimulatorToggleButtonActionPerformed(evt); } }); registerToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); registerToggleButton.setText(""); registerToggleButton.setToolTipText("Register to PBX (Switchboard)"); registerToggleButton.setAlignmentY(0.0F); registerToggleButton.setEnabled(false); registerToggleButton.setFocusable(false); registerToggleButton.setMaximumSize(new java.awt.Dimension(100, 30)); registerToggleButton.setMinimumSize(new java.awt.Dimension(100, 30)); registerToggleButton.setPreferredSize(new java.awt.Dimension(100, 30)); registerToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { registerToggleButtonActionPerformed(evt); } }); campaignComboBox.setFont(new java.awt.Font("STHeiti", 0, 8)); campaignComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" })); campaignComboBox.setToolTipText("Choose Campaign"); campaignComboBox.setEnabled(false); campaignComboBox.setFocusable(false); campaignComboBox.setMinimumSize(new java.awt.Dimension(70, 35)); campaignComboBox.setPreferredSize(new java.awt.Dimension(70, 35)); campaignComboBox.setSize(new java.awt.Dimension(70, 35)); campaignComboBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { campaignComboBoxActionPerformed(evt); } }); debugToggleButton.setFont(new java.awt.Font("STHeiti", 0, 8)); debugToggleButton.setText(""); debugToggleButton.setToolTipText("Debugging"); debugToggleButton.setAlignmentY(0.0F); debugToggleButton.setEnabled(false); debugToggleButton.setFocusable(false); debugToggleButton.setMaximumSize(new java.awt.Dimension(100, 30)); debugToggleButton.setMinimumSize(new java.awt.Dimension(100, 30)); debugToggleButton.setPreferredSize(new java.awt.Dimension(100, 30)); debugToggleButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { debugToggleButtonActionPerformed(evt); } }); resizeWindowButton.setFont(new java.awt.Font("STHeiti", 0, 8)); resizeWindowButton.setText(""); resizeWindowButton.setToolTipText("Hide Controls"); resizeWindowButton.setFocusPainted(false); resizeWindowButton.setMaximumSize(new java.awt.Dimension(100, 29)); resizeWindowButton.setMinimumSize(new java.awt.Dimension(100, 29)); resizeWindowButton.setPreferredSize(new java.awt.Dimension(100, 29)); resizeWindowButton.setSize(new java.awt.Dimension(35, 30)); resizeWindowButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { resizeWindowButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout controlButtonPanelLayout = new org.jdesktop.layout.GroupLayout( controlButtonPanel); controlButtonPanel.setLayout(controlButtonPanelLayout); controlButtonPanelLayout.setHorizontalGroup(controlButtonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlButtonPanelLayout.createSequentialGroup().addContainerGap() .add(controlButtonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(controlButtonPanelLayout.createSequentialGroup() .add(registerToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 38, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(humanResponseSimulatorToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(muteAudioToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(debugToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(serviceLoopProgressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(9, 9, 9) .add(controlButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(controlButtonPanelLayout.createSequentialGroup() .add(phoneButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(powerToggleButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(resizeWindowButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(campaignComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(runCampaignToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 38, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(stopCampaignButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(callButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(endButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(autoSpeedToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(7, 7, 7)) .add(controlButtonPanelLayout .createSequentialGroup().add(campaignProgressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE) .addContainerGap())))); controlButtonPanelLayout .linkSize( new java.awt.Component[] { debugToggleButton, humanResponseSimulatorToggleButton, muteAudioToggleButton, registerToggleButton }, org.jdesktop.layout.GroupLayout.HORIZONTAL); controlButtonPanelLayout .linkSize( new java.awt.Component[] { autoSpeedToggleButton, callButton, endButton, phoneButton, runCampaignToggleButton, stopCampaignButton }, org.jdesktop.layout.GroupLayout.HORIZONTAL); controlButtonPanelLayout.setVerticalGroup(controlButtonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlButtonPanelLayout.createSequentialGroup().addContainerGap().add(controlButtonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(debugToggleButton, 0, 0, Short.MAX_VALUE) .add(phoneButton, 0, 0, Short.MAX_VALUE) .add(powerToggleButton, 0, 0, Short.MAX_VALUE)) .add(registerToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(humanResponseSimulatorToggleButton, 0, 0, Short.MAX_VALUE) .add(muteAudioToggleButton, 0, 0, Short.MAX_VALUE) .add(autoSpeedToggleButton, 0, 0, Short.MAX_VALUE) .add(runCampaignToggleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(stopCampaignButton, 0, 0, Short.MAX_VALUE).add(endButton, 0, 0, Short.MAX_VALUE) .add(callButton, 0, 0, Short.MAX_VALUE).add(campaignComboBox, 0, 0, Short.MAX_VALUE) .add(resizeWindowButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(serviceLoopProgressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(campaignProgressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(9, 9, 9))); controlButtonPanelLayout .linkSize( new java.awt.Component[] { autoSpeedToggleButton, callButton, campaignComboBox, debugToggleButton, endButton, humanResponseSimulatorToggleButton, muteAudioToggleButton, phoneButton, powerToggleButton, registerToggleButton, resizeWindowButton, runCampaignToggleButton, stopCampaignButton }, org.jdesktop.layout.GroupLayout.VERTICAL); controlSliderPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("STHeiti", 0, 10), new java.awt.Color(51, 51, 51))); // NOI18N controlSliderPanel.setToolTipText(""); controlSliderPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); controlSliderPanel.setMaximumSize(new java.awt.Dimension(695, 220)); controlSliderPanel.setMinimumSize(new java.awt.Dimension(695, 0)); controlSliderPanel.setPreferredSize(new java.awt.Dimension(695, 220)); controlSliderPanel.setSize(new java.awt.Dimension(695, 220)); buttonPanel.setToolTipText(""); buttonPanel.setFont(new java.awt.Font("STHeiti", 0, 10)); buttonPanel.setMaximumSize(new java.awt.Dimension(670, 32767)); buttonPanel.setMinimumSize(new java.awt.Dimension(670, 0)); buttonPanel.setPreferredSize(new java.awt.Dimension(670, 252)); outboundSliderPanel.setToolTipText(""); outboundSliderPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); outboundSliderPanel.setOpaque(false); outboundSliderPanel.setPreferredSize(new java.awt.Dimension(304, 190)); vmUsageThresholdLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); vmUsageThresholdLabel.setText("CPU %"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); vmUsagePauseValue.setFont(new java.awt.Font("STHeiti", 0, 8)); vmUsagePauseValue.setText("0"); vmUsagePauseValue.setHorizontalAlignment(SwingConstants.CENTER); vmUsageThresholdSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); vmUsageThresholdSlider.setMajorTickSpacing(10); vmUsageThresholdSlider.setMinorTickSpacing(1); vmUsageThresholdSlider.setOrientation(javax.swing.JSlider.VERTICAL); vmUsageThresholdSlider.setPaintLabels(true); vmUsageThresholdSlider.setPaintTicks(true); vmUsageThresholdSlider.setSnapToTicks(true); vmUsageThresholdSlider.setToolTipText("VM Usage Threshold (Pause Campaign)"); vmUsageThresholdSlider.setValue(100); vmUsageThresholdSlider.setFocusable(false); vmUsageThresholdSlider.setMaximumSize(new java.awt.Dimension(40, 150)); vmUsageThresholdSlider.setMinimumSize(new java.awt.Dimension(40, 150)); vmUsageThresholdSlider.setPreferredSize(new java.awt.Dimension(40, 150)); vmUsageThresholdSlider.setSize(new java.awt.Dimension(40, 150)); vmUsageThresholdSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { vmUsageThresholdSliderStateChanged(evt); } }); memFreeThresholdLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); memFreeThresholdLabel.setText("MF MB"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); memFreeThresholdValue.setFont(new java.awt.Font("STHeiti", 0, 8)); memFreeThresholdValue.setText("0"); memFreeThresholdValue.setHorizontalAlignment(SwingConstants.CENTER); memFreeThresholdSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); memFreeThresholdSlider.setMajorTickSpacing(10); memFreeThresholdSlider.setMinorTickSpacing(1); memFreeThresholdSlider.setOrientation(javax.swing.JSlider.VERTICAL); memFreeThresholdSlider.setPaintLabels(true); memFreeThresholdSlider.setPaintTicks(true); memFreeThresholdSlider.setSnapToTicks(true); memFreeThresholdSlider.setToolTipText("Memory Free Threshold (Pause Campaign)"); memFreeThresholdSlider.setValue(5); memFreeThresholdSlider.setFocusable(false); memFreeThresholdSlider.setMaximumSize(new java.awt.Dimension(40, 150)); memFreeThresholdSlider.setMinimumSize(new java.awt.Dimension(40, 150)); memFreeThresholdSlider.setPreferredSize(new java.awt.Dimension(40, 150)); memFreeThresholdSlider.setSize(new java.awt.Dimension(40, 150)); memFreeThresholdSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { memFreeThresholdSliderStateChanged(evt); } }); heapMemFreeThresholdLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); heapMemFreeThresholdLabel.setText("HMF MB"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); heapMemFreeThresholdValue.setFont(new java.awt.Font("STHeiti", 0, 8)); heapMemFreeThresholdValue.setText("0"); heapMemFreeThresholdValue.setHorizontalAlignment(SwingConstants.CENTER); heapMemFreeThresholdSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); heapMemFreeThresholdSlider.setMajorTickSpacing(10); heapMemFreeThresholdSlider.setMinorTickSpacing(1); heapMemFreeThresholdSlider.setOrientation(javax.swing.JSlider.VERTICAL); heapMemFreeThresholdSlider.setPaintLabels(true); heapMemFreeThresholdSlider.setPaintTicks(true); heapMemFreeThresholdSlider.setSnapToTicks(true); heapMemFreeThresholdSlider.setToolTipText("HeapMemory Free Threshold (Pause Campaign)"); heapMemFreeThresholdSlider.setValue(0); heapMemFreeThresholdSlider.setFocusable(false); heapMemFreeThresholdSlider.setMaximumSize(new java.awt.Dimension(40, 150)); heapMemFreeThresholdSlider.setMinimumSize(new java.awt.Dimension(40, 150)); heapMemFreeThresholdSlider.setPreferredSize(new java.awt.Dimension(40, 150)); heapMemFreeThresholdSlider.setSize(new java.awt.Dimension(40, 150)); heapMemFreeThresholdSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { heapMemFreeThresholdSliderStateChanged(evt); } }); connectingTallyLimitLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); connectingTallyLimitLabel.setText("CON"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); connectingTallyLimitValue.setFont(new java.awt.Font("STHeiti", 0, 8)); connectingTallyLimitValue.setText("0"); heapMemFreeThresholdValue.setHorizontalAlignment(SwingConstants.CENTER); connectingTallyLimitSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); connectingTallyLimitSlider.setMajorTickSpacing(10); connectingTallyLimitSlider.setMinorTickSpacing(1); connectingTallyLimitSlider.setOrientation(javax.swing.JSlider.VERTICAL); connectingTallyLimitSlider.setPaintLabels(true); connectingTallyLimitSlider.setPaintTicks(true); connectingTallyLimitSlider.setSnapToTicks(true); connectingTallyLimitSlider.setToolTipText("Concurrent Connecting States Maximum (Pause Campaign)"); connectingTallyLimitSlider.setValue(10); connectingTallyLimitSlider.setFocusable(false); connectingTallyLimitSlider.setMaximumSize(new java.awt.Dimension(40, 150)); connectingTallyLimitSlider.setMinimumSize(new java.awt.Dimension(40, 150)); connectingTallyLimitSlider.setName(""); // NOI18N connectingTallyLimitSlider.setPreferredSize(new java.awt.Dimension(40, 150)); connectingTallyLimitSlider.setSize(new java.awt.Dimension(40, 150)); connectingTallyLimitSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { connectingTallyLimitSliderStateChanged(evt); } }); callingTallyLimitLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); callingTallyLimitLabel.setText("CALL"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); callingTallyLimitValue.setFont(new java.awt.Font("STHeiti", 0, 8)); callingTallyLimitValue.setText("0"); callingTallyLimitValue.setHorizontalAlignment(SwingConstants.CENTER); callingTallyLimitSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); callingTallyLimitSlider.setMajorTickSpacing(10); callingTallyLimitSlider.setMaximum(200); callingTallyLimitSlider.setMinorTickSpacing(5); callingTallyLimitSlider.setOrientation(javax.swing.JSlider.VERTICAL); callingTallyLimitSlider.setPaintLabels(true); callingTallyLimitSlider.setPaintTicks(true); callingTallyLimitSlider.setSnapToTicks(true); callingTallyLimitSlider.setToolTipText("Concurrent Calls Maximum (Pause Campaign)"); callingTallyLimitSlider.setValue(100); callingTallyLimitSlider.setExtent(20); callingTallyLimitSlider.setFocusable(false); callingTallyLimitSlider.setMaximumSize(new java.awt.Dimension(40, 150)); callingTallyLimitSlider.setMinimumSize(new java.awt.Dimension(40, 150)); callingTallyLimitSlider.setPreferredSize(new java.awt.Dimension(40, 150)); callingTallyLimitSlider.setSize(new java.awt.Dimension(40, 150)); callingTallyLimitSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { callingTallyLimitSliderStateChanged(evt); } }); establishedTallyLimitLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); establishedTallyLimitLabel.setText("EST"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); establishedTallyLimitValue.setFont(new java.awt.Font("STHeiti", 0, 8)); establishedTallyLimitValue.setText("0"); establishedTallyLimitValue.setHorizontalAlignment(SwingConstants.CENTER); establishedTallyLimitSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); establishedTallyLimitSlider.setMajorTickSpacing(10); establishedTallyLimitSlider.setMaximum(200); establishedTallyLimitSlider.setMinorTickSpacing(5); establishedTallyLimitSlider.setOrientation(javax.swing.JSlider.VERTICAL); establishedTallyLimitSlider.setPaintLabels(true); establishedTallyLimitSlider.setPaintTicks(true); establishedTallyLimitSlider.setSnapToTicks(true); establishedTallyLimitSlider.setToolTipText("Concurrent Established Calls Maximum (Pause Campaign)"); establishedTallyLimitSlider.setFocusable(false); establishedTallyLimitSlider.setMaximumSize(new java.awt.Dimension(40, 150)); establishedTallyLimitSlider.setMinimumSize(new java.awt.Dimension(40, 150)); establishedTallyLimitSlider.setPreferredSize(new java.awt.Dimension(40, 150)); establishedTallyLimitSlider.setSize(new java.awt.Dimension(40, 150)); establishedTallyLimitSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { establishedTallyLimitSliderStateChanged(evt); } }); callSpeedLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); callSpeedLabel.setText("Speed"); callSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); callSpeedValue.setFont(new java.awt.Font("STHeiti", 0, 8)); callSpeedValue.setText("0"); callSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); callSpeedSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); callSpeedSlider.setMajorTickSpacing(1000); callSpeedSlider.setMaximum(10000); callSpeedSlider.setMinimum(350); callSpeedSlider.setMinorTickSpacing(1); callSpeedSlider.setOrientation(javax.swing.JSlider.VERTICAL); callSpeedSlider.setPaintLabels(true); callSpeedSlider.setPaintTicks(true); callSpeedSlider.setSnapToTicks(true); callSpeedSlider.setToolTipText("Automated Outbound Call Rate (mSec)"); callSpeedSlider.setFocusable(false); callSpeedSlider.setInverted(true); callSpeedSlider.setMaximumSize(new java.awt.Dimension(40, 150)); callSpeedSlider.setMinimumSize(new java.awt.Dimension(40, 150)); callSpeedSlider.setPreferredSize(new java.awt.Dimension(40, 150)); callSpeedSlider.setSize(new java.awt.Dimension(40, 150)); callSpeedSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { callSpeedSliderStateChanged(evt); } }); org.jdesktop.layout.GroupLayout outboundSliderPanelLayout = new org.jdesktop.layout.GroupLayout( outboundSliderPanel); outboundSliderPanel.setLayout(outboundSliderPanelLayout); outboundSliderPanelLayout.setHorizontalGroup(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(outboundSliderPanelLayout.createSequentialGroup().addContainerGap() .add(outboundSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(vmUsageThresholdSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(memFreeThresholdSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(heapMemFreeThresholdSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(connectingTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(callingTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(establishedTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(callSpeedSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap()) .add(outboundSliderPanelLayout.createSequentialGroup() .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(vmUsageThresholdLabel).add(14, 14, 14)) .add(vmUsagePauseValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(10, 10, 10) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(memFreeThresholdValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(16, 16, 16)) .add(outboundSliderPanelLayout.createSequentialGroup() .add(memFreeThresholdLabel).add(11, 11, 11))) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(heapMemFreeThresholdLabel).add(heapMemFreeThresholdValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(connectingTallyLimitLabel).add(7, 7, 7)) .add(connectingTallyLimitValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(18, 18, 18) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, callingTallyLimitLabel) .add(org.jdesktop.layout.GroupLayout.TRAILING, callingTallyLimitValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(18, 18, 18) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(establishedTallyLimitLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(establishedTallyLimitValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(callSpeedValue, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(callSpeedLabel)) .add(28, 28, 28))))); outboundSliderPanelLayout.linkSize( new java.awt.Component[] { connectingTallyLimitSlider, heapMemFreeThresholdSlider }, org.jdesktop.layout.GroupLayout.HORIZONTAL); outboundSliderPanelLayout.setVerticalGroup(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(outboundSliderPanelLayout.createSequentialGroup().addContainerGap() .add(outboundSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(vmUsageThresholdLabel) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(outboundSliderPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.LEADING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(memFreeThresholdLabel) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(memFreeThresholdValue)) .add(outboundSliderPanelLayout.createSequentialGroup() .add(15, 15, 15).add(heapMemFreeThresholdValue)) .add(heapMemFreeThresholdLabel) .add(outboundSliderPanelLayout.createSequentialGroup() .add(connectingTallyLimitLabel) .addPreferredGap( org.jdesktop.layout.LayoutStyle.RELATED) .add(connectingTallyLimitValue))) .add(vmUsagePauseValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(outboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(outboundSliderPanelLayout.createSequentialGroup() .add(establishedTallyLimitLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(establishedTallyLimitValue)) .add(outboundSliderPanelLayout.createSequentialGroup() .add(callingTallyLimitLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(callingTallyLimitValue))) .add(outboundSliderPanelLayout.createSequentialGroup().add(callSpeedLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(callSpeedValue))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(outboundSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(establishedTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(callingTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(connectingTallyLimitSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(heapMemFreeThresholdSlider, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) .add(memFreeThresholdSlider, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) .add(vmUsageThresholdSlider, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) .add(callSpeedSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(186, 186, 186))); performanceMeterPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Calls per Hour", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("STHeiti", 0, 10), new java.awt.Color(102, 102, 102))); // NOI18N performanceMeterPanel.setToolTipText("Call Speed & VM Workload"); performanceMeterPanel.setFocusable(false); performanceMeterPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); performanceMeterPanel.setMaximumSize(new java.awt.Dimension(190, 190)); performanceMeterPanel.setMinimumSize(new java.awt.Dimension(190, 190)); performanceMeterPanel.setPreferredSize(new java.awt.Dimension(190, 190)); performanceMeterPanel.setSize(new java.awt.Dimension(190, 190)); org.jdesktop.layout.GroupLayout performanceMeterPanelLayout = new org.jdesktop.layout.GroupLayout( performanceMeterPanel); performanceMeterPanel.setLayout(performanceMeterPanelLayout); performanceMeterPanelLayout.setHorizontalGroup(performanceMeterPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 176, Short.MAX_VALUE)); performanceMeterPanelLayout.setVerticalGroup(performanceMeterPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 167, Short.MAX_VALUE)); inboundSliderPanel.setToolTipText(""); inboundSliderPanel.setFont(new java.awt.Font("STHeiti", 0, 13)); inboundSliderPanel.setMaximumSize(new java.awt.Dimension(190, 190)); inboundSliderPanel.setMinimumSize(new java.awt.Dimension(190, 190)); inboundSliderPanel.setOpaque(false); inboundSliderPanel.setPreferredSize(new java.awt.Dimension(190, 190)); inboundSliderPanel.setSize(new java.awt.Dimension(190, 190)); registerSpeedLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); registerSpeedLabel.setText("Speed"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundRingingResponseDelayLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundRingingResponseDelayLabel.setText("RngDlay"); inboundRingingResponseDelayLabel.setToolTipText("Auto Ringing Response Delay Limit in mSec"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundRingingResponseBusyRatioLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundRingingResponseBusyRatioLabel.setText("Busy %"); inboundRingingResponseBusyRatioLabel .setToolTipText("The Ratio Between Answering or Denying inbound Phonecalls (bottom is deny)"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundEndDelayLabel.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundEndDelayLabel.setText("EndDlay"); inboundEndDelayLabel.setToolTipText("Auto Ringing Response Delay Limit in mSec"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundEndDelayValue.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundEndDelayValue.setText("0"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); registerSpeedValue.setFont(new java.awt.Font("STHeiti", 0, 8)); registerSpeedValue.setText("0"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundRingingResponseDelayValue.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundRingingResponseDelayValue.setText("0"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); inboundRingingResponseBusyRatioValue.setFont(new java.awt.Font("STHeiti", 0, 8)); inboundRingingResponseBusyRatioValue.setText("0"); registerSpeedValue.setHorizontalAlignment(SwingConstants.CENTER); registerSpeedSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); registerSpeedSlider.setMajorTickSpacing(10); registerSpeedSlider.setMinorTickSpacing(1); registerSpeedSlider.setOrientation(javax.swing.JSlider.VERTICAL); registerSpeedSlider.setPaintLabels(true); registerSpeedSlider.setPaintTicks(true); registerSpeedSlider.setSnapToTicks(true); registerSpeedSlider.setToolTipText("Register Speed"); registerSpeedSlider.setValue(20); registerSpeedSlider.setFocusable(false); registerSpeedSlider.setInverted(true); registerSpeedSlider.setMaximumSize(new java.awt.Dimension(40, 150)); registerSpeedSlider.setMinimumSize(new java.awt.Dimension(40, 150)); registerSpeedSlider.setName(""); // NOI18N registerSpeedSlider.setPreferredSize(new java.awt.Dimension(40, 150)); registerSpeedSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { registerSpeedSliderStateChanged(evt); } }); inboundRingingResponseDelaySlider.setFont(new java.awt.Font("STHeiti", 0, 5)); inboundRingingResponseDelaySlider.setMajorTickSpacing(5000); inboundRingingResponseDelaySlider.setMaximum(60000); inboundRingingResponseDelaySlider.setMinorTickSpacing(1000); inboundRingingResponseDelaySlider.setOrientation(javax.swing.JSlider.VERTICAL); inboundRingingResponseDelaySlider.setPaintLabels(true); inboundRingingResponseDelaySlider.setPaintTicks(true); inboundRingingResponseDelaySlider.setSnapToTicks(true); inboundRingingResponseDelaySlider.setToolTipText("Random Ring Delay"); inboundRingingResponseDelaySlider.setValue(30000); inboundRingingResponseDelaySlider.setFocusable(false); inboundRingingResponseDelaySlider.setMaximumSize(new java.awt.Dimension(40, 150)); inboundRingingResponseDelaySlider.setMinimumSize(new java.awt.Dimension(40, 150)); inboundRingingResponseDelaySlider.setName(""); // NOI18N inboundRingingResponseDelaySlider.setPreferredSize(new java.awt.Dimension(40, 150)); inboundRingingResponseDelaySlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { inboundRingingResponseDelaySliderStateChanged(evt); } }); inboundRingingResponseBusyRatioSlider.setFont(new java.awt.Font("STHeiti", 0, 5)); inboundRingingResponseBusyRatioSlider.setMajorTickSpacing(10); inboundRingingResponseBusyRatioSlider.setMinorTickSpacing(1); inboundRingingResponseBusyRatioSlider.setOrientation(javax.swing.JSlider.VERTICAL); inboundRingingResponseBusyRatioSlider.setPaintLabels(true); inboundRingingResponseBusyRatioSlider.setPaintTicks(true); inboundRingingResponseBusyRatioSlider.setSnapToTicks(true); inboundRingingResponseBusyRatioSlider.setToolTipText("Busy Percentage"); inboundRingingResponseBusyRatioSlider.setValue(10); inboundRingingResponseBusyRatioSlider.setFocusable(false); inboundRingingResponseBusyRatioSlider.setMaximumSize(new java.awt.Dimension(40, 150)); inboundRingingResponseBusyRatioSlider.setMinimumSize(new java.awt.Dimension(40, 150)); inboundRingingResponseBusyRatioSlider.setName(""); // NOI18N inboundRingingResponseBusyRatioSlider.setPreferredSize(new java.awt.Dimension(40, 150)); inboundRingingResponseBusyRatioSlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { inboundRingingResponseBusyRatioSliderStateChanged(evt); } }); inboundEndDelaySlider.setFont(new java.awt.Font("STHeiti", 0, 5)); inboundEndDelaySlider.setMajorTickSpacing(6000); inboundEndDelaySlider.setMaximum(60000); inboundEndDelaySlider.setMinimum(1000); inboundEndDelaySlider.setMinorTickSpacing(1000); inboundEndDelaySlider.setOrientation(javax.swing.JSlider.VERTICAL); inboundEndDelaySlider.setPaintLabels(true); inboundEndDelaySlider.setPaintTicks(true); inboundEndDelaySlider.setSnapToTicks(true); inboundEndDelaySlider.setToolTipText("Random End Call Delay"); inboundEndDelaySlider.setValue(30000); inboundEndDelaySlider.setFocusable(false); inboundEndDelaySlider.setMaximumSize(new java.awt.Dimension(40, 150)); inboundEndDelaySlider.setMinimumSize(new java.awt.Dimension(40, 150)); inboundEndDelaySlider.setName(""); // NOI18N inboundEndDelaySlider.setPreferredSize(new java.awt.Dimension(40, 150)); inboundEndDelaySlider.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { inboundEndDelaySliderStateChanged(evt); } }); org.jdesktop.layout.GroupLayout inboundSliderPanelLayout = new org.jdesktop.layout.GroupLayout( inboundSliderPanel); inboundSliderPanel.setLayout(inboundSliderPanelLayout); inboundSliderPanelLayout.setHorizontalGroup(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup().addContainerGap().add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup() .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(registerSpeedLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(registerSpeedValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup().add(2, 2, 2).add( inboundRingingResponseDelayLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(inboundRingingResponseDelayValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(inboundRingingResponseBusyRatioLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundSliderPanelLayout.createSequentialGroup().add(2, 2, 2).add( inboundRingingResponseBusyRatioValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundEndDelayValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundEndDelayLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(inboundSliderPanelLayout.createSequentialGroup() .add(registerSpeedSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundRingingResponseDelaySlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundRingingResponseBusyRatioSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundEndDelaySlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); inboundSliderPanelLayout.setVerticalGroup(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup() .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(inboundSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup() .add(inboundRingingResponseDelayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundRingingResponseDelayValue)) .add(inboundSliderPanelLayout.createSequentialGroup() .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(inboundSliderPanelLayout.createSequentialGroup() .add(registerSpeedLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(registerSpeedValue)) .add(inboundSliderPanelLayout.createSequentialGroup() .add(inboundRingingResponseBusyRatioLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundRingingResponseBusyRatioValue)) .add(inboundSliderPanelLayout.createSequentialGroup() .add(inboundEndDelayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundEndDelayValue))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(inboundSliderPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, inboundEndDelaySlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, inboundSliderPanelLayout .createParallelGroup( org.jdesktop.layout.GroupLayout.BASELINE) .add(registerSpeedSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundRingingResponseDelaySlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(inboundRingingResponseBusyRatioSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))); org.jdesktop.layout.GroupLayout buttonPanelLayout = new org.jdesktop.layout.GroupLayout(buttonPanel); buttonPanel.setLayout(buttonPanelLayout); buttonPanelLayout .setHorizontalGroup(buttonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, buttonPanelLayout.createSequentialGroup().addContainerGap() .add(inboundSliderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 164, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(12, 12, 12) .add(performanceMeterPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 188, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(outboundSliderPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE) .addContainerGap())); buttonPanelLayout.setVerticalGroup(buttonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(buttonPanelLayout.createSequentialGroup().addContainerGap().add(buttonPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(performanceMeterPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(buttonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(org.jdesktop.layout.GroupLayout.LEADING, inboundSliderPanel, 0, 186, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, outboundSliderPanel, 0, 186, Short.MAX_VALUE))) .addContainerGap(12, Short.MAX_VALUE))); org.jdesktop.layout.GroupLayout controlSliderPanelLayout = new org.jdesktop.layout.GroupLayout( controlSliderPanel); controlSliderPanel.setLayout(controlSliderPanelLayout); controlSliderPanelLayout.setHorizontalGroup( controlSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlSliderPanelLayout.createSequentialGroup() .add(buttonPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(13, Short.MAX_VALUE))); controlSliderPanelLayout.setVerticalGroup( controlSliderPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(buttonPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)); org.jdesktop.layout.GroupLayout colorMaskPanelLayout = new org.jdesktop.layout.GroupLayout(colorMaskPanel); colorMaskPanel.setLayout(colorMaskPanelLayout); colorMaskPanelLayout.setHorizontalGroup(colorMaskPanelLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(colorMaskPanelLayout.createSequentialGroup().addContainerGap() .add(colorMaskPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(controlSliderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(tabPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(displayPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(controlButtonPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(9, Short.MAX_VALUE))); colorMaskPanelLayout .setVerticalGroup(colorMaskPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(colorMaskPanelLayout.createSequentialGroup() .add(tabPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(displayPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlButtonPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(controlSliderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(32, Short.MAX_VALUE))); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( colorMaskPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( colorMaskPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); pack(); }
From source file:semaforo.Semaforo.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.//from ww w. java2 s. c om */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { PanelWeek1 = new javax.swing.JPanel(); firstWeeksContainer = new javax.swing.JScrollPane(); TableWeek1 = new javax.swing.JTable(); PanelTicker = new javax.swing.JPanel(); tickerContainer = new javax.swing.JScrollPane(); TableTicker = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); PanelWeek2 = new javax.swing.JPanel(); secondWeeksContainer = new javax.swing.JScrollPane(); TableWeek2 = new javax.swing.JTable(); PanelWeek3 = new javax.swing.JPanel(); thirdWeeksContainer = new javax.swing.JScrollPane(); TableWeek3 = new javax.swing.JTable(); PanelIndex = new javax.swing.JPanel(); jLabelSemaforo = new javax.swing.JLabel(); jLabelImagenNASDAQ = new javax.swing.JLabel(); jLabelImagenSandP = new javax.swing.JLabel(); jLabelImagenDJI = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabelNumPos = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabelPositionNum = new javax.swing.JLabel(); jLabelInvested = new javax.swing.JLabel(); jLabelLuzPrincipal = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); etiquetaGrupo2 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); etiquetaGrupo3 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); etiquetaGrupo4 = new javax.swing.JLabel(); etiquetaGrupo1 = new javax.swing.JLabel(); etiquetaGrupo6 = new javax.swing.JLabel(); etiquetaGrupo5 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); l1 = new javax.swing.JLabel(); l2 = new javax.swing.JLabel(); l3 = new javax.swing.JLabel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu2 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(new java.awt.Color(0, 0, 0)); PanelWeek1.setBackground(new java.awt.Color(0, 0, 0)); PanelWeek1.setToolTipText(""); PanelWeek1.setName("Week 15"); // NOI18N firstWeeksContainer.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); //TableWeek1.setTableHeader(null); TableWeek1.setBackground(new java.awt.Color(51, 51, 51)); TableWeek1.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Low", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "High" }) { boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); /* TableWeek1.setToolTipText("week"); TableWeek1.getTableHeader().setReorderingAllowed(false); */ firstWeeksContainer.setViewportView(TableWeek1); if (TableWeek1.getColumnModel().getColumnCount() > 0) { TableWeek1.getColumnModel().getColumn(0).setPreferredWidth(250); TableWeek1.getColumnModel().getColumn(17).setPreferredWidth(250); } javax.swing.GroupLayout PanelWeek1Layout = new javax.swing.GroupLayout(PanelWeek1); PanelWeek1.setLayout(PanelWeek1Layout); PanelWeek1Layout.setHorizontalGroup( PanelWeek1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( firstWeeksContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)); PanelWeek1Layout.setVerticalGroup(PanelWeek1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(firstWeeksContainer)); PanelTicker.setBackground(new java.awt.Color(0, 0, 0)); PanelTicker.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); PanelTicker.setForeground(new java.awt.Color(255, 255, 255)); PanelTicker.setFocusable(false); PanelTicker.setMaximumSize(new java.awt.Dimension(700, 32767)); PanelTicker.setMinimumSize(new java.awt.Dimension(500, 0)); PanelTicker.setPreferredSize(new java.awt.Dimension(550, 466)); tickerContainer.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); tickerContainer.setMaximumSize(new java.awt.Dimension(500, 32767)); //TableTicker.setTableHeader(null); TableTicker.setBackground(new java.awt.Color(0, 0, 0)); TableTicker.setForeground(new java.awt.Color(255, 255, 255)); TableTicker.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Ticker", "Price", "to Invest", "cambio", "CFD", "Bought", "Remain", "LOW", "Compra?" }) { boolean[] canEdit = new boolean[] { false, false, true, true, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); TableTicker.setIntercellSpacing(new java.awt.Dimension(0, 0)); TableTicker.setMaximumSize(new java.awt.Dimension(500, 0)); TableTicker.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); TableTicker.getTableHeader().setReorderingAllowed(false); TableTicker.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { TableTickerMouseClicked(evt); } }); tickerContainer.setViewportView(TableTicker); if (TableTicker.getColumnModel().getColumnCount() > 0) { TableTicker.getColumnModel().getColumn(0).setPreferredWidth(90); TableTicker.getColumnModel().getColumn(0).setMaxWidth(90); TableTicker.getColumnModel().getColumn(1).setPreferredWidth(90); TableTicker.getColumnModel().getColumn(2).setPreferredWidth(120); TableTicker.getColumnModel().getColumn(2).setMaxWidth(120); TableTicker.getColumnModel().getColumn(4).setPreferredWidth(90); TableTicker.getColumnModel().getColumn(4).setMaxWidth(90); TableTicker.getColumnModel().getColumn(5).setPreferredWidth(90); TableTicker.getColumnModel().getColumn(5).setMaxWidth(90); TableTicker.getColumnModel().getColumn(6).setPreferredWidth(90); TableTicker.getColumnModel().getColumn(6).setMaxWidth(90); TableTicker.getColumnModel().getColumn(7).setResizable(false); } jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("TICKERS"); javax.swing.GroupLayout PanelTickerLayout = new javax.swing.GroupLayout(PanelTicker); PanelTicker.setLayout(PanelTickerLayout); PanelTickerLayout .setHorizontalGroup(PanelTickerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tickerContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 674, Short.MAX_VALUE) .addGroup(PanelTickerLayout.createSequentialGroup().addGap(223, 223, 223) .addComponent(jLabel1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); PanelTickerLayout .setVerticalGroup( PanelTickerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelTickerLayout.createSequentialGroup().addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tickerContainer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); tickerContainer.getAccessibleContext().setAccessibleParent(PanelWeek1); PanelWeek2.setBackground(new java.awt.Color(0, 0, 0)); secondWeeksContainer.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); //TableWeek2.setTableHeader(null); TableWeek2.setBackground(new java.awt.Color(51, 51, 51)); TableWeek2.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Low", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "High" }) { boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); /* */ secondWeeksContainer.setViewportView(TableWeek2); if (TableWeek2.getColumnModel().getColumnCount() > 0) { TableWeek2.getColumnModel().getColumn(0).setPreferredWidth(250); TableWeek2.getColumnModel().getColumn(17).setPreferredWidth(250); } javax.swing.GroupLayout PanelWeek2Layout = new javax.swing.GroupLayout(PanelWeek2); PanelWeek2.setLayout(PanelWeek2Layout); PanelWeek2Layout.setHorizontalGroup( PanelWeek2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( secondWeeksContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE)); PanelWeek2Layout.setVerticalGroup(PanelWeek2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(secondWeeksContainer)); PanelWeek3.setBackground(new java.awt.Color(0, 0, 0)); thirdWeeksContainer.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); //TableWeek3.setTableHeader(null); TableWeek3.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Low", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "High" }) { boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); /* TableWeek3.getTableHeader().setReorderingAllowed(false); */ thirdWeeksContainer.setViewportView(TableWeek3); if (TableWeek3.getColumnModel().getColumnCount() > 0) { TableWeek3.getColumnModel().getColumn(0).setPreferredWidth(250); TableWeek3.getColumnModel().getColumn(17).setPreferredWidth(250); } javax.swing.GroupLayout PanelWeek3Layout = new javax.swing.GroupLayout(PanelWeek3); PanelWeek3.setLayout(PanelWeek3Layout); PanelWeek3Layout .setHorizontalGroup(PanelWeek3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelWeek3Layout .createSequentialGroup().addComponent(thirdWeeksContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE) .addContainerGap())); PanelWeek3Layout.setVerticalGroup(PanelWeek3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(thirdWeeksContainer)); PanelIndex.setBackground(new java.awt.Color(0, 0, 0)); jLabelSemaforo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelSemaforo .setIcon(new javax.swing.ImageIcon(getClass().getResource("/semaforo/resources/semaforoOLD.png"))); // NOI18N jLabelSemaforo.setText("jLabel5"); jLabelImagenNASDAQ.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabelImagenNASDAQ.setForeground(new java.awt.Color(102, 255, 102)); jLabelImagenNASDAQ.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelImagenNASDAQ.setToolTipText(""); jLabelImagenNASDAQ.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jLabelImagenNASDAQ.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.gray, null)); jLabelImagenNASDAQ.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelImagenNASDAQ.setVerticalTextPosition(javax.swing.SwingConstants.TOP); jLabelImagenSandP.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabelImagenSandP.setForeground(new java.awt.Color(102, 255, 102)); jLabelImagenSandP.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelImagenSandP.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jLabelImagenSandP.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.gray, null)); jLabelImagenSandP.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelImagenSandP.setVerticalTextPosition(javax.swing.SwingConstants.TOP); jLabelImagenDJI.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabelImagenDJI.setForeground(new java.awt.Color(102, 255, 102)); jLabelImagenDJI.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelImagenDJI.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jLabelImagenDJI.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.gray, null)); jLabelImagenDJI.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelImagenDJI.setVerticalTextPosition(javax.swing.SwingConstants.TOP); jLabel5.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("INDEX:"); javax.swing.GroupLayout PanelIndexLayout = new javax.swing.GroupLayout(PanelIndex); PanelIndex.setLayout(PanelIndexLayout); PanelIndexLayout.setHorizontalGroup(PanelIndexLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelIndexLayout.createSequentialGroup() .addGroup(PanelIndexLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelIndexLayout.createSequentialGroup().addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelSemaforo, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabelImagenSandP, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelImagenNASDAQ, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelImagenDJI, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 1, Short.MAX_VALUE))); PanelIndexLayout.setVerticalGroup(PanelIndexLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelIndexLayout.createSequentialGroup() .addGroup(PanelIndexLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelIndexLayout.createSequentialGroup().addGap(5, 5, 5).addComponent( jLabelSemaforo, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(PanelIndexLayout .createSequentialGroup().addGap(29, 29, 29).addComponent(jLabel5))) .addGap(95, 95, 95) .addComponent(jLabelImagenNASDAQ, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelImagenSandP, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelImagenDJI, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(19, Short.MAX_VALUE))); jPanel1.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel1MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel1MouseExited(evt); } }); jLabel6.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("NUM POSITIONS - (MAX: 12)"); jLabel7.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 255, 255)); jLabel7.setText("% INVESTED CAPITAL "); jLabelNumPos.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabelNumPos.setForeground(new java.awt.Color(240, 240, 120)); jLabelNumPos.setText("9"); jLabel8.setText("jLabel8"); jLabelPositionNum.setFont(new java.awt.Font("Tahoma", 1, 25)); // NOI18N jLabelPositionNum.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelPositionNum.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelPositionNum.setPreferredSize(new java.awt.Dimension(60, 60)); jLabelInvested.setFont(new java.awt.Font("Tahoma", 1, 25)); // NOI18N jLabelInvested.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelInvested.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelInvested.setPreferredSize(new java.awt.Dimension(60, 60)); jLabelLuzPrincipal.setBackground(new java.awt.Color(0, 0, 255)); jLabelLuzPrincipal.setFont(new java.awt.Font("Tahoma", 1, 30)); // NOI18N jLabelLuzPrincipal.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelLuzPrincipal.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelLuzPrincipal.setPreferredSize(new java.awt.Dimension(120, 200)); jButton1.setText("GROUPS"); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jPanel2.setBackground(new java.awt.Color(0, 0, 0)); etiquetaGrupo2.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo2.setText("100%"); etiquetaGrupo2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo2.setPreferredSize(new java.awt.Dimension(60, 60)); jLabel17.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel17.setForeground(new java.awt.Color(255, 255, 255)); jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel17.setText("BAN"); jLabel11.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel11.setForeground(new java.awt.Color(255, 255, 255)); jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel11.setText("TEC"); jLabel9.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel9.setForeground(new java.awt.Color(255, 255, 255)); jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel9.setText("FAR"); etiquetaGrupo3.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo3.setText("100%"); etiquetaGrupo3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo3.setPreferredSize(new java.awt.Dimension(60, 60)); jLabel13.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel13.setForeground(new java.awt.Color(255, 255, 255)); jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel13.setText("BIO"); etiquetaGrupo4.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo4.setText("100%"); etiquetaGrupo4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo4.setPreferredSize(new java.awt.Dimension(60, 60)); etiquetaGrupo1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo1.setText("100%"); etiquetaGrupo1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo1.setPreferredSize(new java.awt.Dimension(60, 60)); etiquetaGrupo6.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo6.setText("100%"); etiquetaGrupo6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo6.setPreferredSize(new java.awt.Dimension(60, 60)); etiquetaGrupo5.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N etiquetaGrupo5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); etiquetaGrupo5.setText("100%"); etiquetaGrupo5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); etiquetaGrupo5.setPreferredSize(new java.awt.Dimension(60, 60)); jLabel19.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel19.setForeground(new java.awt.Color(255, 255, 255)); jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel19.setText("BEV"); jLabel15.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel15.setForeground(new java.awt.Color(255, 255, 255)); jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel15.setText("ALI"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(etiquetaGrupo2, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(etiquetaGrupo3, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(etiquetaGrupo4, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(etiquetaGrupo5, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(etiquetaGrupo6, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(etiquetaGrupo2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo4, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo5, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo6, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(etiquetaGrupo1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap())); jButton2.setText("NEW LOW"); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } }); jButton3.setText("NEW HIGH"); jButton3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton3MouseClicked(evt); } }); jPanel3.setBackground(new java.awt.Color(0, 0, 0)); jPanel3.setMinimumSize(new java.awt.Dimension(250, 50)); jPanel3.setPreferredSize(new java.awt.Dimension(250, 50)); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 250, Short.MAX_VALUE)); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); l1.setBackground(new java.awt.Color(255, 0, 0)); l1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N l1.setForeground(new java.awt.Color(255, 255, 255)); l1.setText("CFD"); l2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N l2.setForeground(new java.awt.Color(255, 255, 255)); l2.setText("BULL"); l3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N l3.setForeground(new java.awt.Color(255, 255, 255)); l3.setText("BEAR"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(51, 51, 51) .addComponent(jLabelPositionNum, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(103, 103, 103) .addComponent(jLabelInvested, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(jLabel8)) .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel6).addGap(18, 18, 18) .addComponent(jLabelNumPos).addGap(18, 18, 18).addComponent(jLabel7)) .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(l1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(l2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(l3, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)) .addGap(42, 42, 42) .addComponent(jLabelLuzPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 394, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelLuzPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1).addComponent(jButton2).addComponent(jButton3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6).addComponent(jLabelNumPos).addComponent(jLabel7)) .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(11, 11, 11) .addComponent(jLabel8).addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout .createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelPositionNum, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE) .addComponent(jLabelInvested, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(9, 9, 9)))) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(l1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(l2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(l3, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); jTabbedPane1.setMaximumSize(new java.awt.Dimension(1600, 2500)); jTabbedPane1.setMinimumSize(new java.awt.Dimension(1200, 5)); jTabbedPane1.setPreferredSize(new java.awt.Dimension(1200, 5)); jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jTabbedPane1StateChanged(evt); } }); jTabbedPane1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jTabbedPane1MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jTabbedPane1MouseExited(evt); } }); jMenuBar1.setBackground(new java.awt.Color(0, 0, 0)); jMenu2.setBackground(new java.awt.Color(153, 153, 153)); jMenu2.setText("Settings"); jMenu2.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jMenu2MousePressed(evt); } }); jMenuBar1.add(jMenu2); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(PanelTicker, javax.swing.GroupLayout.PREFERRED_SIZE, 676, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(389, 389, 389) .addComponent(PanelWeek1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(PanelWeek2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(PanelWeek3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(116, 116, 116)) .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGap(0, 0, 0) .addComponent(PanelIndex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(PanelWeek3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PanelWeek1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PanelWeek2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PanelTicker, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 491, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) .addComponent(PanelIndex, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); pack(); }
From source file:net.sf.dvstar.transmission.TransmissionView.java
/** This method is called from within the constructor to * initialize the form./*from ww w . j av a2 s .c o m*/ * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; mainPanel = new javax.swing.JPanel(); spMain = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); jPanel10 = new javax.swing.JPanel(); lbFind = new javax.swing.JLabel(); tfFindItem = new javax.swing.JTextField(); lbFindInfo = new javax.swing.JLabel(); cbFilterStatus = new javax.swing.JComboBox(); jPanel11 = new javax.swing.JPanel(); spTorrentList = new javax.swing.JScrollPane(); tblTorrentList = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); btFirst = new javax.swing.JButton(); btPrev = new javax.swing.JButton(); tfCurrentRow = new javax.swing.JTextField(); btNext = new javax.swing.JButton(); btLast = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); plInfo = new javax.swing.JPanel(); plInfoCommon = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); tfTimeAll = new javax.swing.JTextField(); tfDownloaded = new javax.swing.JTextField(); tfSpeedDn = new javax.swing.JTextField(); tfState = new javax.swing.JTextField(); tfComment = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); tfTimeAll1 = new javax.swing.JTextField(); tfUploaded = new javax.swing.JTextField(); tfSpeedDn1 = new javax.swing.JTextField(); tfStartedAt = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); lbErrorInfo = new javax.swing.JLabel(); tfSeeds = new javax.swing.JTextField(); tfLeechers = new javax.swing.JTextField(); tfRate = new javax.swing.JTextField(); tfCreatedAt = new javax.swing.JTextField(); jLabel16 = new javax.swing.JLabel(); tfStorePath = new javax.swing.JTextField(); jLabel17 = new javax.swing.JLabel(); tfSpeedDn3 = new javax.swing.JTextField(); jLabel18 = new javax.swing.JLabel(); tfSpeedUp = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel(); tfCreator = new javax.swing.JTextField(); tfErrorInfo = new javax.swing.JTextField(); jLabel15 = new javax.swing.JLabel(); jPanel9 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); plPieces = new javax.swing.JPanel(); lbProgress = new javax.swing.JLabel(); plFiles = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); tblTorrentFiles = new javax.swing.JTable(); plPeers = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tblTorrentPeers = new javax.swing.JTable(); plTrackers = new javax.swing.JPanel(); plSpeed = new javax.swing.JPanel(); menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu fileMenu = new javax.swing.JMenu(); miFileConnect = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); miFileQuickAddFile = new javax.swing.JMenuItem(); miFileExtAddFile = new javax.swing.JMenuItem(); miFileInfo = new javax.swing.JMenuItem(); miFileAddURL = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JSeparator(); javax.swing.JMenuItem miFileExit = new javax.swing.JMenuItem(); configMenu = new javax.swing.JMenu(); miConfigClient = new javax.swing.JMenuItem(); miConfigServer = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JSeparator(); mnConfigLocale = new javax.swing.JMenu(); torrentMenu = new javax.swing.JMenu(); miTorrentStart = new javax.swing.JMenuItem(); miTorrentStop = new javax.swing.JMenuItem(); miTorrentRefresh = new javax.swing.JMenuItem(); miTorrentCheck = new javax.swing.JMenuItem(); miTorrentProperties = new javax.swing.JMenuItem(); miTorrentDelete = new javax.swing.JMenuItem(); miTorrentDeleteAll = new javax.swing.JMenuItem(); miTorrentAnnounce = new javax.swing.JMenuItem(); miTorrentMove = new javax.swing.JMenuItem(); miTorrentLocation = new javax.swing.JMenuItem(); jSeparator4 = new javax.swing.JSeparator(); miTorrentStartAll = new javax.swing.JMenuItem(); miTorrentStopAll = new javax.swing.JMenuItem(); javax.swing.JMenu helpMenu = new javax.swing.JMenu(); javax.swing.JMenuItem miHelpAbout = new javax.swing.JMenuItem(); statusPanel = new javax.swing.JPanel(); javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator(); statusMessageLabel = new javax.swing.JLabel(); statusAnimationLabel = new javax.swing.JLabel(); progressBar = new javax.swing.JProgressBar(); maiToolBar = new javax.swing.JToolBar(); btConnect = new javax.swing.JButton(); jSeparator5 = new javax.swing.JToolBar.Separator(); btAdd = new javax.swing.JButton(); btAddUrl = new javax.swing.JButton(); jSeparator8 = new javax.swing.JToolBar.Separator(); btStart = new javax.swing.JButton(); btStop = new javax.swing.JButton(); btRefresh = new javax.swing.JButton(); jSeparator9 = new javax.swing.JToolBar.Separator(); btStatistic = new javax.swing.JButton(); jSeparator6 = new javax.swing.JToolBar.Separator(); btConfigCli = new javax.swing.JButton(); jSeparator7 = new javax.swing.JToolBar.Separator(); btExit = new javax.swing.JButton(); mainPanel.setName("mainPanel"); // NOI18N mainPanel.setLayout(new java.awt.BorderLayout()); spMain.setDividerLocation(250); spMain.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); spMain.setResizeWeight(1.0); spMain.setName("spMain"); // NOI18N jPanel1.setMinimumSize(new java.awt.Dimension(21, 200)); jPanel1.setName("jPanel1"); // NOI18N jPanel1.setLayout(new java.awt.BorderLayout()); jPanel10.setName("jPanel10"); // NOI18N jPanel10.setPreferredSize(new java.awt.Dimension(680, 24)); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext() .getResourceMap(TransmissionView.class); lbFind.setIcon(resourceMap.getIcon("lbFind.icon")); // NOI18N lbFind.setText(resourceMap.getString("lbFind.text")); // NOI18N lbFind.setName("lbFind"); // NOI18N tfFindItem.setText(null); tfFindItem.setName("tfFindItem"); // NOI18N lbFindInfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lbFindInfo.setText(resourceMap.getString("lbFindInfo.text")); // NOI18N lbFindInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); lbFindInfo.setName("lbFindInfo"); // NOI18N cbFilterStatus.setModel(new javax.swing.DefaultComboBoxModel( new String[] { "All", "Downloading", "Paused", "Seeding", "Checking", "Error" })); cbFilterStatus.setName("cbFilterStatus"); // NOI18N cbFilterStatus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbFilterStatusActionPerformed(evt); } }); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup(jPanel10Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup().addContainerGap().addComponent(lbFind) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tfFindItem, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lbFindInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cbFilterStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); jPanel10Layout.setVerticalGroup(jPanel10Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfFindItem, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lbFind).addComponent(lbFindInfo).addComponent(cbFilterStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel1.add(jPanel10, java.awt.BorderLayout.NORTH); jPanel11.setName("jPanel11"); // NOI18N jPanel11.setLayout(new java.awt.BorderLayout()); spTorrentList.setName("spTorrentList"); // NOI18N spTorrentList.setPreferredSize(new java.awt.Dimension(454, 200)); tblTorrentList.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "", "Name", "Size", "Progress", "Status", "Seed", "Leech", "Dn Speed", "Up Speed", "Upload" }) { Class[] types = new Class[] { java.lang.Integer.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class }; boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); tblTorrentList.setColumnSelectionAllowed(true); tblTorrentList.setName("tblTorrentList"); // NOI18N tblTorrentList.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); tblTorrentList.getTableHeader().setReorderingAllowed(false); spTorrentList.setViewportView(tblTorrentList); tblTorrentList.getColumnModel().getSelectionModel() .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); tblTorrentList.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title0")); // NOI18N tblTorrentList.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title1")); // NOI18N tblTorrentList.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title2")); // NOI18N tblTorrentList.getColumnModel().getColumn(3) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title3")); // NOI18N tblTorrentList.getColumnModel().getColumn(4) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title4")); // NOI18N tblTorrentList.getColumnModel().getColumn(5) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title5")); // NOI18N tblTorrentList.getColumnModel().getColumn(6) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title6")); // NOI18N tblTorrentList.getColumnModel().getColumn(7) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title7")); // NOI18N tblTorrentList.getColumnModel().getColumn(8) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title8")); // NOI18N tblTorrentList.getColumnModel().getColumn(9) .setHeaderValue(resourceMap.getString("tblTorrentList.columnModel.title9")); // NOI18N jPanel11.add(spTorrentList, java.awt.BorderLayout.CENTER); jPanel1.add(jPanel11, java.awt.BorderLayout.CENTER); jPanel3.setName("jPanel3"); // NOI18N jPanel3.setPreferredSize(new java.awt.Dimension(981, 26)); jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT, 4, 2)); btFirst.setIcon(resourceMap.getIcon("btFirst.icon")); // NOI18N btFirst.setText(resourceMap.getString("btFirst.text")); // NOI18N btFirst.setName("btFirst"); // NOI18N btFirst.setPreferredSize(new java.awt.Dimension(22, 22)); btFirst.addActionListener(new NavigatorButtonActionListener(NavigatorButtonActionListener.NAV_BUTTON_FIRS)); jPanel3.add(btFirst); btPrev.setIcon(resourceMap.getIcon("btPrev.icon")); // NOI18N btPrev.setName("btPrev"); // NOI18N btPrev.setPreferredSize(new java.awt.Dimension(22, 22)); btPrev.addActionListener(new NavigatorButtonActionListener(NavigatorButtonActionListener.NAV_BUTTON_PREV)); jPanel3.add(btPrev); tfCurrentRow.setColumns(6); tfCurrentRow.setText(resourceMap.getString("tfCurrentRow.text")); // NOI18N tfCurrentRow.setName("tfCurrentRow"); // NOI18N jPanel3.add(tfCurrentRow); btNext.setIcon(resourceMap.getIcon("btNext.icon")); // NOI18N btNext.setName("btNext"); // NOI18N btNext.setPreferredSize(new java.awt.Dimension(22, 22)); btNext.addActionListener(new NavigatorButtonActionListener(NavigatorButtonActionListener.NAV_BUTTON_NEXT)); jPanel3.add(btNext); btLast.setIcon(resourceMap.getIcon("btLast.icon")); // NOI18N btLast.setName("btLast"); // NOI18N btLast.setPreferredSize(new java.awt.Dimension(22, 22)); btLast.addActionListener(new NavigatorButtonActionListener(NavigatorButtonActionListener.NAV_BUTTON_LAST)); jPanel3.add(btLast); jPanel1.add(jPanel3, java.awt.BorderLayout.SOUTH); spMain.setLeftComponent(jPanel1); jPanel2.setName("jPanel2"); // NOI18N jPanel2.setPreferredSize(new java.awt.Dimension(590, 80)); jPanel2.setLayout(new java.awt.BorderLayout()); jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); jTabbedPane1.setName("jTabbedPane1"); // NOI18N plInfo.setName("plInfo"); // NOI18N plInfo.setLayout(new java.awt.BorderLayout()); plInfoCommon.setBorder(javax.swing.BorderFactory.createTitledBorder("...")); plInfoCommon.setMinimumSize(new java.awt.Dimension(661, 162)); plInfoCommon.setName("plInfoCommon"); // NOI18N plInfoCommon.setPreferredSize(new java.awt.Dimension(661, 162)); plInfoCommon.setLayout(new java.awt.GridBagLayout()); jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N jLabel2.setName("jLabel2"); // NOI18N jLabel2.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel2, gridBagConstraints); jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N jLabel3.setName("jLabel3"); // NOI18N jLabel3.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel3, gridBagConstraints); jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N jLabel4.setName("jLabel4"); // NOI18N jLabel4.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel4, gridBagConstraints); jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N jLabel5.setName("jLabel5"); // NOI18N jLabel5.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel5, gridBagConstraints); jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N jLabel6.setName("jLabel6"); // NOI18N jLabel6.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel6, gridBagConstraints); tfTimeAll.setEditable(false); tfTimeAll.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfTimeAll.setMinimumSize(new java.awt.Dimension(68, 16)); tfTimeAll.setName("tfTimeAll"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfTimeAll, gridBagConstraints); tfDownloaded.setEditable(false); tfDownloaded.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfDownloaded.setMinimumSize(new java.awt.Dimension(68, 16)); tfDownloaded.setName("tfDownloaded"); // NOI18N tfDownloaded.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfDownloaded, gridBagConstraints); tfSpeedDn.setEditable(false); tfSpeedDn.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfSpeedDn.setMinimumSize(new java.awt.Dimension(68, 16)); tfSpeedDn.setName("tfSpeedDn"); // NOI18N tfSpeedDn.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfSpeedDn, gridBagConstraints); tfState.setEditable(false); tfState.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfState.setMinimumSize(new java.awt.Dimension(68, 16)); tfState.setName("tfState"); // NOI18N tfState.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfState, gridBagConstraints); tfComment.setEditable(false); tfComment.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfComment.setName("tfComment"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 3.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfComment, gridBagConstraints); jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N jLabel10.setName("jLabel10"); // NOI18N jLabel10.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel10, gridBagConstraints); jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N jLabel8.setName("jLabel8"); // NOI18N jLabel8.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel8, gridBagConstraints); jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N jLabel7.setName("jLabel7"); // NOI18N jLabel7.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel7, gridBagConstraints); jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N jLabel9.setName("jLabel9"); // NOI18N jLabel9.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 4; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel9, gridBagConstraints); tfTimeAll1.setEditable(false); tfTimeAll1.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfTimeAll1.setMaximumSize(new java.awt.Dimension(68, 16)); tfTimeAll1.setMinimumSize(new java.awt.Dimension(68, 16)); tfTimeAll1.setName("tfTimeAll1"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfTimeAll1, gridBagConstraints); tfUploaded.setEditable(false); tfUploaded.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfUploaded.setMinimumSize(new java.awt.Dimension(68, 16)); tfUploaded.setName("tfUploaded"); // NOI18N tfUploaded.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfUploaded, gridBagConstraints); tfSpeedDn1.setEditable(false); tfSpeedDn1.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfSpeedDn1.setMinimumSize(new java.awt.Dimension(68, 16)); tfSpeedDn1.setName("tfSpeedDn1"); // NOI18N tfSpeedDn1.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfSpeedDn1, gridBagConstraints); tfStartedAt.setEditable(false); tfStartedAt.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfStartedAt.setMinimumSize(new java.awt.Dimension(68, 16)); tfStartedAt.setName("tfStartedAt"); // NOI18N tfStartedAt.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfStartedAt, gridBagConstraints); jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N jLabel14.setName("jLabel14"); // NOI18N jLabel14.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel14, gridBagConstraints); jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N jLabel12.setName("jLabel12"); // NOI18N jLabel12.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel12, gridBagConstraints); jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N jLabel11.setName("jLabel11"); // NOI18N jLabel11.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel11, gridBagConstraints); lbErrorInfo.setForeground(resourceMap.getColor("tfErrorInfo.foreground")); // NOI18N lbErrorInfo.setText(resourceMap.getString("lbErrorInfo.text")); // NOI18N lbErrorInfo.setName("lbErrorInfo"); // NOI18N lbErrorInfo.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 5; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(lbErrorInfo, gridBagConstraints); tfSeeds.setEditable(false); tfSeeds.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfSeeds.setMinimumSize(new java.awt.Dimension(68, 16)); tfSeeds.setName("tfSeeds"); // NOI18N tfSeeds.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfSeeds, gridBagConstraints); tfLeechers.setEditable(false); tfLeechers.setText(resourceMap.getString("tfLeechers.text")); // NOI18N tfLeechers.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfLeechers.setMinimumSize(new java.awt.Dimension(68, 16)); tfLeechers.setName("tfLeechers"); // NOI18N tfLeechers.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfLeechers, gridBagConstraints); tfRate.setEditable(false); tfRate.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfRate.setMinimumSize(new java.awt.Dimension(68, 16)); tfRate.setName("tfRate"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfRate, gridBagConstraints); tfCreatedAt.setEditable(false); tfCreatedAt.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfTimeAll.border.lineColor"))); // NOI18N tfCreatedAt.setMinimumSize(new java.awt.Dimension(68, 16)); tfCreatedAt.setName("tfCreatedAt"); // NOI18N tfCreatedAt.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfCreatedAt, gridBagConstraints); jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N jLabel16.setName("jLabel16"); // NOI18N jLabel16.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel16, gridBagConstraints); tfStorePath.setEditable(false); tfStorePath.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfStorePath.border.lineColor"))); // NOI18N tfStorePath.setName("tfStorePath"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 3.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfStorePath, gridBagConstraints); jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N jLabel17.setName("jLabel17"); // NOI18N jLabel17.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel17, gridBagConstraints); tfSpeedDn3.setEditable(false); tfSpeedDn3.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfSpeedDn3.border.lineColor"))); // NOI18N tfSpeedDn3.setMinimumSize(new java.awt.Dimension(68, 16)); tfSpeedDn3.setName("tfSpeedDn3"); // NOI18N tfSpeedDn3.setPreferredSize(new java.awt.Dimension(68, 16)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfSpeedDn3, gridBagConstraints); jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N jLabel18.setName("jLabel18"); // NOI18N jLabel18.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel18, gridBagConstraints); tfSpeedUp.setEditable(false); tfSpeedUp.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfSpeedUp.border.lineColor"))); // NOI18N tfSpeedUp.setMaximumSize(new java.awt.Dimension(68, 16)); tfSpeedUp.setMinimumSize(new java.awt.Dimension(68, 16)); tfSpeedUp.setName("tfSpeedUp"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfSpeedUp, gridBagConstraints); jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N jLabel19.setName("jLabel19"); // NOI18N jLabel19.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 3; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel19, gridBagConstraints); tfCreator.setEditable(false); tfCreator.setBorder( javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("tfCreator.border.lineColor"))); // NOI18N tfCreator.setMinimumSize(new java.awt.Dimension(68, 16)); tfCreator.setName("tfCreator"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 30; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfCreator, gridBagConstraints); tfErrorInfo.setEditable(false); tfErrorInfo.setForeground(resourceMap.getColor("tfErrorInfo.foreground")); // NOI18N tfErrorInfo.setText(null); tfErrorInfo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); tfErrorInfo.setName("tfErrorInfo"); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2); plInfoCommon.add(tfErrorInfo, gridBagConstraints); jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N jLabel15.setName("jLabel15"); // NOI18N jLabel15.setPreferredSize(new java.awt.Dimension(72, 15)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 4; gridBagConstraints.ipadx = 20; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 2); plInfoCommon.add(jLabel15, gridBagConstraints); plInfo.add(plInfoCommon, java.awt.BorderLayout.CENTER); jPanel9.setName("jPanel9"); // NOI18N jPanel9.setPreferredSize(new java.awt.Dimension(644, 56)); jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N jLabel1.setName("jLabel1"); // NOI18N plPieces.setBackground(resourceMap.getColor("plPieces.background")); // NOI18N plPieces.setName("plPieces"); // NOI18N plPieces.setLayout(new java.awt.BorderLayout()); lbProgress.setText(resourceMap.getString("lbProgress.text")); // NOI18N lbProgress.setName("lbProgress"); // NOI18N javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout .setHorizontalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup().addContainerGap().addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(plPieces, javax.swing.GroupLayout.DEFAULT_SIZE, 667, Short.MAX_VALUE) .addGap(18, 18, 18).addComponent(lbProgress).addContainerGap())); jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup().addGroup(jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup().addGap(24, 24, 24).addComponent(jLabel1)) .addGroup(jPanel9Layout.createSequentialGroup().addGap(25, 25, 25).addComponent(lbProgress)) .addGroup(jPanel9Layout.createSequentialGroup().addContainerGap().addComponent(plPieces, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))) .addContainerGap())); lbProgress.getAccessibleContext() .setAccessibleName(resourceMap.getString("lbProgress.AccessibleContext.accessibleName")); // NOI18N plInfo.add(jPanel9, java.awt.BorderLayout.NORTH); jTabbedPane1.addTab(resourceMap.getString("plInfo.TabConstraints.tabTitle"), plInfo); // NOI18N plFiles.setName("plFiles"); // NOI18N plFiles.setLayout(new java.awt.BorderLayout()); jScrollPane3.setName("jScrollPane3"); // NOI18N tblTorrentFiles.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Path", "Type", "Complete", "Done", "Size" }) { boolean[] canEdit = new boolean[] { false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); tblTorrentFiles.setName("tblTorrentFiles"); // NOI18N tblTorrentFiles.getTableHeader().setReorderingAllowed(false); jScrollPane3.setViewportView(tblTorrentFiles); tblTorrentFiles.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("tblTorrentFiles.columnModel.title0")); // NOI18N tblTorrentFiles.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("tblTorrentFiles.columnModel.title1")); // NOI18N tblTorrentFiles.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("tblTorrentFiles.columnModel.title2")); // NOI18N tblTorrentFiles.getColumnModel().getColumn(3) .setHeaderValue(resourceMap.getString("tblTorrentFiles.columnModel.title3")); // NOI18N tblTorrentFiles.getColumnModel().getColumn(4) .setHeaderValue(resourceMap.getString("tblTorrentFiles.columnModel.title4")); // NOI18N plFiles.add(jScrollPane3, java.awt.BorderLayout.CENTER); jTabbedPane1.addTab(resourceMap.getString("plFiles.TabConstraints.tabTitle"), plFiles); // NOI18N plPeers.setName("plPeers"); // NOI18N plPeers.setLayout(new java.awt.BorderLayout()); jScrollPane2.setName("jScrollPane2"); // NOI18N tblTorrentPeers.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "IP", "Country", "Flags", "Client", "Port", "Progress", "Dn rate", "Up rate" }) { boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); tblTorrentPeers.setName("tblTorrentPeers"); // NOI18N tblTorrentPeers.getTableHeader().setReorderingAllowed(false); jScrollPane2.setViewportView(tblTorrentPeers); tblTorrentPeers.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title0")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title1")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title2")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(3) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title3")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(4) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title4")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(5) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title5")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(6) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title6")); // NOI18N tblTorrentPeers.getColumnModel().getColumn(7) .setHeaderValue(resourceMap.getString("tblTorrentPeers.columnModel.title7")); // NOI18N plPeers.add(jScrollPane2, java.awt.BorderLayout.CENTER); jTabbedPane1.addTab(resourceMap.getString("plPeers.TabConstraints.tabTitle"), plPeers); // NOI18N plTrackers.setName("plTrackers"); // NOI18N javax.swing.GroupLayout plTrackersLayout = new javax.swing.GroupLayout(plTrackers); plTrackers.setLayout(plTrackersLayout); plTrackersLayout.setHorizontalGroup(plTrackersLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 822, Short.MAX_VALUE)); plTrackersLayout.setVerticalGroup(plTrackersLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 233, Short.MAX_VALUE)); jTabbedPane1.addTab(resourceMap.getString("plTrackers.TabConstraints.tabTitle"), plTrackers); // NOI18N plSpeed.setName("plSpeed"); // NOI18N javax.swing.GroupLayout plSpeedLayout = new javax.swing.GroupLayout(plSpeed); plSpeed.setLayout(plSpeedLayout); plSpeedLayout.setHorizontalGroup(plSpeedLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 822, Short.MAX_VALUE)); plSpeedLayout.setVerticalGroup(plSpeedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 233, Short.MAX_VALUE)); jTabbedPane1.addTab(resourceMap.getString("plSpeed.TabConstraints.tabTitle"), plSpeed); // NOI18N jPanel2.add(jTabbedPane1, java.awt.BorderLayout.CENTER); spMain.setRightComponent(jPanel2); mainPanel.add(spMain, java.awt.BorderLayout.CENTER); menuBar.setName("menuBar"); // NOI18N fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N fileMenu.setName("fileMenu"); // NOI18N javax.swing.ActionMap actionMap = org.jdesktop.application.Application .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext() .getActionMap(TransmissionView.class, this); miFileConnect.setAction(actionMap.get("doConnect")); // NOI18N miFileConnect.setIcon(resourceMap.getIcon("miFileConnect.icon")); // NOI18N miFileConnect.setText(resourceMap.getString("miFileConnect.text")); // NOI18N miFileConnect.setName("miFileConnect"); // NOI18N fileMenu.add(miFileConnect); jSeparator3.setName("jSeparator3"); // NOI18N fileMenu.add(jSeparator3); miFileQuickAddFile.setAction(actionMap.get("doAddTorrentQuick")); // NOI18N miFileQuickAddFile.setIcon(resourceMap.getIcon("miFileQuickAddFile.icon")); // NOI18N miFileQuickAddFile.setText(resourceMap.getString("miFileQuickAddFile.text")); // NOI18N miFileQuickAddFile.setName("miFileQuickAddFile"); // NOI18N fileMenu.add(miFileQuickAddFile); miFileExtAddFile.setAction(actionMap.get("doAddTorrentExt")); // NOI18N miFileExtAddFile.setIcon(resourceMap.getIcon("miFileExtAddFile.icon")); // NOI18N miFileExtAddFile.setText(resourceMap.getString("miFileExtAddFile.text")); // NOI18N miFileExtAddFile.setName("miFileExtAddFile"); // NOI18N fileMenu.add(miFileExtAddFile); miFileInfo.setAction(actionMap.get("doTorrentInfo")); // NOI18N miFileInfo.setIcon(resourceMap.getIcon("miFileInfo.icon")); // NOI18N miFileInfo.setText(resourceMap.getString("miFileInfo.text")); // NOI18N miFileInfo.setName("miFileInfo"); // NOI18N fileMenu.add(miFileInfo); miFileAddURL.setIcon(resourceMap.getIcon("miFileAddURL.icon")); // NOI18N miFileAddURL.setText(resourceMap.getString("miFileAddURL.text")); // NOI18N miFileAddURL.setName("miFileAddURL"); // NOI18N fileMenu.add(miFileAddURL); jSeparator2.setName("jSeparator2"); // NOI18N fileMenu.add(jSeparator2); miFileExit.setAction(actionMap.get("doQuit")); // NOI18N miFileExit.setIcon(resourceMap.getIcon("miFileExit.icon")); // NOI18N miFileExit.setName("miFileExit"); // NOI18N fileMenu.add(miFileExit); menuBar.add(fileMenu); configMenu.setText(resourceMap.getString("configMenu.text")); // NOI18N configMenu.setName("configMenu"); // NOI18N miConfigClient.setAction(actionMap.get("doConfigClient")); // NOI18N miConfigClient.setIcon(resourceMap.getIcon("miConfigClient.icon")); // NOI18N miConfigClient.setText(resourceMap.getString("miConfigClient.text")); // NOI18N miConfigClient.setName("miConfigClient"); // NOI18N configMenu.add(miConfigClient); miConfigServer.setAction(actionMap.get("doConfigServer")); // NOI18N miConfigServer.setIcon(resourceMap.getIcon("miConfigServer.icon")); // NOI18N miConfigServer.setText(resourceMap.getString("miConfigServer.text")); // NOI18N miConfigServer.setName("miConfigServer"); // NOI18N configMenu.add(miConfigServer); jSeparator1.setName("jSeparator1"); // NOI18N configMenu.add(jSeparator1); mnConfigLocale.setIcon(resourceMap.getIcon("mnConfigLocale.icon")); // NOI18N mnConfigLocale.setText(resourceMap.getString("mnConfigLocale.text")); // NOI18N mnConfigLocale.setName("mnConfigLocale"); // NOI18N configMenu.add(mnConfigLocale); menuBar.add(configMenu); torrentMenu.setAction(actionMap.get("doMoveTorrent")); // NOI18N torrentMenu.setText(resourceMap.getString("torrentMenu.text")); // NOI18N torrentMenu.setName("torrentMenu"); // NOI18N miTorrentStart.setAction(actionMap.get("doStartTorrent")); // NOI18N miTorrentStart.setIcon(resourceMap.getIcon("miTorrentStart.icon")); // NOI18N miTorrentStart.setText(resourceMap.getString("miTorrentStart.text")); // NOI18N miTorrentStart.setName("miTorrentStart"); // NOI18N torrentMenu.add(miTorrentStart); miTorrentStop.setAction(actionMap.get("doPauseTorrent")); // NOI18N miTorrentStop.setIcon(resourceMap.getIcon("miTorrentStop.icon")); // NOI18N miTorrentStop.setText(resourceMap.getString("miTorrentStop.text")); // NOI18N miTorrentStop.setName("miTorrentStop"); // NOI18N torrentMenu.add(miTorrentStop); miTorrentRefresh.setAction(actionMap.get("doRefresh")); // NOI18N miTorrentRefresh.setIcon(resourceMap.getIcon("miTorrentRefresh.icon")); // NOI18N miTorrentRefresh.setText(resourceMap.getString("miTorrentRefresh.text")); // NOI18N miTorrentRefresh.setName("miTorrentRefresh"); // NOI18N torrentMenu.add(miTorrentRefresh); miTorrentCheck.setIcon(resourceMap.getIcon("miTorrentCheck.icon")); // NOI18N miTorrentCheck.setText(resourceMap.getString("miTorrentCheck.text")); // NOI18N miTorrentCheck.setName("miTorrentCheck"); // NOI18N torrentMenu.add(miTorrentCheck); miTorrentProperties.setIcon(resourceMap.getIcon("miTorrentProperties.icon")); // NOI18N miTorrentProperties.setText(resourceMap.getString("miTorrentProperties.text")); // NOI18N miTorrentProperties.setName("miTorrentProperties"); // NOI18N torrentMenu.add(miTorrentProperties); miTorrentDelete.setIcon(resourceMap.getIcon("miTorrentDelete.icon")); // NOI18N miTorrentDelete.setText(resourceMap.getString("miTorrentDelete.text")); // NOI18N miTorrentDelete.setName("miTorrentDelete"); // NOI18N torrentMenu.add(miTorrentDelete); miTorrentDeleteAll.setIcon(resourceMap.getIcon("miTorrentDeleteAll.icon")); // NOI18N miTorrentDeleteAll.setText(resourceMap.getString("miTorrentDeleteAll.text")); // NOI18N miTorrentDeleteAll.setName("miTorrentDeleteAll"); // NOI18N torrentMenu.add(miTorrentDeleteAll); miTorrentAnnounce.setIcon(resourceMap.getIcon("miTorrentAnnounce.icon")); // NOI18N miTorrentAnnounce.setText(resourceMap.getString("miTorrentAnnounce.text")); // NOI18N miTorrentAnnounce.setName("miTorrentAnnounce"); // NOI18N torrentMenu.add(miTorrentAnnounce); miTorrentMove.setAction(actionMap.get("doMoveTorrent")); // NOI18N miTorrentMove.setIcon(resourceMap.getIcon("miTorrentMove.icon")); // NOI18N miTorrentMove.setText(resourceMap.getString("miTorrentMove.text")); // NOI18N miTorrentMove.setName("miTorrentMove"); // NOI18N torrentMenu.add(miTorrentMove); miTorrentLocation.setIcon(resourceMap.getIcon("miTorrentLocation.icon")); // NOI18N miTorrentLocation.setText(resourceMap.getString("miTorrentLocation.text")); // NOI18N miTorrentLocation.setName("miTorrentLocation"); // NOI18N torrentMenu.add(miTorrentLocation); jSeparator4.setName("jSeparator4"); // NOI18N torrentMenu.add(jSeparator4); miTorrentStartAll.setIcon(resourceMap.getIcon("miTorrentStartAll.icon")); // NOI18N miTorrentStartAll.setText(resourceMap.getString("miTorrentStartAll.text")); // NOI18N miTorrentStartAll.setName("miTorrentStartAll"); // NOI18N torrentMenu.add(miTorrentStartAll); miTorrentStopAll.setIcon(resourceMap.getIcon("miTorrentStopAll.icon")); // NOI18N miTorrentStopAll.setText(resourceMap.getString("miTorrentStopAll.text")); // NOI18N miTorrentStopAll.setName("miTorrentStopAll"); // NOI18N torrentMenu.add(miTorrentStopAll); menuBar.add(torrentMenu); helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N helpMenu.setName("helpMenu"); // NOI18N miHelpAbout.setAction(actionMap.get("showAboutBox")); // NOI18N miHelpAbout.setIcon(resourceMap.getIcon("miHelpAbout.icon")); // NOI18N miHelpAbout.setName("miHelpAbout"); // NOI18N helpMenu.add(miHelpAbout); menuBar.add(helpMenu); statusPanel.setName("statusPanel"); // NOI18N statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N statusMessageLabel.setName("statusMessageLabel"); // NOI18N statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N progressBar.setName("progressBar"); // NOI18N javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel); statusPanel.setLayout(statusPanelLayout); statusPanelLayout.setHorizontalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 829, Short.MAX_VALUE) .addGroup(statusPanelLayout.createSequentialGroup().addContainerGap() .addComponent(statusMessageLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 645, Short.MAX_VALUE) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(statusAnimationLabel).addContainerGap())); statusPanelLayout.setVerticalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPanelLayout.createSequentialGroup() .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(statusMessageLabel).addComponent(statusAnimationLabel) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(3, 3, 3))); maiToolBar.setRollover(true); maiToolBar.setName("maiToolBar"); // NOI18N btConnect.setAction(actionMap.get("doConnect")); // NOI18N btConnect.setIcon(resourceMap.getIcon("btConnect.icon")); // NOI18N btConnect.setFocusable(false); btConnect.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btConnect.setMinimumSize(new java.awt.Dimension(0, 0)); btConnect.setName("btConnect"); // NOI18N btConnect.setPreferredSize(new java.awt.Dimension(45, 43)); btConnect.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btConnect); jSeparator5.setName("jSeparator5"); // NOI18N jSeparator5.setSeparatorSize(new java.awt.Dimension(5, 40)); maiToolBar.add(jSeparator5); btAdd.setAction(actionMap.get("doAddTorrentExt")); // NOI18N btAdd.setIcon(resourceMap.getIcon("btAdd.icon")); // NOI18N btAdd.setFocusable(false); btAdd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btAdd.setName("btAdd"); // NOI18N btAdd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btAdd); btAddUrl.setAction(actionMap.get("addTorentURL")); // NOI18N btAddUrl.setIcon(resourceMap.getIcon("btAddUrl.icon")); // NOI18N btAddUrl.setFocusable(false); btAddUrl.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btAddUrl.setName("btAddUrl"); // NOI18N btAddUrl.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btAddUrl); jSeparator8.setName("jSeparator8"); // NOI18N jSeparator8.setSeparatorSize(new java.awt.Dimension(5, 40)); maiToolBar.add(jSeparator8); btStart.setAction(actionMap.get("doStartTorrent")); // NOI18N btStart.setIcon(resourceMap.getIcon("btStart.icon")); // NOI18N btStart.setFocusable(false); btStart.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btStart.setName("btStart"); // NOI18N btStart.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btStart); btStop.setAction(actionMap.get("doPauseTorrent")); // NOI18N btStop.setIcon(resourceMap.getIcon("btStop.icon")); // NOI18N btStop.setFocusable(false); btStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btStop.setName("btStop"); // NOI18N btStop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btStop); btRefresh.setAction(actionMap.get("doRefresh")); // NOI18N btRefresh.setIcon(resourceMap.getIcon("btRefresh.icon")); // NOI18N btRefresh.setFocusable(false); btRefresh.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btRefresh.setName("btRefresh"); // NOI18N btRefresh.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btRefresh); jSeparator9.setName("jSeparator9"); // NOI18N jSeparator9.setSeparatorSize(new java.awt.Dimension(5, 40)); maiToolBar.add(jSeparator9); btStatistic.setAction(actionMap.get("doStatisticDialog")); // NOI18N btStatistic.setIcon(resourceMap.getIcon("btStatistic.icon")); // NOI18N btStatistic.setFocusable(false); btStatistic.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btStatistic.setName("btStatistic"); // NOI18N btStatistic.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btStatistic); jSeparator6.setName("jSeparator6"); // NOI18N jSeparator6.setSeparatorSize(new java.awt.Dimension(5, 40)); maiToolBar.add(jSeparator6); btConfigCli.setAction(actionMap.get("doConfigClient")); // NOI18N btConfigCli.setIcon(resourceMap.getIcon("btConfigCli.icon")); // NOI18N btConfigCli.setFocusable(false); btConfigCli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btConfigCli.setName("btConfigCli"); // NOI18N btConfigCli.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btConfigCli); jSeparator7.setName("jSeparator7"); // NOI18N jSeparator7.setSeparatorSize(new java.awt.Dimension(5, 40)); maiToolBar.add(jSeparator7); btExit.setAction(actionMap.get("doQuit")); // NOI18N btExit.setIcon(resourceMap.getIcon("btExit.icon")); // NOI18N btExit.setText(resourceMap.getString("btExit.text")); // NOI18N btExit.setFocusable(false); btExit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btExit.setName("btExit"); // NOI18N btExit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); maiToolBar.add(btExit); setComponent(mainPanel); setMenuBar(menuBar); setStatusBar(statusPanel); setToolBar(maiToolBar); }
From source file:op.care.nursingprocess.PnlSchedule.java
/** * This method is called from within the constructor to * initialize the form./* ww w. ja v a 2 s. c om*/ * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the PrinterForm Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { panelMain = new JPanel(); splitRegular = new JSplitPane(); pnlTageszeit = new JPanel(); jLabel6 = new JideLabel(); jLabel1 = new JideLabel(); jLabel2 = new JideLabel(); jLabel11 = new JideLabel(); jLabel3 = new JideLabel(); jLabel4 = new JideLabel(); txtNachtMo = new JTextField(); txtMorgens = new JTextField(); txtMittags = new JTextField(); txtNachmittags = new JTextField(); txtAbends = new JTextField(); txtNachtAb = new JTextField(); btnToTime = new JButton(); pnlUhrzeit = new JPanel(); lblUhrzeit = new JideLabel(); btnToTimeOfDay = new JButton(); txtUhrzeit = new JTextField(); cmbUhrzeit = new JComboBox(); tabWdh = new JideTabbedPane(); pnlDaily = new JPanel(); label3 = new JLabel(); spinTaeglich = new JSpinner(); jLabel7 = new JLabel(); btnJedenTag = new JButton(); pnlWeekly = new JPanel(); panel3 = new JPanel(); btnJedeWoche = new JButton(); label2 = new JLabel(); spinWoche = new JSpinner(); jLabel8 = new JLabel(); lblUhrzeit2 = new JideLabel(); lblUhrzeit3 = new JideLabel(); lblUhrzeit4 = new JideLabel(); lblUhrzeit5 = new JideLabel(); lblUhrzeit6 = new JideLabel(); lblUhrzeit7 = new JideLabel(); lblUhrzeit8 = new JideLabel(); cbMon = new JCheckBox(); cbDie = new JCheckBox(); cbMit = new JCheckBox(); cbDon = new JCheckBox(); cbFre = new JCheckBox(); cbSam = new JCheckBox(); cbSon = new JCheckBox(); pnlMonthly = new JPanel(); label4 = new JLabel(); spinMonat = new JSpinner(); label6 = new JLabel(); btnJedenMonat = new JButton(); label5 = new JLabel(); spinMonatTag = new JSpinner(); cmbTag = new JComboBox<>(); panel2 = new JPanel(); jLabel13 = new JLabel(); txtLDate = new JTextField(); lblMinutes = new JLabel(); txtMinutes = new JTextField(); pnlBemerkung = new JPanel(); jScrollPane1 = new JScrollPane(); txtBemerkung = new JTextArea(); btnSave = new JButton(); //======== this ======== setLayout(new BorderLayout()); //======== panelMain ======== { panelMain.setBorder(new LineBorder(Color.black, 2, true)); panelMain.addComponentListener(new ComponentAdapter() { @Override public void componentResized(ComponentEvent e) { panelMainComponentResized(e); } }); panelMain.setLayout(new FormLayout("$rgap, $lcgap, 223dlu:grow, $lcgap, $rgap", "$rgap, $lgap, pref, $lgap, default, $lgap, pref, $lgap, default, $lgap, 72dlu:grow, 2*($lgap, default)")); //======== splitRegular ======== { splitRegular.setDividerSize(0); splitRegular.setEnabled(false); splitRegular.setDividerLocation(150); splitRegular.setDoubleBuffered(true); //======== pnlTageszeit ======== { pnlTageszeit.setFont(new Font("Arial", Font.PLAIN, 14)); pnlTageszeit.setBorder(new EtchedBorder()); pnlTageszeit.setLayout( new FormLayout("6*(28dlu, $lcgap), default", "fill:default, $lgap, fill:default")); //---- jLabel6 ---- jLabel6.setText("Nachts, fr\u00fch morgens"); jLabel6.setOrientation(1); jLabel6.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel6.setClockwise(false); jLabel6.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel6, CC.xy(1, 1)); //---- jLabel1 ---- jLabel1.setForeground(new Color(0, 0, 204)); jLabel1.setText("Morgens"); jLabel1.setOrientation(1); jLabel1.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel1.setClockwise(false); jLabel1.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel1, CC.xy(3, 1)); //---- jLabel2 ---- jLabel2.setForeground(new Color(255, 102, 0)); jLabel2.setText("Mittags"); jLabel2.setOrientation(1); jLabel2.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel2.setClockwise(false); jLabel2.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel2, CC.xy(5, 1)); //---- jLabel11 ---- jLabel11.setForeground(new Color(0, 153, 51)); jLabel11.setText("Nachmittag"); jLabel11.setOrientation(1); jLabel11.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel11.setClockwise(false); jLabel11.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel11, CC.xy(7, 1)); //---- jLabel3 ---- jLabel3.setForeground(new Color(255, 0, 51)); jLabel3.setText("Abends"); jLabel3.setOrientation(1); jLabel3.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel3.setClockwise(false); jLabel3.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel3, CC.xy(9, 1)); //---- jLabel4 ---- jLabel4.setText("Nacht, sp\u00e4t abends"); jLabel4.setOrientation(1); jLabel4.setFont(new Font("Arial", Font.PLAIN, 14)); jLabel4.setClockwise(false); jLabel4.setHorizontalTextPosition(SwingConstants.LEFT); pnlTageszeit.add(jLabel4, CC.xy(11, 1)); //---- txtNachtMo ---- txtNachtMo.setHorizontalAlignment(SwingConstants.RIGHT); txtNachtMo.setText("0.0"); txtNachtMo.setFont(new Font("Arial", Font.PLAIN, 14)); txtNachtMo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtNachtMoActionPerformed(e); } }); txtNachtMo.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtNachtMo, CC.xy(1, 3)); //---- txtMorgens ---- txtMorgens.setHorizontalAlignment(SwingConstants.RIGHT); txtMorgens.setText("1.0"); txtMorgens.setFont(new Font("Arial", Font.PLAIN, 14)); txtMorgens.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtMorgensActionPerformed(e); } }); txtMorgens.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtMorgens, CC.xy(3, 3)); //---- txtMittags ---- txtMittags.setHorizontalAlignment(SwingConstants.RIGHT); txtMittags.setText("0.0"); txtMittags.setFont(new Font("Arial", Font.PLAIN, 14)); txtMittags.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtMittagsActionPerformed(e); } }); txtMittags.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtMittags, CC.xy(5, 3)); //---- txtNachmittags ---- txtNachmittags.setHorizontalAlignment(SwingConstants.RIGHT); txtNachmittags.setText("0.0"); txtNachmittags.setFont(new Font("Arial", Font.PLAIN, 14)); txtNachmittags.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtNachmittagsActionPerformed(e); } }); txtNachmittags.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtNachmittags, CC.xy(7, 3)); //---- txtAbends ---- txtAbends.setHorizontalAlignment(SwingConstants.RIGHT); txtAbends.setText("0.0"); txtAbends.setFont(new Font("Arial", Font.PLAIN, 14)); txtAbends.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtAbendsActionPerformed(e); } }); txtAbends.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtAbends, CC.xy(9, 3)); //---- txtNachtAb ---- txtNachtAb.setHorizontalAlignment(SwingConstants.RIGHT); txtNachtAb.setText("0.0"); txtNachtAb.setFont(new Font("Arial", Font.PLAIN, 14)); txtNachtAb.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtNachtAbActionPerformed(e); } }); txtNachtAb.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlTageszeit.add(txtNachtAb, CC.xy(11, 3)); //---- btnToTime ---- btnToTime.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/bw/1rightarrow.png"))); btnToTime.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnToTimeActionPerformed(e); } }); pnlTageszeit.add(btnToTime, CC.xy(13, 3)); } splitRegular.setLeftComponent(pnlTageszeit); //======== pnlUhrzeit ======== { pnlUhrzeit.setBorder(new EtchedBorder()); pnlUhrzeit.setLayout( new FormLayout("default, $ugap, 75dlu, $ugap, pref", "default:grow, $rgap, default")); //---- lblUhrzeit ---- lblUhrzeit.setText("Anzahl Massnahmen"); lblUhrzeit.setOrientation(2); lblUhrzeit.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit.setClockwise(false); lblUhrzeit.setHorizontalTextPosition(SwingConstants.LEFT); lblUhrzeit.setVerticalAlignment(SwingConstants.BOTTOM); pnlUhrzeit.add(lblUhrzeit, CC.xy(3, 1, CC.DEFAULT, CC.BOTTOM)); //---- btnToTimeOfDay ---- btnToTimeOfDay .setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/bw/1leftarrow.png"))); btnToTimeOfDay.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnToTimeOfDayActionPerformed(e); } }); pnlUhrzeit.add(btnToTimeOfDay, CC.xy(1, 3)); //---- txtUhrzeit ---- txtUhrzeit.setHorizontalAlignment(SwingConstants.RIGHT); txtUhrzeit.setText("0.0"); txtUhrzeit.setFont(new Font("Arial", Font.PLAIN, 14)); txtUhrzeit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { txtUhrzeitActionPerformed(e); } }); txtUhrzeit.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtFocusGained(e); } @Override public void focusLost(FocusEvent e) { txtIntegerFocusLost(e); } }); pnlUhrzeit.add(txtUhrzeit, CC.xy(3, 3)); //---- cmbUhrzeit ---- cmbUhrzeit.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { cmbUhrzeitItemStateChanged(e); } }); pnlUhrzeit.add(cmbUhrzeit, CC.xy(5, 3)); } splitRegular.setRightComponent(pnlUhrzeit); } panelMain.add(splitRegular, CC.xy(3, 3)); //======== tabWdh ======== { //======== pnlDaily ======== { pnlDaily.setFont(new Font("Arial", Font.PLAIN, 14)); pnlDaily.setLayout(new FormLayout("2*(default), $rgap, $lcgap, 40dlu, $rgap, default", "default, $lgap, pref, $lgap, default")); //---- label3 ---- label3.setText("alle"); label3.setFont(new Font("Arial", Font.PLAIN, 14)); pnlDaily.add(label3, CC.xy(2, 3)); //---- spinTaeglich ---- spinTaeglich.setFont(new Font("Arial", Font.PLAIN, 14)); spinTaeglich.setModel(new SpinnerNumberModel(1, null, null, 1)); pnlDaily.add(spinTaeglich, CC.xy(5, 3)); //---- jLabel7 ---- jLabel7.setText("Tage"); jLabel7.setFont(new Font("Arial", Font.PLAIN, 14)); pnlDaily.add(jLabel7, CC.xy(7, 3)); //---- btnJedenTag ---- btnJedenTag.setText("Jeden Tag"); btnJedenTag.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnJedenTagActionPerformed(e); } }); pnlDaily.add(btnJedenTag, CC.xywh(2, 5, 6, 1)); } tabWdh.addTab("T\u00e4glich", pnlDaily); //======== pnlWeekly ======== { pnlWeekly.setFont(new Font("Arial", Font.PLAIN, 14)); pnlWeekly.setLayout(new FormLayout("default, 7*(13dlu), $lcgap, default:grow", "$ugap, $lgap, default, $lgap, pref, default:grow, $lgap, $rgap")); //======== panel3 ======== { panel3.setLayout( new FormLayout("default, $rgap, 40dlu, $rgap, 2*(default), $lcgap, default, $lcgap", "default:grow, $lgap, default")); //---- btnJedeWoche ---- btnJedeWoche.setText("Jede Woche"); btnJedeWoche.setFont(new Font("Arial", Font.PLAIN, 14)); btnJedeWoche.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnJedeWocheActionPerformed(e); } }); panel3.add(btnJedeWoche, CC.xywh(3, 3, 3, 1)); //---- label2 ---- label2.setText("alle"); label2.setFont(new Font("Arial", Font.PLAIN, 14)); panel3.add(label2, CC.xy(1, 1)); panel3.add(spinWoche, CC.xy(3, 1)); //---- jLabel8 ---- jLabel8.setText("Wochen am"); jLabel8.setFont(new Font("Arial", Font.PLAIN, 14)); panel3.add(jLabel8, CC.xy(5, 1)); } pnlWeekly.add(panel3, CC.xywh(2, 3, 9, 1)); //---- lblUhrzeit2 ---- lblUhrzeit2.setText("montags"); lblUhrzeit2.setOrientation(1); lblUhrzeit2.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit2.setClockwise(false); lblUhrzeit2.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit2, CC.xy(2, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit3 ---- lblUhrzeit3.setText("dienstags"); lblUhrzeit3.setOrientation(1); lblUhrzeit3.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit3.setClockwise(false); lblUhrzeit3.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit3, CC.xy(3, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit4 ---- lblUhrzeit4.setText("mittwochs"); lblUhrzeit4.setOrientation(1); lblUhrzeit4.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit4.setClockwise(false); lblUhrzeit4.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit4, CC.xy(4, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit5 ---- lblUhrzeit5.setText("donnerstags"); lblUhrzeit5.setOrientation(1); lblUhrzeit5.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit5.setClockwise(false); lblUhrzeit5.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit5, CC.xy(5, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit6 ---- lblUhrzeit6.setText("freitags"); lblUhrzeit6.setOrientation(1); lblUhrzeit6.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit6.setClockwise(false); lblUhrzeit6.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit6, CC.xy(6, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit7 ---- lblUhrzeit7.setText("samstags"); lblUhrzeit7.setOrientation(1); lblUhrzeit7.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit7.setClockwise(false); lblUhrzeit7.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit7, CC.xy(7, 5, CC.CENTER, CC.BOTTOM)); //---- lblUhrzeit8 ---- lblUhrzeit8.setText("sonntags"); lblUhrzeit8.setOrientation(1); lblUhrzeit8.setFont(new Font("Arial", Font.PLAIN, 14)); lblUhrzeit8.setClockwise(false); lblUhrzeit8.setHorizontalTextPosition(SwingConstants.LEFT); pnlWeekly.add(lblUhrzeit8, CC.xy(8, 5, CC.CENTER, CC.BOTTOM)); //---- cbMon ---- cbMon.setBorder(BorderFactory.createEmptyBorder()); cbMon.setMargin(new Insets(0, 0, 0, 0)); cbMon.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbMonActionPerformed(e); } }); pnlWeekly.add(cbMon, CC.xy(2, 6, CC.CENTER, CC.DEFAULT)); //---- cbDie ---- cbDie.setBorder(BorderFactory.createEmptyBorder()); cbDie.setMargin(new Insets(0, 0, 0, 0)); cbDie.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbDieActionPerformed(e); } }); pnlWeekly.add(cbDie, CC.xy(3, 6, CC.CENTER, CC.DEFAULT)); //---- cbMit ---- cbMit.setBorder(BorderFactory.createEmptyBorder()); cbMit.setMargin(new Insets(0, 0, 0, 0)); cbMit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbMitActionPerformed(e); } }); pnlWeekly.add(cbMit, CC.xy(4, 6, CC.CENTER, CC.DEFAULT)); //---- cbDon ---- cbDon.setBorder(BorderFactory.createEmptyBorder()); cbDon.setMargin(new Insets(0, 0, 0, 0)); cbDon.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbDonActionPerformed(e); } }); pnlWeekly.add(cbDon, CC.xy(5, 6, CC.CENTER, CC.DEFAULT)); //---- cbFre ---- cbFre.setBorder(BorderFactory.createEmptyBorder()); cbFre.setMargin(new Insets(0, 0, 0, 0)); cbFre.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbFreActionPerformed(e); } }); pnlWeekly.add(cbFre, CC.xy(6, 6, CC.CENTER, CC.DEFAULT)); //---- cbSam ---- cbSam.setBorder(BorderFactory.createEmptyBorder()); cbSam.setMargin(new Insets(0, 0, 0, 0)); cbSam.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbSamActionPerformed(e); } }); pnlWeekly.add(cbSam, CC.xy(7, 6, CC.CENTER, CC.DEFAULT)); //---- cbSon ---- cbSon.setBorder(BorderFactory.createEmptyBorder()); cbSon.setMargin(new Insets(0, 0, 0, 0)); cbSon.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { cbSonActionPerformed(e); } }); pnlWeekly.add(cbSon, CC.xy(8, 6, CC.CENTER, CC.DEFAULT)); } tabWdh.addTab("W\u00f6chentlich", pnlWeekly); //======== pnlMonthly ======== { pnlMonthly.setFont(new Font("Arial", Font.PLAIN, 14)); pnlMonthly.setLayout( new FormLayout("default, $lcgap, pref, $lcgap, 40dlu, $lcgap, pref, $lcgap, 61dlu", "3*(default, $lgap), default")); //---- label4 ---- label4.setText("jeden"); label4.setFont(new Font("Arial", Font.PLAIN, 14)); label4.setHorizontalAlignment(SwingConstants.TRAILING); pnlMonthly.add(label4, CC.xy(3, 3)); //---- spinMonat ---- spinMonat.setFont(new Font("Arial", Font.PLAIN, 14)); pnlMonthly.add(spinMonat, CC.xy(5, 3)); //---- label6 ---- label6.setText("Monat"); label6.setFont(new Font("Arial", Font.PLAIN, 14)); pnlMonthly.add(label6, CC.xy(7, 3)); //---- btnJedenMonat ---- btnJedenMonat.setText("Jeden Monat"); btnJedenMonat.setFont(new Font("Arial", Font.PLAIN, 14)); btnJedenMonat.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnJedenMonatActionPerformed(e); } }); pnlMonthly.add(btnJedenMonat, CC.xywh(3, 5, 5, 1)); //---- label5 ---- label5.setText("jeweils am"); label5.setFont(new Font("Arial", Font.PLAIN, 14)); label5.setHorizontalAlignment(SwingConstants.TRAILING); pnlMonthly.add(label5, CC.xy(3, 7)); //---- spinMonatTag ---- spinMonatTag.setFont(new Font("Arial", Font.PLAIN, 14)); spinMonatTag.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { spinMonatTagStateChanged(e); } }); pnlMonthly.add(spinMonatTag, CC.xy(5, 7)); //---- cmbTag ---- cmbTag.setModel(new DefaultComboBoxModel<>(new String[] { "Tag des Monats", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag" })); cmbTag.setFont(new Font("Arial", Font.PLAIN, 14)); pnlMonthly.add(cmbTag, CC.xywh(7, 7, 3, 1)); } tabWdh.addTab("Monatlich", pnlMonthly); } panelMain.add(tabWdh, CC.xy(3, 7, CC.FILL, CC.FILL)); //======== panel2 ======== { panel2.setLayout(new FormLayout( "default, $lcgap, default:grow, $ugap, default, $lcgap, default:grow", "default:grow")); //---- jLabel13 ---- jLabel13.setText("Erst einplanen ab dem"); jLabel13.setFont(new Font("Arial", Font.PLAIN, 14)); panel2.add(jLabel13, CC.xy(1, 1)); //---- txtLDate ---- txtLDate.setFont(new Font("Arial", Font.PLAIN, 14)); txtLDate.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { txtLDateFocusLost(e); } }); panel2.add(txtLDate, CC.xy(3, 1)); //---- lblMinutes ---- lblMinutes.setText("text"); lblMinutes.setFont(new Font("Arial", Font.PLAIN, 14)); panel2.add(lblMinutes, CC.xy(5, 1)); //---- txtMinutes ---- txtMinutes.setFont(new Font("Arial", Font.PLAIN, 14)); txtMinutes.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { txtMinutesFocusLost(e); } }); panel2.add(txtMinutes, CC.xy(7, 1)); } panelMain.add(panel2, CC.xy(3, 9)); //======== pnlBemerkung ======== { pnlBemerkung.setBorder(new TitledBorder(null, "Kommentar zur Anwendung (Erscheint im DFN)", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION, new Font("Arial", Font.PLAIN, 14))); pnlBemerkung.setLayout(new BoxLayout(pnlBemerkung, BoxLayout.X_AXIS)); //======== jScrollPane1 ======== { //---- txtBemerkung ---- txtBemerkung.setColumns(20); txtBemerkung.setRows(5); jScrollPane1.setViewportView(txtBemerkung); } pnlBemerkung.add(jScrollPane1); } panelMain.add(pnlBemerkung, CC.xy(3, 11, CC.FILL, CC.FILL)); //---- btnSave ---- btnSave.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/apply.png"))); btnSave.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { btnSaveActionPerformed(e); } }); panelMain.add(btnSave, CC.xy(3, 13, CC.RIGHT, CC.DEFAULT)); } add(panelMain, BorderLayout.CENTER); }
From source file:org.apache.log4j.chainsaw.LogUI.java
private void initPrefModelListeners() { applicationPreferenceModel.addPropertyChangeListener("identifierExpression", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { handler.setIdentifierExpression(evt.getNewValue().toString()); }/*www.j a v a2s. c om*/ }); handler.setIdentifierExpression(applicationPreferenceModel.getIdentifierExpression()); applicationPreferenceModel.addPropertyChangeListener("toolTipDisplayMillis", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { ToolTipManager.sharedInstance().setDismissDelay(((Integer) evt.getNewValue()).intValue()); } }); ToolTipManager.sharedInstance().setDismissDelay(applicationPreferenceModel.getToolTipDisplayMillis()); applicationPreferenceModel.addPropertyChangeListener("responsiveness", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { int value = ((Integer) evt.getNewValue()).intValue(); handler.setQueueInterval((value * 1000) - 750); } }); handler.setQueueInterval((applicationPreferenceModel.getResponsiveness() * 1000) - 750); applicationPreferenceModel.addPropertyChangeListener("tabPlacement", new PropertyChangeListener() { public void propertyChange(final PropertyChangeEvent evt) { SwingUtilities.invokeLater(new Runnable() { public void run() { int placement = ((Integer) evt.getNewValue()).intValue(); switch (placement) { case SwingConstants.TOP: case SwingConstants.BOTTOM: tabbedPane.setTabPlacement(placement); break; default: break; } } }); } }); applicationPreferenceModel.addPropertyChangeListener("statusBar", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean) evt.getNewValue()).booleanValue(); setStatusBarVisible(value); } }); setStatusBarVisible(applicationPreferenceModel.isStatusBar()); applicationPreferenceModel.addPropertyChangeListener("receivers", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean) evt.getNewValue()).booleanValue(); if (value) { showReceiverPanel(); } else { hideReceiverPanel(); } } }); // if (applicationPreferenceModel.isReceivers()) { // showReceiverPanel(); // } else { // hideReceiverPanel(); // } applicationPreferenceModel.addPropertyChangeListener("toolbar", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean) evt.getNewValue()).booleanValue(); toolbar.setVisible(value); } }); toolbar.setVisible(applicationPreferenceModel.isToolbar()); }
From source file:org.domainmath.gui.MainFrame.java
/** This method is called from within the constructor to * initialize the form.//from ww w .ja v a 2 s .c o m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jToolBar1 = new javax.swing.JToolBar(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jSeparator4 = new javax.swing.JToolBar.Separator(); connectButton = new javax.swing.JButton(); disconnectButton = new javax.swing.JButton(); jSeparator9 = new javax.swing.JToolBar.Separator(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jSeparator15 = new javax.swing.JToolBar.Separator(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jSeparator13 = new javax.swing.JToolBar.Separator(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); dirComboBox = new javax.swing.JComboBox(); folderUpButton = new javax.swing.JButton(); browseButton = new javax.swing.JButton(); addButton = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newFileItem = new javax.swing.JMenuItem(); openItem = new javax.swing.JMenuItem(); jSeparator17 = new javax.swing.JPopupMenu.Separator(); saveFileItem = new javax.swing.JMenuItem(); saveAsItem = new javax.swing.JMenuItem(); savePlotItem = new javax.swing.JMenuItem(); saveAllItem = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); printFileItem = new javax.swing.JMenuItem(); printItem = new javax.swing.JMenuItem(); jSeparator19 = new javax.swing.JPopupMenu.Separator(); preferencesItem = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JPopupMenu.Separator(); connectItem = new javax.swing.JMenuItem(); disconnectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JPopupMenu.Separator(); exitItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); undoItem = new javax.swing.JMenuItem(); redoItem = new javax.swing.JMenuItem(); jSeparator20 = new javax.swing.JPopupMenu.Separator(); cutItem = new javax.swing.JMenuItem(); copyItem = new javax.swing.JMenuItem(); pasteItem = new javax.swing.JMenuItem(); jSeparator21 = new javax.swing.JPopupMenu.Separator(); deleteItem = new javax.swing.JMenuItem(); selectAllItem = new javax.swing.JMenuItem(); jSeparator22 = new javax.swing.JPopupMenu.Separator(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jSeparator23 = new javax.swing.JPopupMenu.Separator(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jSeparator24 = new javax.swing.JPopupMenu.Separator(); jMenuItem6 = new javax.swing.JMenuItem(); jMenuItem1 = new javax.swing.JMenuItem(); jSeparator11 = new javax.swing.JPopupMenu.Separator(); clearOutWindowItem = new javax.swing.JMenuItem(); jMenu3 = new javax.swing.JMenu(); consoleItem = new javax.swing.JMenuItem(); historyItem = new javax.swing.JMenuItem(); filesItem = new javax.swing.JMenuItem(); workspaceItem = new javax.swing.JMenuItem(); codeEditorItem = new javax.swing.JMenuItem(); pathsItem = new javax.swing.JMenuItem(); pkgsItem = new javax.swing.JMenuItem(); arrayEditItem = new javax.swing.JMenuItem(); jMenuItem7 = new javax.swing.JMenuItem(); jMenu1 = new javax.swing.JMenu(); findItem = new javax.swing.JMenuItem(); replaceItem = new javax.swing.JMenuItem(); gotoItem = new javax.swing.JMenuItem(); jSeparator25 = new javax.swing.JPopupMenu.Separator(); googleItem = new javax.swing.JMenuItem(); wikiItem = new javax.swing.JMenuItem(); pkgMenu = new javax.swing.JMenu(); debugMenu = new javax.swing.JMenu(); runScriptItem = new javax.swing.JMenuItem(); runScriptCItem = new javax.swing.JMenuItem(); jMenuItem8 = new javax.swing.JMenuItem(); jSeparator8 = new javax.swing.JPopupMenu.Separator(); debugScriptMenuItem = new javax.swing.JMenuItem(); testScriptMenuItem = new javax.swing.JMenuItem(); toggleBreakpointItem = new javax.swing.JMenuItem(); removeToggleBreakpointItem = new javax.swing.JMenuItem(); clearAllBreakpointsItem = new javax.swing.JMenuItem(); jSeparator10 = new javax.swing.JPopupMenu.Separator(); stepItem = new javax.swing.JMenuItem(); stepInItem = new javax.swing.JMenuItem(); stepOutItem = new javax.swing.JMenuItem(); continueItem = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JPopupMenu.Separator(); finishDebugItem = new javax.swing.JMenuItem(); toolsMenu = new javax.swing.JMenu(); fltkplotItem = new javax.swing.JMenuItem(); octaveCmdItem = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); previousWindowItem = new javax.swing.JMenuItem(); nextWindowItem = new javax.swing.JMenuItem(); jSeparator29 = new javax.swing.JPopupMenu.Separator(); closeItem = new javax.swing.JMenuItem(); closeAllItem = new javax.swing.JMenuItem(); jSeparator18 = new javax.swing.JPopupMenu.Separator(); windowsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); forumItem = new javax.swing.JMenuItem(); octaveInfoItem = new javax.swing.JMenuItem(); jSeparator12 = new javax.swing.JPopupMenu.Separator(); quickHelpItem = new javax.swing.JMenuItem(); jMenuItem9 = new javax.swing.JMenuItem(); docPkgItem = new javax.swing.JMenuItem(); referenceMenu = new javax.swing.JMenu(); referenceItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JPopupMenu.Separator(); checkForUpdatesMenuItem = new javax.swing.JMenuItem(); onlineHelpItem = new javax.swing.JMenuItem(); faqItem = new javax.swing.JMenuItem(); jSeparator14 = new javax.swing.JPopupMenu.Separator(); reportBugItem = new javax.swing.JMenuItem(); feedBackItem = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JPopupMenu.Separator(); AboutItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle .getBundle("org/domainmath/gui/resources/DomainMath_en"); // NOI18N setTitle(bundle.getString("DomainMath.title")); // NOI18N addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jToolBar1.setRollover(true); jToolBar1.setName("Standard"); // NOI18N jButton1.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-new.png"))); // NOI18N jButton1.setFocusable(false); jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jToolBar1.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-open.png"))); // NOI18N jButton2.setFocusable(false); jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jToolBar1.add(jButton2); jButton3.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-save-all.png"))); // NOI18N jButton3.setFocusable(false); jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jToolBar1.add(jButton3); jToolBar1.add(jSeparator4); connectButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/connect.png"))); // NOI18N connectButton.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("connectItem.mnemonic").charAt(0)); connectButton.setToolTipText(bundle.getString("connectItem.tooltip")); // NOI18N connectButton.setFocusable(false); connectButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); connectButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); connectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { connectButtonActionPerformed(evt); } }); jToolBar1.add(connectButton); disconnectButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/disconnect.png"))); // NOI18N disconnectButton .setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("disconnectItem.mnemonic").charAt(0)); disconnectButton.setToolTipText(bundle.getString("disconnectItem.tooltip")); // NOI18N disconnectButton.setFocusable(false); disconnectButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); disconnectButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); disconnectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { disconnectButtonActionPerformed(evt); } }); jToolBar1.add(disconnectButton); jToolBar1.add(jSeparator9); jButton4.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-undo.png"))); // NOI18N jButton4.setFocusable(false); jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jToolBar1.add(jButton4); jButton5.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-redo.png"))); // NOI18N jButton5.setFocusable(false); jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jToolBar1.add(jButton5); jToolBar1.add(jSeparator15); jButton6.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-cut.png"))); // NOI18N jButton6.setFocusable(false); jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jToolBar1.add(jButton6); jButton7.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-copy.png"))); // NOI18N jButton7.setFocusable(false); jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); jToolBar1.add(jButton7); jButton8.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-paste.png"))); // NOI18N jButton8.setFocusable(false); jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); jToolBar1.add(jButton8); jToolBar1.add(jSeparator13); jLabel1.setText("Current Directory:"); dirComboBox.setEditable(true); dirComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { dirComboBoxItemStateChanged(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(1, 1, 1).addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(dirComboBox, 0, 112, Short.MAX_VALUE).addGap(1, 1, 1))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(5, 5, 5).addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1) .addComponent(dirComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(3, 3, 3))); jToolBar1.add(jPanel1); folderUpButton.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/size22x22/go-up.png"))); // NOI18N folderUpButton.setToolTipText("Up"); folderUpButton.setFocusable(false); folderUpButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); folderUpButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); folderUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { folderUpButtonActionPerformed(evt); } }); jToolBar1.add(folderUpButton); browseButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-open.png"))); // NOI18N browseButton.setToolTipText(bundle.getString("browseButton.title")); // NOI18N browseButton.setFocusable(false); browseButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); browseButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); browseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseButtonActionPerformed(evt); } }); jToolBar1.add(browseButton); addButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-add.png"))); // NOI18N addButton.setToolTipText(bundle.getString("addButton.title")); // NOI18N addButton.setFocusable(false); addButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); addButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); jToolBar1.add(addButton); getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); fileMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("fileMenu.mnemonic").charAt(0)); fileMenu.setText(bundle.getString("fileMenu.name")); // NOI18N newFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK)); newFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-new.png"))); // NOI18N newFileItem.setText("New"); newFileItem.setToolTipText(bundle.getString("newMenuItem.tooltip")); // NOI18N newFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newFileItemActionPerformed(evt); } }); fileMenu.add(newFileItem); openItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK)); openItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-open.png"))); // NOI18N openItem.setText("Open..."); openItem.setToolTipText("Open File"); openItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openItemActionPerformed(evt); } }); fileMenu.add(openItem); fileMenu.add(jSeparator17); saveFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); saveFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-save.png"))); // NOI18N saveFileItem.setText("Save "); saveFileItem.setToolTipText(bundle.getString("saveMenuItem.tooltp")); // NOI18N saveFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveFileItemActionPerformed(evt); } }); fileMenu.add(saveFileItem); saveAsItem.setText("Save As..."); saveAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveAsItemActionPerformed(evt); } }); fileMenu.add(saveAsItem); savePlotItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("savePlotItem.mnemonic").charAt(0)); savePlotItem.setText(bundle.getString("savePlotItem.name")); // NOI18N savePlotItem.setToolTipText(bundle.getString("savePlotItem.tooltip")); // NOI18N savePlotItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { savePlotItemActionPerformed(evt); } }); fileMenu.add(savePlotItem); saveAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); saveAllItem.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/document-save-all.png"))); // NOI18N saveAllItem.setText(bundle.getString("saveAllMenuItem.text")); // NOI18N saveAllItem.setToolTipText(bundle.getString("saveAllMenuItem.tooltip")); // NOI18N saveAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveAllItemActionPerformed(evt); } }); fileMenu.add(saveAllItem); fileMenu.add(jSeparator1); printFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK)); printFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-print2.png"))); // NOI18N printFileItem.setText("Print"); printFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { printFileItemActionPerformed(evt); } }); fileMenu.add(printFileItem); printItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); printItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("printItem.mnemonic").charAt(0)); printItem.setText(bundle.getString("printItem.name")); // NOI18N printItem.setToolTipText(bundle.getString("printItem.tooltip")); // NOI18N printItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { printItemActionPerformed(evt); } }); fileMenu.add(printItem); fileMenu.add(jSeparator19); preferencesItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/preferences.png"))); // NOI18N preferencesItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("preferecesItem.mnemonic").charAt(0)); preferencesItem.setText(bundle.getString("preferencesItem.name")); // NOI18N preferencesItem.setToolTipText(bundle.getString("preferencesItem.tooltip")); // NOI18N preferencesItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { preferencesItemActionPerformed(evt); } }); fileMenu.add(preferencesItem); fileMenu.add(jSeparator2); connectItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/connect.png"))); // NOI18N connectItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("connectItem.mnemonic").charAt(0)); connectItem.setText(bundle.getString("connectItem.name")); // NOI18N connectItem.setToolTipText(bundle.getString("connectItem.tooltip")); // NOI18N connectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { connectItemActionPerformed(evt); } }); fileMenu.add(connectItem); disconnectItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/disconnect.png"))); // NOI18N disconnectItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("disconnectItem.mnemonic").charAt(0)); disconnectItem.setText(bundle.getString("disconnectItem.name")); // NOI18N disconnectItem.setToolTipText(bundle.getString("disconnectItem.tooltip")); // NOI18N disconnectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { disconnectItemActionPerformed(evt); } }); fileMenu.add(disconnectItem); fileMenu.add(jSeparator3); exitItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("exitItem.mnemonic").charAt(0)); exitItem.setText(bundle.getString("exitItem.name")); // NOI18N exitItem.setToolTipText(bundle.getString("exitItem.tooltip")); // NOI18N exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); jMenuBar1.add(fileMenu); editMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("editMenu.mnemonic").charAt(0)); editMenu.setText("Edit"); undoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK)); undoItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-undo.png"))); // NOI18N undoItem.setText("Undo"); undoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { undoItemActionPerformed(evt); } }); editMenu.add(undoItem); redoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK)); redoItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-redo.png"))); // NOI18N redoItem.setText("Redo"); redoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { redoItemActionPerformed(evt); } }); editMenu.add(redoItem); editMenu.add(jSeparator20); cutItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK)); cutItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-cut.png"))); // NOI18N cutItem.setText("Cut"); cutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cutItemActionPerformed(evt); } }); editMenu.add(cutItem); copyItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK)); copyItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-copy.png"))); // NOI18N copyItem.setText("Copy"); copyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { copyItemActionPerformed(evt); } }); editMenu.add(copyItem); pasteItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK)); pasteItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-paste.png"))); // NOI18N pasteItem.setText("Paste"); pasteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pasteItemActionPerformed(evt); } }); editMenu.add(pasteItem); editMenu.add(jSeparator21); deleteItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-delete.png"))); // NOI18N deleteItem.setText("Delete"); deleteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteItemActionPerformed(evt); } }); editMenu.add(deleteItem); selectAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK)); selectAllItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-select-all.png"))); // NOI18N selectAllItem.setText("Select All"); selectAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selectAllItemActionPerformed(evt); } }); editMenu.add(selectAllItem); editMenu.add(jSeparator22); jMenuItem2.setAction(new RSyntaxTextAreaEditorKit.InsertTabAction()); jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem2.setText("Increase Indent"); editMenu.add(jMenuItem2); jMenuItem3.setAction(new RSyntaxTextAreaEditorKit.DecreaseIndentAction()); jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, java.awt.event.InputEvent.SHIFT_MASK)); jMenuItem3.setText("Decrease Indent"); editMenu.add(jMenuItem3); editMenu.add(jSeparator23); jMenuItem4.setAction(new RTextAreaEditorKit.UpperSelectionCaseAction()); jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem4.setText("Make Uppercase"); editMenu.add(jMenuItem4); jMenuItem5.setAction(new RTextAreaEditorKit.LowerSelectionCaseAction()); jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); jMenuItem5.setText("Make Lowercase"); editMenu.add(jMenuItem5); editMenu.add(jSeparator24); jMenuItem6.setText("Clear All Marks..."); jMenuItem6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem6ActionPerformed(evt); } }); editMenu.add(jMenuItem6); jMenuItem1.setAction(new RSyntaxTextAreaEditorKit.ToggleCommentAction()); jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SLASH, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem1.setText("Toggle Comment"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); editMenu.add(jMenuItem1); editMenu.add(jSeparator11); clearOutWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.CTRL_MASK)); clearOutWindowItem .setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("clearOutputWindowItem.mnemonic").charAt(0)); clearOutWindowItem.setText(bundle.getString("clearOutputWindowItem.name")); // NOI18N clearOutWindowItem.setToolTipText(bundle.getString("clearOutputWindowItem.tooltip")); // NOI18N clearOutWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clearOutWindowItemActionPerformed(evt); } }); editMenu.add(clearOutWindowItem); jMenuBar1.add(editMenu); jMenu3.setText(bundle.getString("viewMenu.title")); // NOI18N consoleItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_0, java.awt.event.InputEvent.CTRL_MASK)); consoleItem.setText(bundle.getString("consoleItem.title")); // NOI18N consoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { consoleItemActionPerformed(evt); } }); jMenu3.add(consoleItem); historyItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.CTRL_MASK)); historyItem.setText(bundle.getString("historyItem.title")); // NOI18N historyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { historyItemActionPerformed(evt); } }); jMenu3.add(historyItem); filesItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.CTRL_MASK)); filesItem.setText(bundle.getString("filesItem.title")); // NOI18N filesItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { filesItemActionPerformed(evt); } }); jMenu3.add(filesItem); workspaceItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.CTRL_MASK)); workspaceItem.setText(bundle.getString("worksaceItem.title")); // NOI18N workspaceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { workspaceItemActionPerformed(evt); } }); jMenu3.add(workspaceItem); codeEditorItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_4, java.awt.event.InputEvent.CTRL_MASK)); codeEditorItem.setText(bundle.getString("codeEditorItem.title")); // NOI18N codeEditorItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { codeEditorItemActionPerformed(evt); } }); jMenu3.add(codeEditorItem); pathsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_5, java.awt.event.InputEvent.CTRL_MASK)); pathsItem.setText(bundle.getString("setPathsItem.title")); // NOI18N pathsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pathsItemActionPerformed(evt); } }); jMenu3.add(pathsItem); pkgsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_6, java.awt.event.InputEvent.CTRL_MASK)); pkgsItem.setText(bundle.getString("pkgsItem.title")); // NOI18N pkgsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pkgsItemActionPerformed(evt); } }); jMenu3.add(pkgsItem); arrayEditItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_7, java.awt.event.InputEvent.CTRL_MASK)); arrayEditItem.setText(bundle.getString("arrayEidtorItem.title")); // NOI18N arrayEditItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { arrayEditItemActionPerformed(evt); } }); jMenu3.add(arrayEditItem); jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_8, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem7.setText("Debugger Window"); jMenuItem7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem7ActionPerformed(evt); } }); jMenu3.add(jMenuItem7); jMenuBar1.add(jMenu3); jMenu1.setMnemonic('S'); jMenu1.setText("Search"); findItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK)); findItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-find.png"))); // NOI18N findItem.setMnemonic('F'); findItem.setText("Find..."); findItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findItemActionPerformed(evt); } }); jMenu1.add(findItem); replaceItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK)); replaceItem.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/edit-find-replace.png"))); // NOI18N replaceItem.setText("Replace..."); replaceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { replaceItemActionPerformed(evt); } }); jMenu1.add(replaceItem); gotoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); gotoItem.setText("Go To..."); gotoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { gotoItemActionPerformed(evt); } }); jMenu1.add(gotoItem); jMenu1.add(jSeparator25); googleItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK)); googleItem.setText("Google Search"); googleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { googleItemActionPerformed(evt); } }); jMenu1.add(googleItem); wikiItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); wikiItem.setText("Wikipedia Search"); wikiItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wikiItemActionPerformed(evt); } }); jMenu1.add(wikiItem); jMenuBar1.add(jMenu1); pkgMenu.setText(bundle.getString("pkgMenu.name")); // NOI18N jMenuBar1.add(pkgMenu); debugMenu.setText("Debug"); runScriptItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0)); runScriptItem .setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/Run.png"))); // NOI18N runScriptItem.setText("Run Script"); runScriptItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { runScriptItemActionPerformed(evt); } }); debugMenu.add(runScriptItem); runScriptCItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, java.awt.event.InputEvent.SHIFT_MASK)); runScriptCItem.setText("Run Script from Console"); runScriptCItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { runScriptCItemActionPerformed(evt); } }); debugMenu.add(runScriptCItem); jMenuItem8.setText("Edit Run Configuration"); jMenuItem8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem8ActionPerformed(evt); } }); debugMenu.add(jMenuItem8); debugMenu.add(jSeparator8); debugScriptMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.CTRL_MASK)); debugScriptMenuItem.setText("Debug Script"); debugScriptMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { debugScriptMenuItemActionPerformed(evt); } }); debugMenu.add(debugScriptMenuItem); testScriptMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); testScriptMenuItem.setText("Test Script"); testScriptMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { testScriptMenuItemActionPerformed(evt); } }); debugMenu.add(testScriptMenuItem); toggleBreakpointItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, 0)); toggleBreakpointItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/resources/stop.png"))); // NOI18N toggleBreakpointItem.setText("Toggle Breakpoint"); toggleBreakpointItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { toggleBreakpointItemActionPerformed(evt); } }); debugMenu.add(toggleBreakpointItem); removeToggleBreakpointItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, java.awt.event.InputEvent.SHIFT_MASK)); removeToggleBreakpointItem.setText("Remove Toggle Breakpoint"); removeToggleBreakpointItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeToggleBreakpointItemActionPerformed(evt); } }); debugMenu.add(removeToggleBreakpointItem); clearAllBreakpointsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); clearAllBreakpointsItem.setText("Clear All Breakpoints..."); clearAllBreakpointsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clearAllBreakpointsItemActionPerformed(evt); } }); debugMenu.add(clearAllBreakpointsItem); debugMenu.add(jSeparator10); stepItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F10, java.awt.event.InputEvent.SHIFT_MASK)); stepItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step.png"))); // NOI18N stepItem.setText("Step"); stepItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepItemActionPerformed(evt); } }); debugMenu.add(stepItem); stepInItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F11, 0)); stepInItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step-in.png"))); // NOI18N stepInItem.setText("Step in"); stepInItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepInItemActionPerformed(evt); } }); debugMenu.add(stepInItem); stepOutItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F11, java.awt.event.InputEvent.SHIFT_MASK)); stepOutItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step-out.png"))); // NOI18N stepOutItem.setText("Step out"); stepOutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepOutItemActionPerformed(evt); } }); debugMenu.add(stepOutItem); continueItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F8, 0)); continueItem.setText("Continue"); continueItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { continueItemActionPerformed(evt); } }); debugMenu.add(continueItem); debugMenu.add(jSeparator5); finishDebugItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.SHIFT_MASK)); finishDebugItem .setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/finish.png"))); // NOI18N finishDebugItem.setText("Finish Debugger Session"); finishDebugItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { finishDebugItemActionPerformed(evt); } }); debugMenu.add(finishDebugItem); jMenuBar1.add(debugMenu); toolsMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("ToolsMenu.mnemonic").charAt(0)); toolsMenu.setText(bundle.getString("ToolsMenu.name")); // NOI18N fltkplotItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); fltkplotItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("fltkPlotItem.mnemonic").charAt(0)); fltkplotItem.setText(bundle.getString("fltkPlotItem.name")); // NOI18N fltkplotItem.setToolTipText(bundle.getString("fltkPlotItem.tooltip")); // NOI18N fltkplotItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fltkplotItemActionPerformed(evt); } }); toolsMenu.add(fltkplotItem); octaveCmdItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("octaveCmdItem.mnemonic").charAt(0)); octaveCmdItem.setText(bundle.getString("octaveCmdItem.name")); // NOI18N octaveCmdItem.setToolTipText(bundle.getString("octaveCmdItem.tooltip")); // NOI18N octaveCmdItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { octaveCmdItemActionPerformed(evt); } }); toolsMenu.add(octaveCmdItem); jMenuBar1.add(toolsMenu); jMenu2.setText(bundle.getString("windowMenu.title")); // NOI18N previousWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_PAGE_DOWN, java.awt.event.InputEvent.CTRL_MASK)); previousWindowItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/go-previous.png"))); // NOI18N previousWindowItem.setText(bundle.getString("previousWindowItem.title")); // NOI18N previousWindowItem.setToolTipText(bundle.getString("previousWindowItem.tooltip")); // NOI18N previousWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { previousWindowItemActionPerformed(evt); } }); jMenu2.add(previousWindowItem); nextWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_PAGE_UP, java.awt.event.InputEvent.CTRL_MASK)); nextWindowItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/go-next.png"))); // NOI18N nextWindowItem.setText(bundle.getString("nextWindowItem.title")); // NOI18N nextWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nextWindowItemActionPerformed(evt); } }); jMenu2.add(nextWindowItem); jMenu2.add(jSeparator29); closeItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK)); closeItem.setText(bundle.getString("closeMenuItem.name")); // NOI18N closeItem.setToolTipText(bundle.getString("closeItem.tooltip")); // NOI18N closeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeItemActionPerformed(evt); } }); jMenu2.add(closeItem); closeAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK)); closeAllItem.setText(bundle.getString("closeAllItem.name")); // NOI18N closeAllItem.setToolTipText(bundle.getString("closeAllItem.tooltip")); // NOI18N closeAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeAllItemActionPerformed(evt); } }); jMenu2.add(closeAllItem); jMenu2.add(jSeparator18); windowsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.SHIFT_MASK)); windowsItem.setText(bundle.getString("windowsItem.title")); // NOI18N windowsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { windowsItemActionPerformed(evt); } }); jMenu2.add(windowsItem); jMenuBar1.add(jMenu2); helpMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("helpMenu.mnemonic").charAt(0)); helpMenu.setText(bundle.getString("helpMenu.name")); // NOI18N forumItem.setText("Forum"); forumItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { forumItemActionPerformed(evt); } }); helpMenu.add(forumItem); octaveInfoItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("octInfoItem.mnemonic").charAt(0)); octaveInfoItem.setText(bundle.getString("octInfoItem.name")); // NOI18N octaveInfoItem.setToolTipText(bundle.getString("octInfoItem.tooltip")); // NOI18N octaveInfoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { octaveInfoItemActionPerformed(evt); } }); helpMenu.add(octaveInfoItem); helpMenu.add(jSeparator12); quickHelpItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); quickHelpItem.setText(bundle.getString("quickHelpItem.name")); // NOI18N quickHelpItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { quickHelpItemActionPerformed(evt); } }); helpMenu.add(quickHelpItem); jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, java.awt.event.InputEvent.SHIFT_MASK)); jMenuItem9.setText("Package Documentation"); jMenuItem9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem9ActionPerformed(evt); } }); helpMenu.add(jMenuItem9); docPkgItem.setText("Package Online Documentation"); docPkgItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { docPkgItemActionPerformed(evt); } }); helpMenu.add(docPkgItem); referenceMenu.setText(bundle.getString("referencesMenu.name")); // NOI18N helpMenu.add(referenceMenu); referenceItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("addReferencesItem.mnemonic").charAt(0)); referenceItem.setText(bundle.getString("addReferencesItem.name")); // NOI18N referenceItem.setToolTipText(bundle.getString("addReferencesItem.tooltip")); // NOI18N referenceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { referenceItemActionPerformed(evt); } }); helpMenu.add(referenceItem); helpMenu.add(jSeparator6); checkForUpdatesMenuItem.setText(bundle.getString("checkForUpdatesMenuItem.text")); // NOI18N checkForUpdatesMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { checkForUpdatesMenuItemActionPerformed(evt); } }); helpMenu.add(checkForUpdatesMenuItem); onlineHelpItem.setText("Help and Support"); onlineHelpItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { onlineHelpItemActionPerformed(evt); } }); helpMenu.add(onlineHelpItem); faqItem.setText("Online FAQ"); faqItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { faqItemActionPerformed(evt); } }); helpMenu.add(faqItem); helpMenu.add(jSeparator14); reportBugItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("reportBugItem.mnemonic").charAt(0)); reportBugItem.setText(bundle.getString("reportBugItem.name")); // NOI18N reportBugItem.setToolTipText(bundle.getString("reportBugItem.tooltip")); // NOI18N reportBugItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reportBugItemActionPerformed(evt); } }); helpMenu.add(reportBugItem); feedBackItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("yourFeedbackItem.mnemonic").charAt(0)); feedBackItem.setText(bundle.getString("yourFeedbackItem.name")); // NOI18N feedBackItem.setToolTipText(bundle.getString("yourFeedbackItem.tooltip")); // NOI18N feedBackItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { feedBackItemActionPerformed(evt); } }); helpMenu.add(feedBackItem); helpMenu.add(jSeparator7); AboutItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("aboutItem.mnemonic").charAt(0)); AboutItem.setText(bundle.getString("aboutItem.name")); // NOI18N AboutItem.setToolTipText(bundle.getString("aboutItem.tooltip")); // NOI18N AboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AboutItemActionPerformed(evt); } }); helpMenu.add(AboutItem); jMenuBar1.add(helpMenu); setJMenuBar(jMenuBar1); pack(); }
From source file:org.piraso.ui.api.views.BaseEntryViewTopComponent.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.j a v a 2 s. c o m*/ */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSeparator1 = new javax.swing.JToolBar.Separator(); buttonGroup1 = new javax.swing.ButtonGroup(); btnPin = new javax.swing.JToggleButton(); toolbar = new javax.swing.JToolBar(); toolbar2 = new javax.swing.JToolBar(); btnPin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/api/icons/pin_small.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnPin, org.openide.util.NbBundle .getMessage(BaseEntryViewTopComponent.class, "BaseEntryViewTopComponent.btnPin.text")); // NOI18N btnPin.setToolTipText(org.openide.util.NbBundle.getMessage(BaseEntryViewTopComponent.class, "BaseEntryViewTopComponent.btnPin.toolTipText")); // NOI18N btnPin.setFocusable(false); btnPin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnPin.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnPin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPinActionPerformed(evt); } }); setLayout(new java.awt.BorderLayout()); toolbar.setBackground(new java.awt.Color(226, 226, 226)); toolbar.setFloatable(false); toolbar.setRollover(true); add(toolbar, java.awt.BorderLayout.NORTH); toolbar2.setBackground(new java.awt.Color(226, 226, 226)); toolbar2.setFloatable(false); toolbar2.setOrientation(1); toolbar2.setRollover(true); toolbar2.setVisible(false); add(toolbar2, java.awt.BorderLayout.WEST); }
From source file:org.piraso.ui.base.ContextMonitorTopComponent.java
/** This method is called from within the constructor to * initialize the form./*from w w w. j a va2 s . co m*/ * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { toolbar = new javax.swing.JToolBar(); jSeparator2 = new javax.swing.JToolBar.Separator(); btnSearch = new javax.swing.JToggleButton(); btnClear = new javax.swing.JButton(); jSeparator1 = new javax.swing.JToolBar.Separator(); btnAutoScroll = new javax.swing.JToggleButton(); cboUrl = new javax.swing.JComboBox(); tableScrollPane = new javax.swing.JScrollPane(); table = new javax.swing.JTable(); searchBar = new javax.swing.JToolBar(); jLabel1 = new javax.swing.JLabel(); txtSearch = new javax.swing.JTextField(); jSeparator3 = new javax.swing.JToolBar.Separator(); btnPrevious = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); jSeparator5 = new javax.swing.JToolBar.Separator(); chkMatchCase = new javax.swing.JCheckBox(); chkWholeWord = new javax.swing.JCheckBox(); chkRegex = new javax.swing.JCheckBox(); btnCloseSearchBar = new javax.swing.JButton(); setLayout(new java.awt.BorderLayout()); toolbar.setBackground(new java.awt.Color(226, 226, 226)); toolbar.setFloatable(false); toolbar.setRollover(true); toolbar.add(jSeparator2); btnSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/base/icons/find.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnSearch, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnSearch.text")); // NOI18N btnSearch.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnSearch.toolTipText")); // NOI18N btnSearch.setFocusable(false); btnSearch.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnSearch.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSearchActionPerformed(evt); } }); toolbar.add(btnSearch); btnClear.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/base/icons/edit_clear.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnClear, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnClear.text")); // NOI18N btnClear.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnClear.toolTipText")); // NOI18N btnClear.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 7, 7)); btnClear.setFocusable(false); btnClear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnClear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnClearActionPerformed(evt); } }); toolbar.add(btnClear); toolbar.add(jSeparator1); btnAutoScroll.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/piraso/ui/base/icons/arrow-switch-270.png"))); // NOI18N btnAutoScroll.setSelected(true); org.openide.awt.Mnemonics.setLocalizedText(btnAutoScroll, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnAutoScroll.text")); // NOI18N btnAutoScroll.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnAutoScroll.toolTipText")); // NOI18N btnAutoScroll.setFocusable(false); btnAutoScroll.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnAutoScroll.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnAutoScroll.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAutoScrollActionPerformed(evt); } }); toolbar.add(btnAutoScroll); cboUrl.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N cboUrl.setModel(comboBoxModel); toolbar.add(cboUrl); add(toolbar, java.awt.BorderLayout.NORTH); tableScrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); tableScrollPane.setFont(new java.awt.Font("Monospaced", 0, 10)); // NOI18N table.setFont(FontProviderManager.INSTANCE.getEditorDefaultFont()); table.setModel(tableModel); table.setGridColor(new java.awt.Color(204, 0, 0)); table.setRowMargin(0); table.setShowHorizontalLines(false); table.setShowVerticalLines(false); tableScrollPane.setViewportView(table); add(tableScrollPane, java.awt.BorderLayout.CENTER); searchBar.setBackground(new java.awt.Color(226, 226, 226)); searchBar.setFloatable(false); searchBar.setRollover(true); searchBar.setVisible(false); org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.jLabel1.text")); // NOI18N searchBar.add(jLabel1); txtSearch.setText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.txtSearch.text")); // NOI18N txtSearch.setMaximumSize(new java.awt.Dimension(200, 2147483647)); txtSearch.setPreferredSize(new java.awt.Dimension(200, 28)); searchBar.add(txtSearch); searchBar.add(jSeparator3); btnPrevious.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/base/icons/previous.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnPrevious, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnPrevious.text")); // NOI18N btnPrevious.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnPrevious.toolTipText")); // NOI18N btnPrevious.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 7, 7)); btnPrevious.setFocusable(false); btnPrevious.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnPrevious.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnPrevious.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPreviousActionPerformed(evt); } }); searchBar.add(btnPrevious); btnNext.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/base/icons/next.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnNext, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnNext.text")); // NOI18N btnNext.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnNext.toolTipText")); // NOI18N btnNext.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 7, 7)); btnNext.setFocusable(false); btnNext.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnNext.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnNext.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnNextActionPerformed(evt); } }); searchBar.add(btnNext); searchBar.add(jSeparator5); chkMatchCase.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(chkMatchCase, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.chkMatchCase.text")); // NOI18N chkMatchCase.setContentAreaFilled(false); chkMatchCase.setFocusable(false); chkMatchCase.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); searchBar.add(chkMatchCase); chkWholeWord.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(chkWholeWord, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.chkWholeWord.text")); // NOI18N chkWholeWord.setContentAreaFilled(false); chkWholeWord.setFocusable(false); chkWholeWord.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); searchBar.add(chkWholeWord); chkRegex.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(chkRegex, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.chkRegex.text")); // NOI18N chkRegex.setContentAreaFilled(false); chkRegex.setFocusable(false); chkRegex.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); searchBar.add(chkRegex); btnCloseSearchBar .setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/piraso/ui/base/icons/close.png"))); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(btnCloseSearchBar, org.openide.util.NbBundle .getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnCloseSearchBar.text")); // NOI18N btnCloseSearchBar.setToolTipText(org.openide.util.NbBundle.getMessage(ContextMonitorTopComponent.class, "ContextMonitorTopComponent.btnCloseSearchBar.toolTipText")); // NOI18N btnCloseSearchBar.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 2, 7, 2)); btnCloseSearchBar.setFocusable(false); btnCloseSearchBar.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); btnCloseSearchBar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); btnCloseSearchBar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btnCloseSearchBar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCloseSearchBarActionPerformed(evt); } }); searchBar.add(Box.createHorizontalGlue()); searchBar.add(btnCloseSearchBar); add(searchBar, java.awt.BorderLayout.PAGE_END); }