List of usage examples for javax.swing WindowConstants EXIT_ON_CLOSE
int EXIT_ON_CLOSE
To view the source code for javax.swing WindowConstants EXIT_ON_CLOSE.
Click Source Link
From source file:de.mendelson.comm.as2.client.AS2Gui.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 va 2 s.c o m */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPopupMenu = new javax.swing.JPopupMenu(); jMenuItemPopupMessageDetails = new javax.swing.JMenuItem(); jMenuItemPopupSendAgain = new javax.swing.JMenuItem(); jSeparator9 = new javax.swing.JPopupMenu.Separator(); jMenuItemPopupDeleteMessage = new javax.swing.JMenuItem(); jTabbedPane = new javax.swing.JTabbedPane(); jPanelLog = new javax.swing.JPanel(); jToolBar = new javax.swing.JToolBar(); jButtonPartner = new javax.swing.JButton(); jButtonMessageDetails = new javax.swing.JButton(); jButtonFilter = new javax.swing.JButton(); jToggleButtonStopRefresh = new javax.swing.JToggleButton(); jSeparator1 = new javax.swing.JSeparator(); jButtonDeleteMessage = new javax.swing.JButton(); jPanelMain = new javax.swing.JPanel(); jSplitPane = new javax.swing.JSplitPane(); jPanelMessageLog = new javax.swing.JPanel(); jPanelFilterOverview = new javax.swing.JPanel(); jCheckBoxFilterShowOk = new javax.swing.JCheckBox(); jCheckBoxFilterShowPending = new javax.swing.JCheckBox(); jCheckBoxFilterShowStopped = new javax.swing.JCheckBox(); jLabelFilterShowOk = new javax.swing.JLabel(); jLabelFilterShowPending = new javax.swing.JLabel(); jLabelFilterShowError = new javax.swing.JLabel(); jButtonHideFilter = new javax.swing.JButton(); jComboBoxFilterPartner = new javax.swing.JComboBox(); jPanelSpace = new javax.swing.JPanel(); jLabelFilterPartner = new javax.swing.JLabel(); jSeparator4 = new javax.swing.JSeparator(); jScrollPaneMessageOverview = new javax.swing.JScrollPane(); jTableMessageOverview = new de.mendelson.util.tables.JTableSortable(); jPanelServerLog = new javax.swing.JPanel(); jPanelRefreshWarning = new javax.swing.JPanel(); jLabelRefreshStopWarning = new javax.swing.JLabel(); htmlPanel = new de.mendelson.comm.as2.client.HTMLPanel(); jPanelInfo = new javax.swing.JPanel(); jButtonNewVersion = new javax.swing.JButton(); browserLinkedPanel = new de.mendelson.comm.as2.client.BrowserLinkedPanel(); as2StatusBar = new de.mendelson.comm.as2.client.AS2StatusBar(); jMenuBar = new javax.swing.JMenuBar(); jMenuFile = new javax.swing.JMenu(); jMenuItemManualSend = new javax.swing.JMenuItem(); jMenuItemKeyRefresh = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JSeparator(); jMenuItemFilePreferences = new javax.swing.JMenuItem(); jMenuItemPartner = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); jMenuItemExportConfig = new javax.swing.JMenuItem(); jMenuItemExportImport = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); jMenuItemFileExit = new javax.swing.JMenuItem(); jMenuHelp = new javax.swing.JMenu(); jMenuItemHelpAbout = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JSeparator(); jMenuItemHelpShop = new javax.swing.JMenuItem(); jMenuItemHelpForum = new javax.swing.JMenuItem(); jMenuItemHelpSystem = new javax.swing.JMenuItem(); jMenuItemPopupMessageDetails.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/messagedetails16x16.gif"))); // NOI18N jMenuItemPopupMessageDetails.setText(this.rb.getResourceString("details")); jMenuItemPopupMessageDetails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPopupMessageDetailsActionPerformed(evt); } }); jPopupMenu.add(jMenuItemPopupMessageDetails); jMenuItemPopupSendAgain.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/send_16x16.gif"))); // NOI18N jMenuItemPopupSendAgain.setText(this.rb.getResourceString("menu.file.resend")); jMenuItemPopupSendAgain.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPopupSendAgainActionPerformed(evt); } }); jPopupMenu.add(jMenuItemPopupSendAgain); jPopupMenu.add(jSeparator9); jMenuItemPopupDeleteMessage.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/delete_16x16.gif"))); // NOI18N jMenuItemPopupDeleteMessage.setText(this.rb.getResourceString("delete.msg")); jMenuItemPopupDeleteMessage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPopupDeleteMessageActionPerformed(evt); } }); jPopupMenu.add(jMenuItemPopupDeleteMessage); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(new ImageIcon(AS2Gui.class.getResource("/de/mendelson/comm/as2/client/os_logo16x16.gif")) .getImage()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); getContentPane().setLayout(new java.awt.GridBagLayout()); jPanelLog.setLayout(new java.awt.BorderLayout()); jToolBar.setFloatable(false); jToolBar.setRollover(true); jButtonPartner.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/partner/gui/singlepartner16x16.gif"))); // NOI18N jButtonPartner.setText(this.rb.getResourceString("menu.file.partner")); jButtonPartner.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPartnerActionPerformed(evt); } }); jToolBar.add(jButtonPartner); jButtonMessageDetails.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/messagedetails16x16.gif"))); // NOI18N jButtonMessageDetails.setText(this.rb.getResourceString("details")); jButtonMessageDetails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMessageDetailsActionPerformed(evt); } }); jToolBar.add(jButtonMessageDetails); jButtonFilter.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/filter16x16.gif"))); // NOI18N jButtonFilter.setText(this.rb.getResourceString("filter")); jButtonFilter.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFilterActionPerformed(evt); } }); jToolBar.add(jButtonFilter); jToggleButtonStopRefresh.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/stop_16x16.gif"))); // NOI18N jToggleButtonStopRefresh.setText(this.rb.getResourceString("stoprefresh.msg")); jToggleButtonStopRefresh.setFocusable(false); jToggleButtonStopRefresh.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToggleButtonStopRefresh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jToggleButtonStopRefreshActionPerformed(evt); } }); jToolBar.add(jToggleButtonStopRefresh); jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL); jSeparator1.setMaximumSize(new java.awt.Dimension(5, 32767)); jToolBar.add(jSeparator1); jButtonDeleteMessage.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/delete_16x16.gif"))); // NOI18N jButtonDeleteMessage.setText(this.rb.getResourceString("delete.msg")); jButtonDeleteMessage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonDeleteMessageActionPerformed(evt); } }); jToolBar.add(jButtonDeleteMessage); jPanelLog.add(jToolBar, java.awt.BorderLayout.NORTH); jPanelMain.setLayout(new java.awt.GridBagLayout()); jSplitPane.setDividerLocation(300); jSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); jPanelMessageLog.setLayout(new java.awt.GridBagLayout()); jPanelFilterOverview.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanelFilterOverview.setLayout(new java.awt.GridBagLayout()); jCheckBoxFilterShowOk.setSelected(true); jCheckBoxFilterShowOk.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxFilterShowOkActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0); jPanelFilterOverview.add(jCheckBoxFilterShowOk, gridBagConstraints); jCheckBoxFilterShowPending.setSelected(true); jCheckBoxFilterShowPending.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxFilterShowPendingActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0); jPanelFilterOverview.add(jCheckBoxFilterShowPending, gridBagConstraints); jCheckBoxFilterShowStopped.setSelected(true); jCheckBoxFilterShowStopped.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxFilterShowStoppedActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0); jPanelFilterOverview.add(jCheckBoxFilterShowStopped, gridBagConstraints); jLabelFilterShowOk.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/state_finished16x16.gif"))); // NOI18N jLabelFilterShowOk.setText(this.rb.getResourceString("filter.showfinished")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jLabelFilterShowOk, gridBagConstraints); jLabelFilterShowPending.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/state_pending16x16.gif"))); // NOI18N jLabelFilterShowPending.setText(this.rb.getResourceString("filter.showpending")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jLabelFilterShowPending, gridBagConstraints); jLabelFilterShowError.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/state_stopped16x16.gif"))); // NOI18N jLabelFilterShowError.setText(this.rb.getResourceString("filter.showstopped")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jLabelFilterShowError, gridBagConstraints); jButtonHideFilter.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/hide_filter.gif"))); // NOI18N jButtonHideFilter.setMargin(new java.awt.Insets(0, 0, 0, 0)); jButtonHideFilter.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonHideFilterActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 6; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jButtonHideFilter, gridBagConstraints); jComboBoxFilterPartner.setMinimumSize(new java.awt.Dimension(100, 20)); jComboBoxFilterPartner.setPreferredSize(new java.awt.Dimension(100, 22)); jComboBoxFilterPartner.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBoxFilterPartnerActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jComboBoxFilterPartner, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanelFilterOverview.add(jPanelSpace, gridBagConstraints); jLabelFilterPartner.setText(this.rb.getResourceString("filter.partner")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jLabelFilterPartner, gridBagConstraints); jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelFilterOverview.add(jSeparator4, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST; gridBagConstraints.weightx = 1.0; jPanelMessageLog.add(jPanelFilterOverview, gridBagConstraints); jTableMessageOverview.setModel(new TableModelMessageOverview()); jTableMessageOverview.setShowHorizontalLines(false); jTableMessageOverview.setShowVerticalLines(false); jTableMessageOverview.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTableMessageOverviewMouseClicked(evt); } }); jScrollPaneMessageOverview.setViewportView(jTableMessageOverview); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanelMessageLog.add(jScrollPaneMessageOverview, gridBagConstraints); jSplitPane.setLeftComponent(jPanelMessageLog); jPanelServerLog.setLayout(new java.awt.BorderLayout()); jSplitPane.setRightComponent(jPanelServerLog); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanelMain.add(jSplitPane, gridBagConstraints); jPanelRefreshWarning.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 0, 0))); jPanelRefreshWarning.setLayout(new java.awt.GridBagLayout()); jLabelRefreshStopWarning.setFont(new java.awt.Font("Tahoma", 1, 11)); jLabelRefreshStopWarning.setForeground(new java.awt.Color(204, 51, 0)); jLabelRefreshStopWarning.setText(this.rb.getResourceString("warning.refreshstopped")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); jPanelRefreshWarning.add(jLabelRefreshStopWarning, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanelMain.add(jPanelRefreshWarning, gridBagConstraints); jPanelLog.add(jPanelMain, java.awt.BorderLayout.CENTER); jTabbedPane.addTab(this.rb.getResourceString("tab.transactions"), jPanelLog); jTabbedPane.addTab(this.rb.getResourceString("tab.welcome"), htmlPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(jTabbedPane, gridBagConstraints); jPanelInfo.setLayout(new java.awt.GridBagLayout()); jButtonNewVersion.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/newversion_16x16.gif"))); // NOI18N jButtonNewVersion.setToolTipText(this.rb.getResourceString("new.version")); jButtonNewVersion.setMargin(new java.awt.Insets(2, 5, 2, 5)); jButtonNewVersion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonNewVersionActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; jPanelInfo.add(jButtonNewVersion, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanelInfo.add(browserLinkedPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; jPanelInfo.add(as2StatusBar, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; getContentPane().add(jPanelInfo, gridBagConstraints); jMenuFile.setText(this.rb.getResourceString("menu.file")); jMenuItemManualSend.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/send_16x16.gif"))); // NOI18N jMenuItemManualSend.setText(this.rb.getResourceString("menu.file.send")); jMenuItemManualSend.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemManualSendActionPerformed(evt); } }); jMenuFile.add(jMenuItemManualSend); jMenuItemKeyRefresh.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/util/security/cert/gui/keyrefresh16x16.gif"))); // NOI18N jMenuItemKeyRefresh.setText(this.rb.getResourceString("keyrefresh")); jMenuItemKeyRefresh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemKeyRefreshActionPerformed(evt); } }); jMenuFile.add(jMenuItemKeyRefresh); jMenuFile.add(jSeparator2); jMenuItemFilePreferences.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/preferences/preferences16x16.gif"))); // NOI18N jMenuItemFilePreferences.setText(this.rb.getResourceString("menu.file.preferences")); jMenuItemFilePreferences.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFilePreferencesActionPerformed(evt); } }); jMenuFile.add(jMenuItemFilePreferences); jMenuItemPartner.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/partner/gui/singlepartner16x16.gif"))); // NOI18N jMenuItemPartner.setText(this.rb.getResourceString("menu.file.partner")); jMenuItemPartner.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPartnerActionPerformed(evt); } }); jMenuFile.add(jMenuItemPartner); jMenuFile.add(jSeparator3); jMenuItemExportConfig.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/importexport/export_16x16.gif"))); // NOI18N jMenuItemExportConfig.setText(this.rb.getResourceString("menu.file.export")); jMenuItemExportConfig.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExportConfigActionPerformed(evt); } }); jMenuFile.add(jMenuItemExportConfig); jMenuItemExportImport.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/importexport/import_16x16.gif"))); // NOI18N jMenuItemExportImport.setText(this.rb.getResourceString("menu.file.import")); jMenuItemExportImport.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExportImportActionPerformed(evt); } }); jMenuFile.add(jMenuItemExportImport); jMenuFile.add(jSeparator6); jMenuItemFileExit.setIcon( new javax.swing.ImageIcon(getClass().getResource("/de/mendelson/comm/as2/client/close16x16.gif"))); // NOI18N jMenuItemFileExit.setText(this.rb.getResourceString("menu.file.exit")); jMenuItemFileExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFileExitActionPerformed(evt); } }); jMenuFile.add(jMenuItemFileExit); jMenuBar.add(jMenuFile); jMenuHelp.setText(this.rb.getResourceString("menu.help")); jMenuItemHelpAbout.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/os_logo16x16.gif"))); // NOI18N jMenuItemHelpAbout.setText(this.rb.getResourceString("menu.help.about")); jMenuItemHelpAbout.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHelpAboutActionPerformed(evt); } }); jMenuHelp.add(jMenuItemHelpAbout); jMenuHelp.add(jSeparator5); jMenuItemHelpShop.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/os_logo16x16.gif"))); // NOI18N jMenuItemHelpShop.setText(this.rb.getResourceString("menu.help.shop")); jMenuItemHelpShop.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHelpShopActionPerformed(evt); } }); jMenuHelp.add(jMenuItemHelpShop); jMenuItemHelpForum.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/os_logo16x16.gif"))); // NOI18N jMenuItemHelpForum.setText(this.rb.getResourceString("menu.help.forum")); jMenuItemHelpForum.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHelpForumActionPerformed(evt); } }); jMenuHelp.add(jMenuItemHelpForum); jMenuItemHelpSystem.setIcon(new javax.swing.ImageIcon( getClass().getResource("/de/mendelson/comm/as2/client/os_logo16x16.gif"))); // NOI18N jMenuItemHelpSystem.setText(this.rb.getResourceString("menu.help.helpsystem")); jMenuItemHelpSystem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHelpSystemActionPerformed(evt); } }); jMenuHelp.add(jMenuItemHelpSystem); jMenuBar.add(jMenuHelp); setJMenuBar(jMenuBar); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width - 749) / 2, (screenSize.height - 581) / 2, 749, 581); }
From source file:com.peterbochs.PeterBochsDebugger.java
private void initGUI() { try {//from w w w . j a v a2s. c om language = Utf8ResourceBundle.getBundle("language_" + Setting.getInstance().getCurrentLanguage()); // $hide>>$ if (os == OSType.win) { if (!new File("PauseBochs.exe").exists() || !new File("StopBochs.exe").exists()) { JOptionPane.showMessageDialog(null, MyLanguage.getString("PauseBochsExe"), MyLanguage.getString("Error"), JOptionPane.ERROR_MESSAGE); System.exit(1); } if (!new File("ndisasm.exe").exists()) { JOptionPane.showMessageDialog(null, MyLanguage.getString("NdisasmExe"), MyLanguage.getString("Error"), JOptionPane.ERROR_MESSAGE); System.exit(1); } } // $hide<<$ } catch (Exception e) { e.printStackTrace(); } try { { this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); if (Global.isBeta) { this.setTitle(MyLanguage.getString("Title") + " " + Global.version + " , This is beta version, if you found a bug, please try older official release"); } else { this.setTitle(MyLanguage.getString("Title") + " " + Global.version); } this.setIconImage( new ImageIcon(getClass().getClassLoader().getResource("com/peterbochs/icons/peter.png")) .getImage()); this.addWindowListener(new WindowAdapter() { public void windowOpened(WindowEvent evt) { thisWindowOpened(evt); } public void windowActivated(WindowEvent evt) { thisWindowActivated(evt); } public void windowClosing(WindowEvent evt) { thisWindowClosing(evt); } }); } { jToolBar1 = new JToolBar(); getContentPane().add(jToolBar1, BorderLayout.NORTH); { startBochsButton = new JButton(); jToolBar1.add(startBochsButton); startBochsButton.setText(MyLanguage.getString("Start_bochs")); startBochsButton.setToolTipText("Launch bochs"); startBochsButton.setIcon(new ImageIcon(getClass().getClassLoader() .getResource("com/peterbochs/icons/famfam_icons/accept.png"))); startBochsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { startBochsButtonActionPerformed(evt); } }); } { stopBochsButton = new JButton(); jToolBar1.add(stopBochsButton); stopBochsButton.setText(MyLanguage.getString("Stop_bochs")); stopBochsButton.setToolTipText("Quit bochs"); stopBochsButton.setIcon(new ImageIcon( getClass().getClassLoader().getResource("com/peterbochs/icons/famfam_icons/stop.png"))); stopBochsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { stopBochsButtonActionPerformed(evt); } }); } { runBochsButton = new JDropDownButton(); jToolBar1.add(runBochsButton); runBochsButton.setText(MyLanguage.getString("Run_bochs")); runBochsButton.setToolTipText("Start emulation"); runBochsButton.setMaximumSize(new java.awt.Dimension(85, 26)); runBochsButton.add(getJRunBochsAndSkipBreakpointMenuItem()); runBochsButton.add(getJRunCustomCommandMenuItem()); runBochsButton.setIcon(new ImageIcon(getClass().getClassLoader() .getResource("com/peterbochs/icons/famfam_icons/resultset_next.png"))); runBochsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { runBochsButtonActionPerformed(evt); } }); } { stepBochsButton = new JDropDownButton(); jToolBar1.add(stepBochsButton); jToolBar1.add(getJStepOverDropDownButton()); jToolBar1.add(getJFastStepBochsButton()); stepBochsButton.setIcon(new ImageIcon( getClass().getClassLoader().getResource("com/peterbochs/icons/famfam_icons/step.png"))); stepBochsButton.setText(MyLanguage.getString("Step")); stepBochsButton.setMaximumSize(new java.awt.Dimension(85, 26)); stepBochsButton.add(getJStep10MenuItem()); stepBochsButton.add(getJStep100MenuItem()); stepBochsButton.add(getJStepNMenuItem()); stepBochsButton.add(getJStepUntilCallOrJumpMenuItem()); stepBochsButton.add(getJStepUntilRetMenuItem()); stepBochsButton.add(getJStepUntilIRetMenuItem()); stepBochsButton.add(getJStepUntilMovMenuItem()); stepBochsButton.add(getJStepUntilIPBigChangeMenuItem()); stepBochsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { stepBochsButtonActionPerformed(evt); } }); } { nextButton = new JButton(); nextButton.setIcon(new ImageIcon( getClass().getClassLoader().getResource("com/peterbochs/icons/famfam_icons/step.png"))); nextButton.setText(MyLanguage.getString("Nexti")); nextButton.setToolTipText("c/c++ level step-in"); jToolBar1.add(nextButton); jToolBar1.add(getNextOverButton()); nextButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { nextButtonActionPerformed(evt); } }); } { jUpdateBochsButton = new JButton(); jToolBar1.add(jUpdateBochsButton); jToolBar1.add(getJExportToExcelButton()); jToolBar1.add(getJSettingButton()); jToolBar1.add(getJRegisterToggleButton()); jToolBar1.add(getJSourceLevelDebuggerButton()); jToolBar1.add(getJProfilerToggleButton()); jToolBar1.add(getJLogToggleButton()); jToolBar1.add(getJOSLogToggleButton()); jUpdateBochsButton.setEnabled(true); jUpdateBochsButton.setText(MyLanguage.getString("Update")); jUpdateBochsButton.setIcon(new ImageIcon(getClass().getClassLoader() .getResource("com/peterbochs/icons/famfam_icons/arrow_refresh.png"))); jUpdateBochsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jUpdateBochsButtonActionPerformed(evt); } }); } } { jStatusPanel = new JPanel(); BorderLayout jStatusPanelLayout = new BorderLayout(); jStatusPanel.setLayout(jStatusPanelLayout); getContentPane().add(jStatusPanel, BorderLayout.SOUTH); getContentPane().add(getJMainPanel()); { jStatusProgressBar = new JProgressBar(); jStatusPanel.add(jStatusProgressBar, BorderLayout.WEST); jStatusPanel.add(getJPanel25(), BorderLayout.CENTER); } } { jMenuBar1 = new JMenuBar(); setJMenuBar(jMenuBar1); { jMenu3 = new JMenu(); jMenuBar1.add(jMenu3); jMenu3.setText(MyLanguage.getString("File")); { jSeparator2 = new JSeparator(); jMenu3.add(jSeparator2); } { exitMenuItem = new JMenuItem(); jMenu3.add(exitMenuItem); exitMenuItem.setText(MyLanguage.getString("Exit")); exitMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); } } { jMenu4 = new JMenu(); jMenuBar1.add(jMenu4); jMenuBar1.add(getJFontMenu()); jMenuBar1.add(getJMenu6()); jMenuBar1.add(getJSystemMenu()); jMenu4.setText(MyLanguage.getString("Bochs")); { startBochsMenuItem = new JMenuItem(); jMenu4.add(startBochsMenuItem); startBochsMenuItem.setText(MyLanguage.getString("Start_bochs")); startBochsMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { startBochsMenuItemActionPerformed(evt); } }); } { stopBochsMenuItem = new JMenuItem(); jMenu4.add(stopBochsMenuItem); stopBochsMenuItem.setText(MyLanguage.getString("Stop_bochs")); stopBochsMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { stopBochsMenuItemActionPerformed(evt); } }); } { jSeparator1 = new JSeparator(); jMenu4.add(jSeparator1); } { runBochsMenuItem = new JMenuItem(); jMenu4.add(runBochsMenuItem); runBochsMenuItem.setText(MyLanguage.getString("Run_bochs")); runBochsMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { runBochsMenuItemActionPerformed(evt); } }); } { pauseBochsMenuItem = new JMenuItem(); jMenu4.add(pauseBochsMenuItem); pauseBochsMenuItem.setText(MyLanguage.getString("Pause_bochs")); pauseBochsMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { pauseBochsMenuItemActionPerformed(evt); } }); } { jUpdateBochsStatusMenuItem = new JMenuItem(); jMenu4.add(jUpdateBochsStatusMenuItem); jUpdateBochsStatusMenuItem.setText(MyLanguage.getString("Update_bochs_status")); jUpdateBochsStatusMenuItem.setBounds(83, 86, 79, 20); jUpdateBochsStatusMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jUpdateBochsStatusMenuItemActionPerformed(evt); } }); } } { jMenu5 = new JMenu(); jMenuBar1.add(jMenu5); jMenu5.setText(MyLanguage.getString("Help")); { aboutUsMenuItem = new JMenuItem(); jMenu5.add(aboutUsMenuItem); jMenu5.add(getJHelpRequestMenuItem()); jMenu5.add(getJJVMMenuItem()); jMenu5.add(getShortcutHelpMenuItem()); jMenu5.add(getJLicenseMenuItem()); aboutUsMenuItem.setText(MyLanguage.getString("About_us")); aboutUsMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { aboutUsMenuItemActionPerformed(evt); } }); } } } if (Setting.getInstance().getWidth() == 0 || Setting.getInstance().getHeight() == 0) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setSize(screenSize.width * 2 / 3, screenSize.height * 4 / 5); } else { setSize(Setting.getInstance().getWidth(), Setting.getInstance().getHeight()); } int x = Setting.getInstance().getX(); int y = Setting.getInstance().getY(); if (x <= 0 || y <= 0) { this.setLocationRelativeTo(null); } else { setLocation(x, y); } jSplitPane1.setDividerLocation(Setting.getInstance().getDivX()); jSplitPane2.setDividerLocation(Setting.getInstance().getDivY()); jOSDebugInformationPanel1.getjMainSplitPane() .setDividerLocation(Setting.getInstance().getOsDebugSplitPane_DividerLocation()); // pack(); initGlobalFontSetting(new Font(Setting.getInstance().getFontFamily(), Font.PLAIN, Setting.getInstance().getFontsize())); jInstrumentPanel.setThing(jStatusProgressBar, jStatusLabel); // prevent null jmenuitem getJInstructionPanelPopupMenu(); // end prevent null jmenuitem KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() { public boolean dispatchKeyEvent(KeyEvent e) { if (e.getID() == KeyEvent.KEY_RELEASED) { int keycode = e.getKeyCode(); if (keycode == 112) { jTabbedPane3.setSelectedIndex(0); } else if (keycode == 113) { jTabbedPane3.setSelectedIndex(1); } else if (keycode == 114) { jTabbedPane3.setSelectedIndex(2); } else if (keycode == 115) { jTabbedPane3.setSelectedIndex(3); } else if (keycode == 116) { if (startBochsButton.isEnabled()) { startBochsButtonActionPerformed(null); } } else if (keycode == 117) { if (stopBochsButton.isEnabled()) { stopBochsButtonActionPerformed(null); } } else if (keycode == 118) { if (runBochsButton.isEnabled()) { runBochsButtonActionPerformed(null); } } else if (keycode == 119) { if (stepBochsButton.isEnabled()) { stepBochsButtonActionPerformed(null); } } else if (keycode == 120) { if (fastStepBochsButton.isEnabled()) { fastStepButtonActionPerformed(null); } } } // If the key should not be dispatched to the // focused component, set discardEvent to true boolean discardEvent = false; return discardEvent; } }); } catch (Exception e) { e.printStackTrace(); System.exit(ERROR); } }
From source file:edu.ku.brc.ui.UIHelper.java
/** * Tries to do the login, if doAutoLogin is set to true it will try without displaying a dialog * and if the login fails then it will display the dialog * @param userName single signon username (for application) * @param password single signon password (for application) * @param usrPwdProvider the provider/*from w w w . j av a 2s. com*/ * @param engageUPPrefs indicates whether the username and password should be loaded and remembered by local prefs * @param doAutoLogin whether to try to automatically log the user in * @param doAutoClose whether it should automatically close the window when it is logged in successfully * @param useDialog use a Dialog or a Frame * @param listener a listener for when it is logged in or fails * @param iconName name of icon to use * @param title name * @param appName name * @param appIconName application icon name * @param helpContext help context for Help button on dialog */ public static DatabaseLoginPanel doLogin(final String userName, final String password, final boolean engageUPPrefs, final MasterPasswordProviderIFace usrPwdProvider, final boolean doAutoClose, final boolean useDialog, final DatabaseLoginListener listener, final String iconName, final String title, final String appName, final String appIconName, final String helpContext, final boolean appCanUpdateSchema) //frame's icon name { ImageIcon icon = IconManager.getIcon("AppIcon", IconManager.IconSize.Std32); if (StringUtils.isNotEmpty(appIconName)) { ImageIcon imgIcon = IconManager.getIcon(appIconName); if (imgIcon != null) { icon = imgIcon; } } if (useDialog) { JDialog.setDefaultLookAndFeelDecorated(false); DatabaseLoginDlg dlg = new DatabaseLoginDlg((Frame) UIRegistry.getTopWindow(), userName, password, engageUPPrefs, listener, iconName, helpContext); JDialog.setDefaultLookAndFeelDecorated(true); dlg.setDoAutoClose(doAutoClose); dlg.setModal(true); if (StringUtils.isNotEmpty(title)) { dlg.setTitle(title); } dlg.setIconImage(icon.getImage()); UIHelper.centerAndShow(dlg); return dlg.getDatabaseLoginPanel(); } // else class DBListener implements DatabaseLoginListener { protected JFrame frame; protected DatabaseLoginListener frameDBListener; protected boolean doAutoCloseOfListener; public DBListener(JFrame frame, DatabaseLoginListener frameDBListener, boolean doAutoCloseOfListener) { this.frame = frame; this.frameDBListener = frameDBListener; this.doAutoCloseOfListener = doAutoCloseOfListener; } public void loggedIn(final Window window, final String databaseName, final String userNameArg) { log.debug("UIHelper.doLogin[DBListener]"); if (doAutoCloseOfListener) { frame.setVisible(false); } frameDBListener.loggedIn(window, databaseName, userNameArg); } public void cancelled() { frame.setVisible(false); frameDBListener.cancelled(); } } JFrame.setDefaultLookAndFeelDecorated(false); JFrame frame = new JFrame(title); DatabaseLoginPanel panel; if (StringUtils.isNotEmpty(title)) { panel = new DatabaseLoginPanel(userName, password, engageUPPrefs, usrPwdProvider, new DBListener(frame, listener, doAutoClose), false, true, title, appName, iconName, helpContext); } else { panel = new DatabaseLoginPanel(userName, password, engageUPPrefs, usrPwdProvider, new DBListener(frame, listener, doAutoClose), false, true, null, null, iconName, helpContext); } panel.setAppCanUpdateSchema(appCanUpdateSchema); panel.setAutoClose(doAutoClose); panel.setWindow(frame); frame.setContentPane(panel); frame.setIconImage(icon.getImage()); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.pack(); UIHelper.centerAndShow(frame); return panel; }
From source file:com.declarativa.interprolog.gui.ListenerWindow.java
void constructWindowContents() { fileChooser = new javax.swing.JFileChooser(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); jLayeredPane2 = new javax.swing.JLayeredPane(); jScrollPane1 = new javax.swing.JScrollPane(); prologOutput = new javax.swing.JTextArea(); jButton1 = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); prologInput = new javax.swing.JTextArea(); jLayeredPane1 = new javax.swing.JLayeredPane(); jLayeredPane3 = new javax.swing.JLayeredPane(); jPanel6 = new javax.swing.JPanel(); fileChooser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fileChooserActionPerformed(evt); }/*from w ww . j a v a 2 s . c om*/ }); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jTabbedPane2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jTabbedPane2MouseEntered(evt); } }); jLayeredPane2.setBackground(new java.awt.Color(0, 0, 0)); prologOutput.setColumns(20); prologOutput.setRows(5); prologOutput.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { prologOutputComponentShown(evt); } }); jScrollPane1.setViewportView(prologOutput); jButton1.setText("Load Program XX"); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { try { jButton1ActionPerformed(evt); } catch (IOException ex) { Exceptions.printStackTrace(ex); } } }); prologInput.setColumns(20); prologInput.setRows(5); jScrollPane2.setViewportView(prologInput); jLayeredPane1.setBackground(new java.awt.Color(153, 153, 255)); jLayeredPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLayeredPane1.setPreferredSize(new java.awt.Dimension(600, 0)); javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1); jLayeredPane1.setLayout(jLayeredPane1Layout); jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 596, Short.MAX_VALUE)); jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); javax.swing.GroupLayout jLayeredPane3Layout = new javax.swing.GroupLayout(jLayeredPane3); jLayeredPane3.setLayout(jLayeredPane3Layout); jLayeredPane3Layout.setHorizontalGroup(jLayeredPane3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); jLayeredPane3Layout.setVerticalGroup(jLayeredPane3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 77, Short.MAX_VALUE)); javax.swing.GroupLayout jLayeredPane2Layout = new javax.swing.GroupLayout(jLayeredPane2); jLayeredPane2.setLayout(jLayeredPane2Layout); jLayeredPane2Layout.setHorizontalGroup( jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jLayeredPane2Layout.createSequentialGroup().addGap(22, 22, 22) .addGroup(jLayeredPane2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton1) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE) .addComponent(jScrollPane2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jLayeredPane2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLayeredPane3).addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jLayeredPane2Layout.setVerticalGroup(jLayeredPane2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jLayeredPane2Layout.createSequentialGroup().addContainerGap().addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jLayeredPane2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jLayeredPane2Layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jLayeredPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jLayeredPane2.setLayer(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane2.setLayer(jButton1, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane2.setLayer(jScrollPane2, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane2.setLayer(jLayeredPane1, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane2.setLayer(jLayeredPane3, javax.swing.JLayeredPane.DEFAULT_LAYER); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout .setHorizontalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup().addComponent(jLayeredPane2).addGap(1, 1, 1))); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))); jTabbedPane2.addTab("Argument Engine", jPanel5); // NOI18N jPanel6.setPreferredSize(new java.awt.Dimension(1100, 476)); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup(jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1273, Short.MAX_VALUE)); jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 565, Short.MAX_VALUE)); jTabbedPane2.addTab("Activity Framework", jPanel6); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE)); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane2)); jLayeredPane3.setBorder(javax.swing.BorderFactory.createTitledBorder("Controls")); // NOI18N jTabbedPane2.getAccessibleContext().setAccessibleName("tabX"); // NOI18N pack(); }
From source file:gui.images.ImageHubExplorer.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 ww .ja va 2 s .com*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { hubTab = new javax.swing.JTabbedPane(); dataMainPanel = new javax.swing.JPanel(); selectedImagePanelClassNeighborMain = new gui.images.ImagePanel(); selectedImageLabelClassNeighborMain = new javax.swing.JLabel(); mdsScrollPane = new javax.swing.JScrollPane(); mdsCollectionPanel = new gui.images.ImagesDisplayPanel(); workspaceLabelTxt = new javax.swing.JLabel(); collectionSizeLabelTxt = new javax.swing.JLabel(); workspaceLabelValue = new javax.swing.JLabel(); collectionSizeLabelValue = new javax.swing.JLabel(); kSelectionSlider = new javax.swing.JSlider(); nhSizeLabelTxt = new javax.swing.JLabel(); numClassesLabelTxt = new javax.swing.JLabel(); numClassesLabelValue = new javax.swing.JLabel(); hRelatedPropTxt = new javax.swing.JLabel(); skewnwessLabelTxt = new javax.swing.JLabel(); skewnessLabelValue = new javax.swing.JLabel(); kurtosisLabelTxt = new javax.swing.JLabel(); kurtosisLabelValue = new javax.swing.JLabel(); nkEntropyLabelTxt = new javax.swing.JLabel(); nkEntropyLabelValue = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); rnkEntropyValue = new javax.swing.JLabel(); nkEntropySkewnessTxt = new javax.swing.JLabel(); rnkEntropySkewnessTxt = new javax.swing.JLabel(); nkEntropySkewnessValues = new javax.swing.JLabel(); rnkEntropySkewnessValue = new javax.swing.JLabel(); percAboveLabelTxt = new javax.swing.JLabel(); percAboveLabelValue = new javax.swing.JLabel(); hubsLabelTxt = new javax.swing.JLabel(); orphansLabelTxt = new javax.swing.JLabel(); regularLabelTxt = new javax.swing.JLabel(); majorDegLabelTxt = new javax.swing.JLabel(); hubsLabelValue = new javax.swing.JLabel(); orphansLabelValue = new javax.swing.JLabel(); regularLabelValue = new javax.swing.JLabel(); majorDegLabelValue = new javax.swing.JLabel(); badHubnessLabelTxt = new javax.swing.JLabel(); badHubnessLabelValue = new javax.swing.JLabel(); chartHoldingPanelOccDistribution = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); selectedImagePathLabelClassNeighborMain = new javax.swing.JLabel(); neighborPanel = new javax.swing.JPanel(); selectedImagePanelClassNeighbor = new gui.images.ImagePanel(); selectedImageLabelClassNeighbor = new javax.swing.JLabel(); nnScrollPane = new javax.swing.JScrollPane(); nnPanel = new javax.swing.JPanel(); rnnScrollPane = new javax.swing.JScrollPane(); rnnPanel = new javax.swing.JPanel(); nnScrollLabelTxt = new javax.swing.JLabel(); rnnScrollLabelTxt = new javax.swing.JLabel(); occProfileChartHolder = new javax.swing.JPanel(); noccProfLabelTxt = new javax.swing.JLabel(); neighborGraphScrollPane = new javax.swing.JScrollPane(); addSelectedButton = new javax.swing.JButton(); addNNsButton = new javax.swing.JButton(); addRNNsButton = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); selectedImagePathLabelClassNeighbor = new javax.swing.JLabel(); removeVertexButton = new javax.swing.JButton(); removeAllButton = new javax.swing.JButton(); classPanel = new javax.swing.JPanel(); selectedImagePanelClass = new gui.images.ImagePanel(); selectedImageLabelClass = new javax.swing.JLabel(); confusionMatScrollPane = new javax.swing.JScrollPane(); classHubnessTable = new javax.swing.JTable(); classesScrollPane = new javax.swing.JScrollPane(); classesScrollPanel = new javax.swing.JPanel(); classDistributionHolder = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); selectedImagePathLabelClass = new javax.swing.JLabel(); cNamesScrollPane = new javax.swing.JScrollPane(); jScrollPane5 = new javax.swing.JScrollPane(); classColorAndNamesPanel = new javax.swing.JPanel(); searchPanel = new javax.swing.JPanel(); selectedImagePanelSearch = new gui.images.ImagePanel(); selectedImageLabelSearch = new javax.swing.JLabel(); searchQLabelTxt = new javax.swing.JLabel(); queryImagePanel = new gui.images.ImagePanel(); imageBrowseButton = new javax.swing.JButton(); jTextField1 = new javax.swing.JTextField(); queryQTextLabelTxt = new javax.swing.JLabel(); queryNNScrollPane = new javax.swing.JScrollPane(); queryNNPanel = new javax.swing.JPanel(); simResLabelTxt = new javax.swing.JLabel(); searchButton = new javax.swing.JButton(); prClassLabelTxt = new javax.swing.JLabel(); prClassScrollPane = new javax.swing.JScrollPane(); classifierPredictionsPanel = new javax.swing.JPanel(); collectionSearchButton = new javax.swing.JButton(); jScrollPane4 = new javax.swing.JScrollPane(); selectedImagePathLabelSearch = new javax.swing.JLabel(); reRankingButton = new javax.swing.JButton(); menuBar = new javax.swing.JMenuBar(); collectionMenu = new javax.swing.JMenu(); workspaceMenuItem = new javax.swing.JMenuItem(); importItem = new javax.swing.JMenuItem(); dMatrixMenu = new javax.swing.JMenu(); distImportItem = new javax.swing.JMenuItem(); distCalculateMenu = new javax.swing.JMenu(); manhattanDistItem = new javax.swing.JMenuItem(); distCalcEuclideanItem = new javax.swing.JMenuItem(); distCalcCosineItem = new javax.swing.JMenuItem(); tanimotoMenuItem = new javax.swing.JMenuItem(); klMenuItem = new javax.swing.JMenuItem(); bcMenuItem = new javax.swing.JMenuItem(); canMenuItem = new javax.swing.JMenuItem(); neighborStatsItem = new javax.swing.JMenuItem(); mdsVisualizeItem = new javax.swing.JMenuItem(); selImgPathMenuItem = new javax.swing.JMenuItem(); majorHubSelectionItem = new javax.swing.JMenuItem(); metricLearningMenu = new javax.swing.JMenu(); secondaryMetricMenu = new javax.swing.JMenu(); simcosMenuItem = new javax.swing.JMenuItem(); simhubMenuItem = new javax.swing.JMenuItem(); mpMenuItem = new javax.swing.JMenuItem(); localScalingItem = new javax.swing.JMenuItem(); nicdmItem = new javax.swing.JMenuItem(); loadSecondaryDistancesItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); previousMenuItem = new javax.swing.JMenuItem(); nextMenuItem = new javax.swing.JMenuItem(); screenCaptureMenu = new javax.swing.JMenu(); mdsScreenCaptureItem = new javax.swing.JMenuItem(); graphScreenCaptureItem = new javax.swing.JMenuItem(); codebookMenu = new javax.swing.JMenu(); loadCodebookItem = new javax.swing.JMenuItem(); loadCodebookProfileMenuItem = new javax.swing.JMenuItem(); classificationMenu = new javax.swing.JMenu(); trainModelsItem = new javax.swing.JMenuItem(); selImageMenu = new javax.swing.JMenu(); selSIFTmenuItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Image Hub Explorer"); javax.swing.GroupLayout selectedImagePanelClassNeighborMainLayout = new javax.swing.GroupLayout( selectedImagePanelClassNeighborMain); selectedImagePanelClassNeighborMain.setLayout(selectedImagePanelClassNeighborMainLayout); selectedImagePanelClassNeighborMainLayout.setHorizontalGroup(selectedImagePanelClassNeighborMainLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 241, Short.MAX_VALUE)); selectedImagePanelClassNeighborMainLayout.setVerticalGroup(selectedImagePanelClassNeighborMainLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 257, Short.MAX_VALUE)); selectedImageLabelClassNeighborMain.setText("Current Image"); mdsScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); mdsScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); mdsCollectionPanel.setName(""); // NOI18N mdsCollectionPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { mdsCollectionPanelMouseClicked(evt); } }); javax.swing.GroupLayout mdsCollectionPanelLayout = new javax.swing.GroupLayout(mdsCollectionPanel); mdsCollectionPanel.setLayout(mdsCollectionPanelLayout); mdsCollectionPanelLayout.setHorizontalGroup(mdsCollectionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 2000, Short.MAX_VALUE)); mdsCollectionPanelLayout.setVerticalGroup(mdsCollectionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 2000, Short.MAX_VALUE)); mdsScrollPane.setViewportView(mdsCollectionPanel); workspaceLabelTxt.setText("Workspace:"); collectionSizeLabelTxt.setText("Collection size:"); workspaceLabelValue.setText("..."); collectionSizeLabelValue.setText("..."); kSelectionSlider.setMaximum(50); kSelectionSlider.setPaintLabels(true); kSelectionSlider.setPaintTicks(true); kSelectionSlider.setToolTipText("Select the neighborhood size, k"); kSelectionSlider.setValue(1); nhSizeLabelTxt.setText("Neighborhood size (k):"); numClassesLabelTxt.setText("Num. Classes:"); numClassesLabelValue.setText("..."); hRelatedPropTxt.setBackground(new java.awt.Color(102, 153, 255)); hRelatedPropTxt.setText("Hubness-related properties:"); skewnwessLabelTxt.setText("Occ. Skewness: "); skewnessLabelValue.setText("..."); kurtosisLabelTxt.setText("Occ. Kurtosis:"); kurtosisLabelValue.setText("..."); nkEntropyLabelTxt.setText("Nk Entropy:"); nkEntropyLabelValue.setText("..."); jLabel1.setText("RNk Entropy:"); rnkEntropyValue.setText("..."); nkEntropySkewnessTxt.setText("Nk Ent. Skew:"); rnkEntropySkewnessTxt.setText("RNk Ent Skew:"); nkEntropySkewnessValues.setText("..."); rnkEntropySkewnessValue.setText("..."); percAboveLabelTxt.setText("Perc Nk(x) > 0"); percAboveLabelValue.setText("..."); hubsLabelTxt.setText("Hubs:"); orphansLabelTxt.setText("Orphans:"); regularLabelTxt.setText("Regular:"); majorDegLabelTxt.setText("Major Deg:"); hubsLabelValue.setText("..."); orphansLabelValue.setText("..."); regularLabelValue.setText("..."); majorDegLabelValue.setText("..."); badHubnessLabelTxt.setText("Mislabel perc:"); badHubnessLabelValue.setText("..."); chartHoldingPanelOccDistribution.setMaximumSize(new java.awt.Dimension(497, 191)); chartHoldingPanelOccDistribution.setMinimumSize(new java.awt.Dimension(497, 191)); javax.swing.GroupLayout chartHoldingPanelOccDistributionLayout = new javax.swing.GroupLayout( chartHoldingPanelOccDistribution); chartHoldingPanelOccDistribution.setLayout(chartHoldingPanelOccDistributionLayout); chartHoldingPanelOccDistributionLayout.setHorizontalGroup(chartHoldingPanelOccDistributionLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 497, Short.MAX_VALUE)); chartHoldingPanelOccDistributionLayout.setVerticalGroup(chartHoldingPanelOccDistributionLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 221, Short.MAX_VALUE)); jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); selectedImagePathLabelClassNeighborMain.setText("Path:"); jScrollPane1.setViewportView(selectedImagePathLabelClassNeighborMain); javax.swing.GroupLayout dataMainPanelLayout = new javax.swing.GroupLayout(dataMainPanel); dataMainPanel.setLayout(dataMainPanelLayout); dataMainPanelLayout.setHorizontalGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dataMainPanelLayout.createSequentialGroup() .addContainerGap() .addComponent(mdsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 536, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(dataMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(dataMainPanelLayout.createSequentialGroup().addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rnkEntropySkewnessTxt).addComponent(nkEntropySkewnessTxt) .addComponent(jLabel1).addComponent(nkEntropyLabelTxt) .addComponent(hRelatedPropTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(dataMainPanelLayout.createSequentialGroup() .addComponent(workspaceLabelTxt) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(workspaceLabelValue, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(dataMainPanelLayout.createSequentialGroup() .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(numClassesLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(collectionSizeLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(numClassesLabelValue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(collectionSizeLabelValue, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE))) .addComponent(kSelectionSlider, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(dataMainPanelLayout.createSequentialGroup() .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(kurtosisLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(skewnwessLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(nkEntropySkewnessValues) .addGroup(dataMainPanelLayout.createSequentialGroup() .addGroup(dataMainPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(skewnessLabelValue) .addComponent(kurtosisLabelValue) .addComponent(nkEntropyLabelValue) .addComponent(rnkEntropyValue) .addComponent(rnkEntropySkewnessValue)) .addGap(28, 28, 28) .addGroup(dataMainPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(dataMainPanelLayout .createSequentialGroup() .addComponent(badHubnessLabelTxt) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(badHubnessLabelValue)) .addGroup(dataMainPanelLayout .createSequentialGroup() .addComponent(majorDegLabelTxt) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(majorDegLabelValue)) .addGroup(dataMainPanelLayout .createSequentialGroup() .addComponent(regularLabelTxt) .addGap(18, 18, 18) .addComponent(regularLabelValue)) .addGroup(dataMainPanelLayout .createSequentialGroup() .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(hubsLabelTxt) .addComponent( orphansLabelTxt)) .addGap(18, 18, 18) .addGroup(dataMainPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( orphansLabelValue) .addComponent( hubsLabelValue))))))) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(dataMainPanelLayout.createSequentialGroup() .addComponent(percAboveLabelTxt).addGap(18, 18, 18) .addComponent(percAboveLabelValue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(nhSizeLabelTxt, javax.swing.GroupLayout.Alignment.LEADING))) .addGap(7, 7, 7) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(selectedImageLabelClassNeighborMain, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(selectedImagePanelClassNeighborMain, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(chartHoldingPanelOccDistribution, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); dataMainPanelLayout.setVerticalGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(dataMainPanelLayout.createSequentialGroup().addContainerGap().addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(mdsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 593, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(dataMainPanelLayout.createSequentialGroup().addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(dataMainPanelLayout.createSequentialGroup() .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(workspaceLabelTxt).addComponent(workspaceLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(collectionSizeLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(collectionSizeLabelValue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(19, 19, 19) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(numClassesLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(numClassesLabelValue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(17, 17, 17).addComponent(hRelatedPropTxt).addGap(15, 15, 15) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(skewnwessLabelTxt).addComponent(skewnessLabelValue) .addComponent(hubsLabelTxt).addComponent(hubsLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(kurtosisLabelTxt).addComponent(kurtosisLabelValue) .addComponent(orphansLabelTxt).addComponent(orphansLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(nkEntropyLabelTxt).addComponent(nkEntropyLabelValue) .addComponent(regularLabelTxt).addComponent(regularLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1).addComponent(rnkEntropyValue) .addComponent(majorDegLabelTxt).addComponent(majorDegLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(nkEntropySkewnessTxt) .addComponent(nkEntropySkewnessValues)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rnkEntropySkewnessTxt) .addComponent(rnkEntropySkewnessValue) .addComponent(badHubnessLabelTxt) .addComponent(badHubnessLabelValue)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(percAboveLabelTxt).addComponent(percAboveLabelValue))) .addComponent(selectedImagePanelClassNeighborMain, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(selectedImageLabelClassNeighborMain, javax.swing.GroupLayout.DEFAULT_SIZE, 53, Short.MAX_VALUE) .addComponent(nhSizeLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(dataMainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(kSelectionSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent( chartHoldingPanelOccDistribution, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); hubTab.addTab("Data Overview", dataMainPanel); javax.swing.GroupLayout selectedImagePanelClassNeighborLayout = new javax.swing.GroupLayout( selectedImagePanelClassNeighbor); selectedImagePanelClassNeighbor.setLayout(selectedImagePanelClassNeighborLayout); selectedImagePanelClassNeighborLayout.setHorizontalGroup(selectedImagePanelClassNeighborLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 222, Short.MAX_VALUE)); selectedImagePanelClassNeighborLayout.setVerticalGroup(selectedImagePanelClassNeighborLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 224, Short.MAX_VALUE)); selectedImageLabelClassNeighbor.setText("Current Image"); nnScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); nnScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); javax.swing.GroupLayout nnPanelLayout = new javax.swing.GroupLayout(nnPanel); nnPanel.setLayout(nnPanelLayout); nnPanelLayout.setHorizontalGroup(nnPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 353, Short.MAX_VALUE)); nnPanelLayout.setVerticalGroup(nnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE)); nnScrollPane.setViewportView(nnPanel); rnnScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); rnnScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); javax.swing.GroupLayout rnnPanelLayout = new javax.swing.GroupLayout(rnnPanel); rnnPanel.setLayout(rnnPanelLayout); rnnPanelLayout.setHorizontalGroup(rnnPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 373, Short.MAX_VALUE)); rnnPanelLayout.setVerticalGroup(rnnPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 100, Short.MAX_VALUE)); rnnScrollPane.setViewportView(rnnPanel); nnScrollLabelTxt.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N nnScrollLabelTxt.setText("NNs:"); rnnScrollLabelTxt.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N rnnScrollLabelTxt.setText("RNNs:"); javax.swing.GroupLayout occProfileChartHolderLayout = new javax.swing.GroupLayout(occProfileChartHolder); occProfileChartHolder.setLayout(occProfileChartHolderLayout); occProfileChartHolderLayout.setHorizontalGroup(occProfileChartHolderLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 236, Short.MAX_VALUE)); occProfileChartHolderLayout.setVerticalGroup(occProfileChartHolderLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 185, Short.MAX_VALUE)); noccProfLabelTxt.setText("Selected image neighbor occurrence profile"); neighborGraphScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); neighborGraphScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); addSelectedButton.setText("Add selected"); addSelectedButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSelectedButtonActionPerformed(evt); } }); addNNsButton.setText("Add NNs"); addNNsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addNNsButtonActionPerformed(evt); } }); addRNNsButton.setText("Add RNNs"); addRNNsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addRNNsButtonActionPerformed(evt); } }); selectedImagePathLabelClassNeighbor.setText("Path:"); jScrollPane2.setViewportView(selectedImagePathLabelClassNeighbor); removeVertexButton.setText("Remove Sel."); removeVertexButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeVertexButtonActionPerformed(evt); } }); removeAllButton.setText("Remove All"); removeAllButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeAllButtonActionPerformed(evt); } }); javax.swing.GroupLayout neighborPanelLayout = new javax.swing.GroupLayout(neighborPanel); neighborPanel.setLayout(neighborPanelLayout); neighborPanelLayout.setHorizontalGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(neighborPanelLayout.createSequentialGroup().addContainerGap() .addComponent(neighborGraphScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 529, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(neighborPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(neighborPanelLayout.createSequentialGroup().addGap(31, 31, 31) .addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(nnScrollLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(rnnScrollLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(44, 44, 44) .addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(nnScrollPane, 0, 0, Short.MAX_VALUE) .addComponent(rnnScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, neighborPanelLayout.createSequentialGroup().addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, neighborPanelLayout.createSequentialGroup() .addGroup(neighborPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(occProfileChartHolder, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(noccProfLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(neighborPanelLayout.createSequentialGroup() .addGroup(neighborPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(neighborPanelLayout .createSequentialGroup() .addComponent(addRNNsButton) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(addNNsButton)) .addComponent(removeAllButton)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(neighborPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(removeVertexButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(addSelectedButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18))) .addGroup(neighborPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(selectedImageLabelClassNeighbor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(selectedImagePanelClassNeighbor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap())); neighborPanelLayout.setVerticalGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(neighborPanelLayout.createSequentialGroup().addContainerGap().addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(neighborGraphScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 593, Short.MAX_VALUE) .addGroup(neighborPanelLayout.createSequentialGroup().addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(neighborPanelLayout.createSequentialGroup() .addComponent(occProfileChartHolder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(noccProfLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)) .addComponent(selectedImagePanelClassNeighbor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(neighborPanelLayout.createSequentialGroup() .addGroup(neighborPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, neighborPanelLayout.createSequentialGroup() .addComponent( selectedImageLabelClassNeighbor) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)) .addGroup(neighborPanelLayout.createSequentialGroup() .addGroup(neighborPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(removeVertexButton) .addComponent(removeAllButton)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(neighborPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(addSelectedButton, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE) .addComponent(addNNsButton, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)))) .addGap(16, 16, 16)) .addGroup(neighborPanelLayout.createSequentialGroup() .addComponent(addRNNsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18))) .addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(nnScrollLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE) .addComponent(nnScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(neighborPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(rnnScrollLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE) .addComponent(rnnScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap())); hubTab.addTab("Neighbor View", neighborPanel); javax.swing.GroupLayout selectedImagePanelClassLayout = new javax.swing.GroupLayout( selectedImagePanelClass); selectedImagePanelClass.setLayout(selectedImagePanelClassLayout); selectedImagePanelClassLayout.setHorizontalGroup(selectedImagePanelClassLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 222, Short.MAX_VALUE)); selectedImagePanelClassLayout.setVerticalGroup(selectedImagePanelClassLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 224, Short.MAX_VALUE)); selectedImageLabelClass.setText("Current Image"); confusionMatScrollPane .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); confusionMatScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); classHubnessTable .setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null } }, new String[] { "Title 1", "Title 2", "Title 3", "Title 4" })); classHubnessTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF); classHubnessTable.setMaximumSize(new java.awt.Dimension(2000, 2000)); classHubnessTable.setMinimumSize(new java.awt.Dimension(120, 120)); classHubnessTable.setRowHeight(30); confusionMatScrollPane.setViewportView(classHubnessTable); classesScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); classesScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); classesScrollPanel.setPreferredSize(new java.awt.Dimension(760, 1508)); javax.swing.GroupLayout classesScrollPanelLayout = new javax.swing.GroupLayout(classesScrollPanel); classesScrollPanel.setLayout(classesScrollPanelLayout); classesScrollPanelLayout.setHorizontalGroup(classesScrollPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 760, Short.MAX_VALUE)); classesScrollPanelLayout.setVerticalGroup(classesScrollPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1508, Short.MAX_VALUE)); classesScrollPane.setViewportView(classesScrollPanel); javax.swing.GroupLayout classDistributionHolderLayout = new javax.swing.GroupLayout( classDistributionHolder); classDistributionHolder.setLayout(classDistributionHolderLayout); classDistributionHolderLayout.setHorizontalGroup(classDistributionHolderLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 428, Short.MAX_VALUE)); classDistributionHolderLayout.setVerticalGroup(classDistributionHolderLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); selectedImagePathLabelClass.setText("Path:"); jScrollPane3.setViewportView(selectedImagePathLabelClass); cNamesScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); cNamesScrollPane.setMaximumSize(new java.awt.Dimension(100, 100)); cNamesScrollPane.setMinimumSize(new java.awt.Dimension(100, 100)); javax.swing.GroupLayout classColorAndNamesPanelLayout = new javax.swing.GroupLayout( classColorAndNamesPanel); classColorAndNamesPanel.setLayout(classColorAndNamesPanelLayout); classColorAndNamesPanelLayout.setHorizontalGroup(classColorAndNamesPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 350, Short.MAX_VALUE)); classColorAndNamesPanelLayout.setVerticalGroup(classColorAndNamesPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 255, Short.MAX_VALUE)); jScrollPane5.setViewportView(classColorAndNamesPanel); cNamesScrollPane.setViewportView(jScrollPane5); javax.swing.GroupLayout classPanelLayout = new javax.swing.GroupLayout(classPanel); classPanel.setLayout(classPanelLayout); classPanelLayout.setHorizontalGroup(classPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classPanelLayout.createSequentialGroup().addContainerGap().addGroup(classPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(classesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 764, Short.MAX_VALUE) .addGroup(classPanelLayout.createSequentialGroup() .addComponent(classDistributionHolder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(cNamesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(classPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classPanelLayout.createSequentialGroup().addGroup(classPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(classPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(selectedImageLabelClass, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(selectedImagePanelClass, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(confusionMatScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(21, 21, 21)) .addGroup(classPanelLayout .createSequentialGroup().addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 278, Short.MAX_VALUE) .addContainerGap())))); classPanelLayout.setVerticalGroup(classPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classPanelLayout.createSequentialGroup().addContainerGap() .addComponent(selectedImagePanelClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(selectedImageLabelClass, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE) .addGap(18, 18, 18).addComponent(confusionMatScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, classPanelLayout.createSequentialGroup() .addGroup(classPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(classDistributionHolder, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(classPanelLayout.createSequentialGroup() .addComponent(cNamesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 32, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(11, 11, 11))); hubTab.addTab("Class View", classPanel); javax.swing.GroupLayout selectedImagePanelSearchLayout = new javax.swing.GroupLayout( selectedImagePanelSearch); selectedImagePanelSearch.setLayout(selectedImagePanelSearchLayout); selectedImagePanelSearchLayout.setHorizontalGroup(selectedImagePanelSearchLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 222, Short.MAX_VALUE)); selectedImagePanelSearchLayout.setVerticalGroup(selectedImagePanelSearchLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 224, Short.MAX_VALUE)); selectedImageLabelSearch.setText("Current Image"); searchQLabelTxt.setText("Do you want to search the image collection?"); javax.swing.GroupLayout queryImagePanelLayout = new javax.swing.GroupLayout(queryImagePanel); queryImagePanel.setLayout(queryImagePanelLayout); queryImagePanelLayout.setHorizontalGroup(queryImagePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 237, Short.MAX_VALUE)); queryImagePanelLayout.setVerticalGroup(queryImagePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 237, Short.MAX_VALUE)); imageBrowseButton.setText("Browse"); imageBrowseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { imageBrowseButtonActionPerformed(evt); } }); jTextField1.setText(" -- Enter text --"); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); queryQTextLabelTxt.setText("You can also search with a textual query:"); queryNNScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); queryNNScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); javax.swing.GroupLayout queryNNPanelLayout = new javax.swing.GroupLayout(queryNNPanel); queryNNPanel.setLayout(queryNNPanelLayout); queryNNPanelLayout.setHorizontalGroup(queryNNPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 184, Short.MAX_VALUE)); queryNNPanelLayout.setVerticalGroup(queryNNPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 432, Short.MAX_VALUE)); queryNNScrollPane.setViewportView(queryNNPanel); simResLabelTxt.setText("Here is a list of most similar results:"); searchButton.setText("SEARCH"); searchButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { searchButtonActionPerformed(evt); } }); prClassLabelTxt.setText("Predicted class for k = 10:"); prClassScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); prClassScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); javax.swing.GroupLayout classifierPredictionsPanelLayout = new javax.swing.GroupLayout( classifierPredictionsPanel); classifierPredictionsPanel.setLayout(classifierPredictionsPanelLayout); classifierPredictionsPanelLayout.setHorizontalGroup(classifierPredictionsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 241, Short.MAX_VALUE)); classifierPredictionsPanelLayout.setVerticalGroup(classifierPredictionsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 432, Short.MAX_VALUE)); prClassScrollPane.setViewportView(classifierPredictionsPanel); collectionSearchButton.setText("Select from collection"); collectionSearchButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { collectionSearchButtonActionPerformed(evt); } }); selectedImagePathLabelSearch.setText("Path:"); jScrollPane4.setViewportView(selectedImagePathLabelSearch); reRankingButton.setText("Re-rank"); reRankingButton.setToolTipText("Perform Secondary\nHubness-aware Re-ranking"); reRankingButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reRankingButtonActionPerformed(evt); } }); javax.swing.GroupLayout searchPanelLayout = new javax.swing.GroupLayout(searchPanel); searchPanel.setLayout(searchPanelLayout); searchPanelLayout.setHorizontalGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup().addContainerGap().addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(searchQLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(queryQTextLabelTxt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(searchButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, searchPanelLayout.createSequentialGroup().addComponent(imageBrowseButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(collectionSearchButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(queryImagePanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup().addGap(18, 18, 18) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(simResLabelTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(queryNNScrollPane)) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup() .addGap(44, 44, 44).addComponent(prClassLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(searchPanelLayout.createSequentialGroup() .addGap(29, 29, 29).addComponent(prClassScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(searchPanelLayout.createSequentialGroup().addGap(59, 59, 59).addComponent( reRankingButton, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 236, Short.MAX_VALUE) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(selectedImageLabelSearch, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(selectedImagePanelSearch, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addContainerGap())); searchPanelLayout.setVerticalGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup().addContainerGap().addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup().addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(searchPanelLayout.createSequentialGroup().addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(searchQLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(simResLabelTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(prClassLabelTxt)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(imageBrowseButton) .addComponent(collectionSearchButton).addComponent(reRankingButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(queryImagePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(searchPanelLayout.createSequentialGroup() .addComponent(selectedImagePanelSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(selectedImageLabelSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(13, 13, 13).addComponent(queryQTextLabelTxt).addGap(18, 18, 18) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent( searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, searchPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(prClassScrollPane).addComponent(queryNNScrollPane))) .addContainerGap())); hubTab.addTab("Search", searchPanel); collectionMenu.setLabel("Collection"); workspaceMenuItem.setText("Select workspace"); workspaceMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { workspaceMenuItemActionPerformed(evt); } }); collectionMenu.add(workspaceMenuItem); importItem.setLabel("Import data"); importItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { importItemActionPerformed(evt); } }); collectionMenu.add(importItem); dMatrixMenu.setText("Distances and Neighbor Sets"); distImportItem.setText("Import"); distImportItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { distImportItemActionPerformed(evt); } }); dMatrixMenu.add(distImportItem); distCalculateMenu.setText("Calculate"); manhattanDistItem.setText("Manhattan"); manhattanDistItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { manhattanDistItemActionPerformed(evt); } }); distCalculateMenu.add(manhattanDistItem); distCalcEuclideanItem.setText("Euclidean"); distCalcEuclideanItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { distCalcEuclideanItemActionPerformed(evt); } }); distCalculateMenu.add(distCalcEuclideanItem); distCalcCosineItem.setText("Cosine"); distCalcCosineItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { distCalcCosineItemActionPerformed(evt); } }); distCalculateMenu.add(distCalcCosineItem); tanimotoMenuItem.setText("Tanimoto"); tanimotoMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tanimotoMenuItemActionPerformed(evt); } }); distCalculateMenu.add(tanimotoMenuItem); klMenuItem.setText("KL divergence"); klMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { klMenuItemActionPerformed(evt); } }); distCalculateMenu.add(klMenuItem); bcMenuItem.setText("Bray-Curtis"); bcMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bcMenuItemActionPerformed(evt); } }); distCalculateMenu.add(bcMenuItem); canMenuItem.setText("Canberra"); canMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { canMenuItemActionPerformed(evt); } }); distCalculateMenu.add(canMenuItem); dMatrixMenu.add(distCalculateMenu); collectionMenu.add(dMatrixMenu); neighborStatsItem.setText("Calculate Neighbor Stats"); neighborStatsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { neighborStatsItemActionPerformed(evt); } }); collectionMenu.add(neighborStatsItem); mdsVisualizeItem.setText("MDS Visualize"); mdsVisualizeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mdsVisualizeItemActionPerformed(evt); } }); collectionMenu.add(mdsVisualizeItem); selImgPathMenuItem.setText("Select image by browsing"); selImgPathMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selImgPathMenuItemActionPerformed(evt); } }); collectionMenu.add(selImgPathMenuItem); majorHubSelectionItem.setText("Select major hub"); majorHubSelectionItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { majorHubSelectionItemActionPerformed(evt); } }); collectionMenu.add(majorHubSelectionItem); menuBar.add(collectionMenu); metricLearningMenu.setText("Metric Learning"); secondaryMetricMenu.setText("Calculate secondary metric"); simcosMenuItem.setText("simcos shared neighbor sim"); simcosMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { simcosMenuItemActionPerformed(evt); } }); secondaryMetricMenu.add(simcosMenuItem); simhubMenuItem.setText("simhub shared neighbor sim"); simhubMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { simhubMenuItemActionPerformed(evt); } }); secondaryMetricMenu.add(simhubMenuItem); mpMenuItem.setText("mutual proximity"); mpMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mpMenuItemActionPerformed(evt); } }); secondaryMetricMenu.add(mpMenuItem); localScalingItem.setText("local scaling"); localScalingItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { localScalingItemActionPerformed(evt); } }); secondaryMetricMenu.add(localScalingItem); nicdmItem.setText("NICDM"); nicdmItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nicdmItemActionPerformed(evt); } }); secondaryMetricMenu.add(nicdmItem); metricLearningMenu.add(secondaryMetricMenu); loadSecondaryDistancesItem.setText("Load secondary distance matrix"); loadSecondaryDistancesItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadSecondaryDistancesItemActionPerformed(evt); } }); metricLearningMenu.add(loadSecondaryDistancesItem); menuBar.add(metricLearningMenu); editMenu.setText("Edit"); previousMenuItem.setText("Previous"); previousMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { previousMenuItemActionPerformed(evt); } }); editMenu.add(previousMenuItem); nextMenuItem.setText("Next"); nextMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nextMenuItemActionPerformed(evt); } }); editMenu.add(nextMenuItem); screenCaptureMenu.setText("Screen capture"); mdsScreenCaptureItem.setText("MDS screen"); mdsScreenCaptureItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mdsScreenCaptureItemActionPerformed(evt); } }); screenCaptureMenu.add(mdsScreenCaptureItem); graphScreenCaptureItem.setText("Graph screen"); graphScreenCaptureItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { graphScreenCaptureItemActionPerformed(evt); } }); screenCaptureMenu.add(graphScreenCaptureItem); editMenu.add(screenCaptureMenu); menuBar.add(editMenu); codebookMenu.setText("Codebook"); loadCodebookItem.setText("load Codebook"); loadCodebookItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadCodebookItemActionPerformed(evt); } }); codebookMenu.add(loadCodebookItem); loadCodebookProfileMenuItem.setText("load Codebook Profile"); loadCodebookProfileMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadCodebookProfileMenuItemActionPerformed(evt); } }); codebookMenu.add(loadCodebookProfileMenuItem); menuBar.add(codebookMenu); classificationMenu.setText("Classification"); trainModelsItem.setText("Train models"); trainModelsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { trainModelsItemActionPerformed(evt); } }); classificationMenu.add(trainModelsItem); menuBar.add(classificationMenu); selImageMenu.setText("Selected Image"); selSIFTmenuItem.setText("Visual words assessment view"); selSIFTmenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selSIFTmenuItemActionPerformed(evt); } }); selImageMenu.add(selSIFTmenuItem); menuBar.add(selImageMenu); setJMenuBar(menuBar); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addComponent(hubTab, javax.swing.GroupLayout.PREFERRED_SIZE, 1073, Short.MAX_VALUE) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addComponent(hubTab).addContainerGap())); pack(); }
From source file:de.tor.tribes.ui.windows.DSWorkbenchMainFrame.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 av a 2s . c o m */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jExportDialog = new javax.swing.JDialog(); jScrollPane1 = new javax.swing.JScrollPane(); jAttackExportTable = new javax.swing.JTable(); jExportButton = new javax.swing.JButton(); jCancelExportButton = new javax.swing.JButton(); jScrollPane4 = new javax.swing.JScrollPane(); jMarkerSetExportTable = new javax.swing.JTable(); jScrollPane5 = new javax.swing.JScrollPane(); jReportSetExportTable = new javax.swing.JTable(); jScrollPane6 = new javax.swing.JScrollPane(); jNoteSetExportTable = new javax.swing.JTable(); jScrollPane7 = new javax.swing.JScrollPane(); jTroopSetExportTable = new javax.swing.JTable(); jPanel5 = new javax.swing.JPanel(); jExportTags = new javax.swing.JCheckBox(); jExportForms = new javax.swing.JCheckBox(); jExportVillageInformation = new javax.swing.JCheckBox(); jExportStdAttacks = new javax.swing.JCheckBox(); jExportFarminfos = new javax.swing.JCheckBox(); jExportSplits = new javax.swing.JCheckBox(); jExportSOS = new javax.swing.JCheckBox(); jAddROIDialog = new javax.swing.JDialog(); jLabel7 = new javax.swing.JLabel(); jROIRegion = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); jROITextField = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jROIPosition = new javax.swing.JComboBox(); jAddNewROIButton = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jCustomPanel = new javax.swing.JPanel(); jNavigationPanel = new javax.swing.JPanel(); jMoveE = new javax.swing.JButton(); jMoveNE = new javax.swing.JButton(); jMoveN = new javax.swing.JButton(); jMoveNW = new javax.swing.JButton(); jMoveW = new javax.swing.JButton(); jMoveSW = new javax.swing.JButton(); jMoveS = new javax.swing.JButton(); jMoveSE = new javax.swing.JButton(); jCenterX = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jCenterY = new javax.swing.JTextField(); jRefreshButton = new javax.swing.JButton(); jMoveE1 = new javax.swing.JButton(); jZoomInButton = new javax.swing.JButton(); jZoomOutButton = new javax.swing.JButton(); jCenterCoordinateIngame = new javax.swing.JButton(); jMapPanel = new javax.swing.JPanel(); jShowMapPopup = new javax.swing.JCheckBox(); jLabel5 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jGraphicPacks = new javax.swing.JComboBox(); jHighlightTribeVillages = new javax.swing.JCheckBox(); jShowRuler = new javax.swing.JCheckBox(); jHourField = new javax.swing.JTextField(); jMinuteField = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jShowMouseOverInfo = new javax.swing.JCheckBox(); jIncludeSupport = new javax.swing.JCheckBox(); jLabel3 = new javax.swing.JLabel(); jDisplayWatchtower = new javax.swing.JCheckBox(); jDisplayChurch = new javax.swing.JCheckBox(); jROIPanel = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jROIBox = new javax.swing.JComboBox(); jRemoveROIButton = new javax.swing.JButton(); jAddROIButton = new javax.swing.JButton(); jInformationPanel = new javax.swing.JPanel(); jCurrentPlayerVillages = new javax.swing.JComboBox(); jCurrentPlayer = new javax.swing.JLabel(); jCenterIngameButton = new javax.swing.JButton(); jOnlineLabel = new javax.swing.JLabel(); jCurrentToolLabel = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jEnableClipboardWatchButton = new javax.swing.JButton(); jXTipOfTheDay1 = new org.jdesktop.swingx.JXTipOfTheDay(); jPanel4 = new javax.swing.JPanel(); jStatusPanel = new javax.swing.JPanel(); capabilityInfoPanel1 = new de.tor.tribes.ui.components.CapabilityInfoPanel(); infoPanel = new org.jdesktop.swingx.JXCollapsiblePane(); jXLabel1 = new org.jdesktop.swingx.JXLabel(); jMapPanelHolder = new javax.swing.JPanel(); jMinimapPanel = new javax.swing.JPanel(); jSettingsScrollPane = new javax.swing.JScrollPane(); jExportDialog.setTitle("Export"); jExportDialog.setMinimumSize(new java.awt.Dimension(560, 500)); jExportDialog.setPreferredSize(new java.awt.Dimension(560, 500)); jExportDialog.setResizable(false); jExportDialog.getContentPane().setLayout(new java.awt.GridBagLayout()); jScrollPane1.setMinimumSize(new java.awt.Dimension(260, 100)); jScrollPane1.setPreferredSize(new java.awt.Dimension(260, 100)); jAttackExportTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Angriffplan", "Exportieren" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jAttackExportTable.setOpaque(false); jScrollPane1.setViewportView(jAttackExportTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jScrollPane1, gridBagConstraints); jExportButton.setText("Exportieren"); jExportButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fireExportEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.LAST_LINE_END; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jExportButton, gridBagConstraints); jCancelExportButton.setText("Abbrechen"); jCancelExportButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fireExportEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.LAST_LINE_START; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jCancelExportButton, gridBagConstraints); jScrollPane4.setMinimumSize(new java.awt.Dimension(260, 100)); jScrollPane4.setPreferredSize(new java.awt.Dimension(260, 100)); jMarkerSetExportTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Markierungsset", "Exportieren" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jMarkerSetExportTable.setOpaque(false); jScrollPane4.setViewportView(jMarkerSetExportTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jScrollPane4, gridBagConstraints); jScrollPane5.setMinimumSize(new java.awt.Dimension(260, 100)); jScrollPane5.setPreferredSize(new java.awt.Dimension(260, 100)); jReportSetExportTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Berichtsset", "Exportieren" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jReportSetExportTable.setOpaque(false); jScrollPane5.setViewportView(jReportSetExportTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jScrollPane5, gridBagConstraints); jScrollPane6.setMinimumSize(new java.awt.Dimension(260, 100)); jScrollPane6.setPreferredSize(new java.awt.Dimension(260, 100)); jNoteSetExportTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Notizset", "Exportieren" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jNoteSetExportTable.setOpaque(false); jScrollPane6.setViewportView(jNoteSetExportTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jScrollPane6, gridBagConstraints); jScrollPane7.setMinimumSize(new java.awt.Dimension(260, 100)); jScrollPane7.setPreferredSize(new java.awt.Dimension(260, 100)); jTroopSetExportTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Truppeninformationen", "Exportieren" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jTroopSetExportTable.setOpaque(false); jScrollPane7.setViewportView(jTroopSetExportTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jScrollPane7, gridBagConstraints); jPanel5.setPreferredSize(new java.awt.Dimension(260, 100)); jPanel5.setLayout(new java.awt.GridBagLayout()); jExportTags.setText("Gruppen"); jExportTags.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportTags.setMinimumSize(new java.awt.Dimension(130, 24)); jExportTags.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportTags, gridBagConstraints); jExportForms.setText("Zeichnungen"); jExportForms.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportForms.setMinimumSize(new java.awt.Dimension(130, 24)); jExportForms.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportForms, gridBagConstraints); jExportVillageInformation.setText("Dorfinfos"); jExportVillageInformation.setToolTipText("Enthlt Gebudeinfos (z.B. Kichrche, Wachturm)"); jExportVillageInformation.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportVillageInformation.setMinimumSize(new java.awt.Dimension(130, 24)); jExportVillageInformation.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportVillageInformation, gridBagConstraints); jExportStdAttacks.setText("Standardangriffe"); jExportStdAttacks.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportStdAttacks.setMinimumSize(new java.awt.Dimension(130, 24)); jExportStdAttacks.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportStdAttacks, gridBagConstraints); jExportFarminfos.setText("Farminfos"); jExportFarminfos.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportFarminfos.setMinimumSize(new java.awt.Dimension(130, 24)); jExportFarminfos.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportFarminfos, gridBagConstraints); jExportSplits.setText("Split Sets"); jExportSplits.setToolTipText("Enthlt Gebudeinfos (z.B. Kichrche, Wachturm)"); jExportSplits.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportSplits.setMinimumSize(new java.awt.Dimension(130, 24)); jExportSplits.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportSplits, gridBagConstraints); jExportSOS.setText("SOS Requests"); jExportSOS.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); jExportSOS.setMinimumSize(new java.awt.Dimension(130, 24)); jExportSOS.setPreferredSize(new java.awt.Dimension(130, 24)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; jPanel5.add(jExportSOS, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jExportDialog.getContentPane().add(jPanel5, gridBagConstraints); jAddROIDialog.setTitle("ROI hinzufgen"); jLabel7.setText("Zentrum"); jROIRegion.setEnabled(false); jROIRegion.setMaximumSize(new java.awt.Dimension(120, 20)); jROIRegion.setMinimumSize(new java.awt.Dimension(120, 20)); jROIRegion.setPreferredSize(new java.awt.Dimension(120, 20)); jLabel8.setText("Bezeichnung"); jROITextField.setToolTipText("Eindeutige Bezeichnung zur Kennzeichnung der ROI"); jLabel9.setText("Position"); jROIPosition.setModel(new javax.swing.DefaultComboBoxModel( new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Ende" })); jROIPosition.setToolTipText("Position der ROI (Positionen 1-10 knnen per Shortcut gewhlt werden)"); jAddNewROIButton.setText("Hinzufgen"); jAddNewROIButton.setToolTipText("ROI hinzufgen"); jAddNewROIButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireAddROIDoneEvent(evt); } }); jButton5.setText("Abbrechen"); jButton5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireAddROIDoneEvent(evt); } }); javax.swing.GroupLayout jAddROIDialogLayout = new javax.swing.GroupLayout(jAddROIDialog.getContentPane()); jAddROIDialog.getContentPane().setLayout(jAddROIDialogLayout); jAddROIDialogLayout.setHorizontalGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jAddROIDialogLayout.createSequentialGroup().addContainerGap().addGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jAddROIDialogLayout.createSequentialGroup().addComponent(jButton5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jAddNewROIButton)) .addGroup(jAddROIDialogLayout.createSequentialGroup().addGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabel9)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jROIRegion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jROITextField, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE) .addComponent(jROIPosition, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap(16, Short.MAX_VALUE))); jAddROIDialogLayout.setVerticalGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jAddROIDialogLayout.createSequentialGroup().addContainerGap().addGroup(jAddROIDialogLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel7) .addComponent(jROIRegion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jAddROIDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jROITextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jAddROIDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(jROIPosition, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jAddROIDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jAddNewROIButton).addComponent(jButton5)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); javax.swing.GroupLayout jCustomPanelLayout = new javax.swing.GroupLayout(jCustomPanel); jCustomPanel.setLayout(jCustomPanelLayout); jCustomPanelLayout.setHorizontalGroup(jCustomPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 572, Short.MAX_VALUE)); jCustomPanelLayout.setVerticalGroup(jCustomPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 501, Short.MAX_VALUE)); jNavigationPanel.setBackground(new java.awt.Color(239, 235, 223)); jNavigationPanel.setMinimumSize(new java.awt.Dimension(236, 95)); jMoveE.setBackground(new java.awt.Color(239, 235, 223)); jMoveE.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_e.png"))); // NOI18N jMoveE.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveE.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveE.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveE.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveNE.setBackground(new java.awt.Color(239, 235, 223)); jMoveNE.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_ne.png"))); // NOI18N jMoveNE.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveNE.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveNE.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveNE.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveN.setBackground(new java.awt.Color(239, 235, 223)); jMoveN.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_n.png"))); // NOI18N jMoveN.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveN.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveN.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveN.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveNW.setBackground(new java.awt.Color(239, 235, 223)); jMoveNW.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_nw.png"))); // NOI18N jMoveNW.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveNW.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveNW.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveNW.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveW.setBackground(new java.awt.Color(239, 235, 223)); jMoveW.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_w.png"))); // NOI18N jMoveW.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveW.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveW.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveW.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveSW.setBackground(new java.awt.Color(239, 235, 223)); jMoveSW.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_sw.png"))); // NOI18N jMoveSW.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveSW.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveSW.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveSW.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveS.setBackground(new java.awt.Color(239, 235, 223)); jMoveS.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_s.png"))); // NOI18N jMoveS.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveS.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveS.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveS.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jMoveSE.setBackground(new java.awt.Color(239, 235, 223)); jMoveSE.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/map_se.png"))); // NOI18N jMoveSE.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveSE.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveSE.setPreferredSize(new java.awt.Dimension(21, 21)); jMoveSE.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireMoveMapEvent(evt); } }); jCenterX.setText("500"); jCenterX.setMaximumSize(new java.awt.Dimension(40, 25)); jCenterX.setMinimumSize(new java.awt.Dimension(40, 25)); jCenterX.setPreferredSize(new java.awt.Dimension(40, 25)); jCenterX.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { fireCheckForVillagePositionEvent(evt); } }); jLabel1.setText("X"); jLabel2.setText("Y"); jCenterY.setText("500"); jCenterY.setMaximumSize(new java.awt.Dimension(40, 25)); jCenterY.setMinimumSize(new java.awt.Dimension(40, 25)); jCenterY.setPreferredSize(new java.awt.Dimension(40, 25)); jRefreshButton.setBackground(new java.awt.Color(239, 235, 223)); jRefreshButton.setToolTipText("Position aktualisieren"); jRefreshButton.setMaximumSize(new java.awt.Dimension(30, 30)); jRefreshButton.setMinimumSize(new java.awt.Dimension(30, 30)); jRefreshButton.setPreferredSize(new java.awt.Dimension(30, 30)); jRefreshButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireReloadMapKoordinatesEvent(evt); } }); jMoveE1.setBackground(new java.awt.Color(239, 235, 223)); jMoveE1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); jMoveE1.setEnabled(false); jMoveE1.setMaximumSize(new java.awt.Dimension(21, 21)); jMoveE1.setMinimumSize(new java.awt.Dimension(21, 21)); jMoveE1.setPreferredSize(new java.awt.Dimension(21, 21)); jZoomInButton.setBackground(new java.awt.Color(239, 235, 223)); jZoomInButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/zoom_out.png"))); // NOI18N jZoomInButton.setMaximumSize(new java.awt.Dimension(30, 30)); jZoomInButton.setMinimumSize(new java.awt.Dimension(30, 30)); jZoomInButton.setPreferredSize(new java.awt.Dimension(30, 30)); jZoomInButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireZoomEvent(evt); } }); jZoomOutButton.setBackground(new java.awt.Color(239, 235, 223)); jZoomOutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/zoom_in.png"))); // NOI18N jZoomOutButton.setMaximumSize(new java.awt.Dimension(30, 30)); jZoomOutButton.setMinimumSize(new java.awt.Dimension(30, 30)); jZoomOutButton.setPreferredSize(new java.awt.Dimension(30, 30)); jZoomOutButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireZoomEvent(evt); } }); jCenterCoordinateIngame.setBackground(new java.awt.Color(239, 235, 223)); jCenterCoordinateIngame.setToolTipText("Zentrieren (InGame)"); jCenterCoordinateIngame.setMaximumSize(new java.awt.Dimension(30, 30)); jCenterCoordinateIngame.setMinimumSize(new java.awt.Dimension(30, 30)); jCenterCoordinateIngame.setPreferredSize(new java.awt.Dimension(30, 30)); jCenterCoordinateIngame.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireCenterCurrentPosInGameEvent(evt); } }); javax.swing.GroupLayout jNavigationPanelLayout = new javax.swing.GroupLayout(jNavigationPanel); jNavigationPanel.setLayout(jNavigationPanelLayout); jNavigationPanelLayout.setHorizontalGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jNavigationPanelLayout.createSequentialGroup().addContainerGap() .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addComponent(jMoveNW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jMoveN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addComponent(jMoveW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jMoveE1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMoveNE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addComponent(jMoveSW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jMoveS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jMoveSE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jZoomInButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jZoomOutButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(15, 15, 15) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCenterX, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCenterY, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRefreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCenterCoordinateIngame, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jNavigationPanelLayout.setVerticalGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jNavigationPanelLayout.createSequentialGroup().addContainerGap() .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMoveNE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveNW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMoveE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveE1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMoveSW, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMoveSE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCenterX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2).addComponent(jCenterY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jNavigationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jNavigationPanelLayout.createSequentialGroup() .addComponent(jRefreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCenterCoordinateIngame, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jNavigationPanelLayout .createSequentialGroup() .addComponent(jZoomInButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jZoomOutButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jMapPanel.setBackground(new java.awt.Color(239, 235, 223)); jMapPanel.setMinimumSize(new java.awt.Dimension(193, 250)); jMapPanel.setPreferredSize(new java.awt.Dimension(193, 250)); jMapPanel.setLayout(new java.awt.GridBagLayout()); jShowMapPopup.setText("Kartenpopup anzeigen"); jShowMapPopup.setToolTipText("Zeigt Informationen ber das Dorf unter dem Mauszeiger an"); jShowMapPopup.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jShowMapPopup.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireShowMapPopupChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jShowMapPopup, gridBagConstraints); jLabel5.setText("Laufzeitradius"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jLabel5, gridBagConstraints); jLabel12.setText("Grafikpaket"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jLabel12, gridBagConstraints); jGraphicPacks.setMaximumSize(new java.awt.Dimension(28, 20)); jGraphicPacks.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { fireGraphicPackChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jGraphicPacks, gridBagConstraints); jHighlightTribeVillages.setText("Spielerdrfer hervorheben"); jHighlightTribeVillages.setToolTipText( "Markiert im Kartenausschnitt alle Drfer des Spielers, dessen Dorf unter dem Mauszeiger liegt"); jHighlightTribeVillages.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jHighlightTribeVillages.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireHighlightTribeVillagesChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jHighlightTribeVillages, gridBagConstraints); jShowRuler.setText("Lineal anzeigen"); jShowRuler.setToolTipText("Zeichnet ein Koordinatenlineal am Kartenrand"); jShowRuler.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jShowRuler.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireShowRulerChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jShowRuler, gridBagConstraints); jHourField.setHorizontalAlignment(javax.swing.JTextField.CENTER); jHourField.setText("1"); jHourField.setMaximumSize(new java.awt.Dimension(24, 25)); jHourField.setMinimumSize(new java.awt.Dimension(24, 25)); jHourField.setPreferredSize(new java.awt.Dimension(24, 25)); jHourField.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { fireRadarValueChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jHourField, gridBagConstraints); jMinuteField.setHorizontalAlignment(javax.swing.JTextField.CENTER); jMinuteField.setText("0"); jMinuteField.setMaximumSize(new java.awt.Dimension(24, 25)); jMinuteField.setMinimumSize(new java.awt.Dimension(24, 25)); jMinuteField.setPreferredSize(new java.awt.Dimension(24, 25)); jMinuteField.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { fireRadarValueChangedEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jMinuteField, gridBagConstraints); jLabel11.setText("h"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jLabel11, gridBagConstraints); jLabel13.setText("min"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jLabel13, gridBagConstraints); jShowMouseOverInfo.setText("MouseOver Infos anzeigen"); jShowMouseOverInfo.setToolTipText("Zeigt Informationen ber das Dorf unter dem Mauszeiger an"); jShowMouseOverInfo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jShowMouseOverInfo.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireShowMouseOverInfoEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jShowMouseOverInfo, gridBagConstraints); jIncludeSupport.setText("Untersttzungen einbeziehen"); jIncludeSupport.setToolTipText( " Untersttzungen bei den MouseOver Infos und bei der Anzeige der Truppendichte mit einbeziehen"); jIncludeSupport.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireShowHideSupportsEvent(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jIncludeSupport, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 1.0; jMapPanel.add(jLabel3, gridBagConstraints); jDisplayWatchtower.setText("Wachturmradien Zeichnen"); jDisplayWatchtower.setToolTipText("Wachturmradien Zeichnen"); jDisplayWatchtower.setActionCommand(""); jDisplayWatchtower.setAutoscrolls(true); jDisplayWatchtower.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireDisplayWatchtower(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jDisplayWatchtower, gridBagConstraints); jDisplayChurch.setText("Kirchenradien Zeichnen"); jDisplayChurch.setToolTipText("Kirchenradien Zeichnen"); jDisplayChurch.setActionCommand("Kirchenradien zeichnen"); jDisplayChurch.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { fireDisplayChurch(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jMapPanel.add(jDisplayChurch, gridBagConstraints); jROIPanel.setBackground(new java.awt.Color(239, 235, 223)); jROIPanel.setMaximumSize(new java.awt.Dimension(293, 70)); jROIPanel.setMinimumSize(new java.awt.Dimension(293, 70)); jROIPanel.setPreferredSize(new java.awt.Dimension(293, 70)); jLabel6.setText("ROIs"); jLabel6.setMaximumSize(new java.awt.Dimension(40, 25)); jLabel6.setMinimumSize(new java.awt.Dimension(40, 25)); jLabel6.setPreferredSize(new java.awt.Dimension(40, 25)); jROIBox.setMinimumSize(new java.awt.Dimension(23, 15)); jROIBox.setPreferredSize(new java.awt.Dimension(28, 25)); jROIBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { fireROISelectedEvent(evt); } }); jRemoveROIButton.setBackground(new java.awt.Color(239, 235, 223)); jRemoveROIButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/remove.gif"))); // NOI18N jRemoveROIButton.setMaximumSize(new java.awt.Dimension(23, 23)); jRemoveROIButton.setMinimumSize(new java.awt.Dimension(23, 23)); jRemoveROIButton.setPreferredSize(new java.awt.Dimension(23, 23)); jRemoveROIButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireChangeROIEvent(evt); } }); jAddROIButton.setBackground(new java.awt.Color(239, 235, 223)); jAddROIButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/add.gif"))); // NOI18N jAddROIButton.setMaximumSize(new java.awt.Dimension(23, 23)); jAddROIButton.setMinimumSize(new java.awt.Dimension(23, 23)); jAddROIButton.setPreferredSize(new java.awt.Dimension(23, 23)); jAddROIButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireChangeROIEvent(evt); } }); javax.swing.GroupLayout jROIPanelLayout = new javax.swing.GroupLayout(jROIPanel); jROIPanel.setLayout(jROIPanelLayout); jROIPanelLayout.setHorizontalGroup(jROIPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jROIPanelLayout.createSequentialGroup().addContainerGap().addGroup(jROIPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jROIPanelLayout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jROIBox, 0, 223, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jROIPanelLayout.createSequentialGroup() .addComponent(jRemoveROIButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jAddROIButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); jROIPanelLayout.setVerticalGroup(jROIPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jROIPanelLayout.createSequentialGroup().addContainerGap().addGroup(jROIPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jROIBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jROIPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRemoveROIButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jAddROIButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jInformationPanel.setBackground(new java.awt.Color(239, 235, 223)); jCurrentPlayerVillages.setToolTipText("Aktives Dorf als Ausgangspunkt fr InGame Aktionen"); jCurrentPlayerVillages.addPopupMenuListener(new javax.swing.event.PopupMenuListener() { public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) { } public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) { fireCurrentPlayerVillagePopupEvent(evt); } public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) { } }); jCurrentPlayer.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jCurrentPlayer.setMaximumSize(new java.awt.Dimension(155, 14)); jCurrentPlayer.setMinimumSize(new java.awt.Dimension(155, 14)); jCurrentPlayer.setPreferredSize(new java.awt.Dimension(155, 14)); jCenterIngameButton.setBackground(new java.awt.Color(239, 235, 223)); jCenterIngameButton.setToolTipText("Zentrieren (InGame)"); jCenterIngameButton.setMaximumSize(new java.awt.Dimension(30, 30)); jCenterIngameButton.setMinimumSize(new java.awt.Dimension(30, 30)); jCenterIngameButton.setPreferredSize(new java.awt.Dimension(30, 30)); jCenterIngameButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireCenterVillageIngameEvent(evt); } }); jOnlineLabel.setToolTipText("Online/Offline Modus"); jOnlineLabel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jOnlineLabel.setMaximumSize(new java.awt.Dimension(30, 30)); jOnlineLabel.setMinimumSize(new java.awt.Dimension(30, 30)); jOnlineLabel.setPreferredSize(new java.awt.Dimension(30, 30)); jCurrentToolLabel.setToolTipText("Momentan gewhltes Werkzeug"); jCurrentToolLabel.setAlignmentY(0.0F); jCurrentToolLabel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jCurrentToolLabel.setFocusable(false); jCurrentToolLabel.setIconTextGap(0); jCurrentToolLabel.setMaximumSize(new java.awt.Dimension(30, 30)); jCurrentToolLabel.setMinimumSize(new java.awt.Dimension(30, 30)); jCurrentToolLabel.setPreferredSize(new java.awt.Dimension(30, 30)); jCurrentToolLabel.setRequestFocusEnabled(false); jButton1.setBackground(new java.awt.Color(239, 235, 223)); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/ui/camera.png"))); // NOI18N jButton1.setToolTipText("Foto der Hauptkarte erstellen"); jButton1.setMaximumSize(new java.awt.Dimension(30, 30)); jButton1.setMinimumSize(new java.awt.Dimension(30, 30)); jButton1.setPreferredSize(new java.awt.Dimension(30, 30)); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireCreateMapShotEvent(evt); } }); jEnableClipboardWatchButton.setBackground(new java.awt.Color(239, 235, 223)); jEnableClipboardWatchButton .setToolTipText("Suche nach Informationen in der Zwischenablage an-/ausschalten"); jEnableClipboardWatchButton.setMaximumSize(new java.awt.Dimension(30, 30)); jEnableClipboardWatchButton.setMinimumSize(new java.awt.Dimension(30, 30)); jEnableClipboardWatchButton.setPreferredSize(new java.awt.Dimension(30, 30)); jEnableClipboardWatchButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { fireChangeClipboardWatchEvent(evt); } }); javax.swing.GroupLayout jInformationPanelLayout = new javax.swing.GroupLayout(jInformationPanel); jInformationPanel.setLayout(jInformationPanelLayout); jInformationPanelLayout.setHorizontalGroup(jInformationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jInformationPanelLayout .createSequentialGroup().addContainerGap() .addGroup(jInformationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jCurrentPlayer, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE) .addComponent(jCurrentPlayerVillages, javax.swing.GroupLayout.Alignment.LEADING, 0, 227, Short.MAX_VALUE) .addGroup(jInformationPanelLayout.createSequentialGroup() .addComponent(jCurrentToolLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jOnlineLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE) .addComponent(jCenterIngameButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(4, 4, 4).addComponent(jEnableClipboardWatchButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); jInformationPanelLayout.setVerticalGroup(jInformationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jInformationPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jCurrentPlayer, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCurrentPlayerVillages, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jInformationPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCenterIngameButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCurrentToolLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jEnableClipboardWatchButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jOnlineLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("DS Workbench 0.92b"); setBackground(new java.awt.Color(225, 213, 190)); addComponentListener(new java.awt.event.ComponentAdapter() { public void componentResized(java.awt.event.ComponentEvent evt) { fireFrameResizedEvent(evt); } }); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { fireDSWorkbenchClosingEvent(evt); } }); jStatusPanel.setMaximumSize(new java.awt.Dimension(32, 30)); jStatusPanel.setLayout(new java.awt.BorderLayout()); capabilityInfoPanel1.setDeletable(false); capabilityInfoPanel1.setPastable(false); capabilityInfoPanel1.setSearchable(false); jStatusPanel.add(capabilityInfoPanel1, java.awt.BorderLayout.WEST); infoPanel.setAnimated(false); infoPanel.setCollapsed(true); infoPanel.setDirection(org.jdesktop.swingx.JXCollapsiblePane.Direction.LEFT); infoPanel.setInheritAlpha(false); infoPanel.setMaximumSize(new java.awt.Dimension(2147483647, 30)); jXLabel1.setText("jXLabel1"); jXLabel1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { fireHideNotificationEvent(evt); } }); infoPanel.add(jXLabel1, java.awt.BorderLayout.CENTER); jStatusPanel.add(infoPanel, java.awt.BorderLayout.LINE_END); jMapPanelHolder.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(128, 64, 0), 2)); jMapPanelHolder.setForeground(new java.awt.Color(240, 240, 240)); jMapPanelHolder.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jMapPanelHolder.setDoubleBuffered(false); jMapPanelHolder.setLayout(new java.awt.BorderLayout()); jMinimapPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(128, 64, 0), 2)); jMinimapPanel.setDoubleBuffered(false); jMinimapPanel.setLayout(new java.awt.BorderLayout()); jSettingsScrollPane.setFocusTraversalPolicyProvider(true); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jStatusPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE) .addComponent(jMapPanelHolder, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSettingsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMinimapPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addComponent(jMinimapPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent( jSettingsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 406, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addComponent(jMapPanelHolder, javax.swing.GroupLayout.DEFAULT_SIZE, 689, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jStatusPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))); getContentPane().add(jPanel4, java.awt.BorderLayout.CENTER); }
From source file:net.technicpack.launcher.ui.LauncherFrame.java
public LauncherFrame(final ResourceLoader resources, final ImageRepository<IUserType> skinRepository, final UserModel userModel, final TechnicSettings settings, final ModpackSelector modpackSelector, final ImageRepository<ModpackModel> iconRepo, final ImageRepository<ModpackModel> logoRepo, final ImageRepository<ModpackModel> backgroundRepo, final Installer installer, final ImageRepository<AuthorshipInfo> avatarRepo, final IPlatformApi platformApi, final LauncherDirectories directories, final IInstalledPackRepository packRepository, final StartupParameters params, final DiscoverInfoPanel discoverInfoPanel) { setSize(FRAME_WIDTH, FRAME_HEIGHT);//from ww w . j av a 2s. co m setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); this.userModel = userModel; this.skinRepository = skinRepository; this.settings = settings; this.modpackSelector = modpackSelector; this.iconRepo = iconRepo; this.logoRepo = logoRepo; this.backgroundRepo = backgroundRepo; this.installer = installer; this.avatarRepo = avatarRepo; this.platformApi = platformApi; this.directories = directories; this.packRepo = packRepository; this.params = params; this.discoverInfoPanel = discoverInfoPanel; //Handles rebuilding the frame, so use it to build the frame in the first place relocalize(resources); selectTab("discover"); EventQueue.invokeLater(new Runnable() { @Override public void run() { LauncherMain.consoleFrame.setVisible(settings.getShowConsole()); } }); setLocationRelativeTo(null); }
From source file:org.dc.file.search.ui.DashboardForm.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 w ww.jav a 2s . co m*/ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { txtSearchKey = new javax.swing.JTextField(); btnSearch = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); tblSearchResults = new javax.swing.JTable(); btnFilesList = new javax.swing.JButton(); btnPeersList = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); chkAdvancedSearch = new javax.swing.JCheckBox(); lblHopCount = new javax.swing.JLabel(); txtHopCount = new javax.swing.JTextField(); lblTimeout = new javax.swing.JLabel(); txtTimeoutSec = new javax.swing.JTextField(); lblSec = new javax.swing.JLabel(); progressBar = new javax.swing.JProgressBar(); sliderHopCount = new javax.swing.JSlider(); sliderTimout = new javax.swing.JSlider(); jLabel2 = new javax.swing.JLabel(); btnNewComment = new javax.swing.JButton(); jScrollPane3 = new javax.swing.JScrollPane(); tblComments = new javax.swing.JTable(); jScrollPane4 = new javax.swing.JScrollPane(); txtCommentThread = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); btnSearch.setText("Search"); btnSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSearchActionPerformed(evt); } }); tblSearchResults .setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null } }, new String[] { "Peer", "Hop Count", "File", "Ratings" })); jScrollPane1.setViewportView(tblSearchResults); btnFilesList.setText("Files List"); btnFilesList.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFilesListActionPerformed(evt); } }); btnPeersList.setText("Peers List"); btnPeersList.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPeersListActionPerformed(evt); } }); jLabel1.setText("File Name:"); chkAdvancedSearch.setText("Enable Advanced Search"); chkAdvancedSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { chkAdvancedSearchActionPerformed(evt); } }); lblHopCount.setLabelFor(txtHopCount); lblHopCount.setText("Hop Count:"); txtHopCount.setEditable(false); txtHopCount.setText("2"); txtHopCount.setToolTipText(""); lblTimeout.setLabelFor(txtTimeoutSec); lblTimeout.setText("Timeout:"); txtTimeoutSec.setEditable(false); txtTimeoutSec.setText("5"); lblSec.setText("sec"); sliderHopCount.setMaximum(20); sliderHopCount.setMinimum(2); sliderHopCount.setValue(2); sliderHopCount.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { sliderHopCountStateChanged(evt); } }); sliderTimout.setMaximum(60); sliderTimout.setMinimum(5); sliderTimout.setMinorTickSpacing(5); sliderTimout.setValue(5); sliderTimout.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { sliderTimoutStateChanged(evt); } }); jLabel2.setText("Comments"); btnNewComment.setText("New Comment"); btnNewComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnNewCommentActionPerformed(evt); } }); tblComments .setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null } }, new String[] { "Id", "Comment", "Ratings", "Reply" })); jScrollPane3.setViewportView(tblComments); if (tblComments.getColumnModel().getColumnCount() > 0) { tblComments.getColumnModel().getColumn(0).setPreferredWidth(250); } txtCommentThread.setColumns(20); txtCommentThread.setRows(5); jScrollPane4.setViewportView(txtCommentThread); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1) .addGroup(layout.createSequentialGroup().addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtSearchKey) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSearch)) .addGroup(layout .createSequentialGroup().addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnNewComment)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup().addComponent(btnFilesList) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPeersList)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup().addComponent(lblHopCount) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtHopCount, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sliderHopCount, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblTimeout) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTimeoutSec, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5).addComponent(lblSec) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(sliderTimout, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5)))) .addComponent(jScrollPane3).addGroup(layout.createSequentialGroup() .addComponent(chkAdvancedSearch).addGap(0, 0, Short.MAX_VALUE)) .addComponent(jScrollPane4)) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnSearch) .addComponent(txtSearchKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(chkAdvancedSearch) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblHopCount) .addComponent(txtHopCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblTimeout) .addComponent(txtTimeoutSec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblSec)) .addComponent(sliderHopCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sliderTimout, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnNewComment).addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnFilesList).addComponent(btnPeersList)) .addContainerGap())); pack(); }
From source file:org.jcurl.demo.zui.BroomPromptDemo.java
public static void main(final String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { final JFrame application = new JFrame(); application.setTitle("JCurl BroomPrompt"); application.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); final PCanvas pc = new PCanvas(); pc.setAnimatingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); pc.setInteractingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); // pc.getRoot().getDefaultInputManager().setKeyboardFocus( // new KeyboardZoom(pc.getCamera())); pc.setBackground(new Color(0xE8E8FF)); final PNode ice = new PIceFactory.Fancy().newInstance(); pc.getLayer().addChild(ice); application.getContentPane().add(pc); application.setSize(500, 800); application.setVisible(true); animateToBounds(pc.getCamera(), twelveP, 500); final BroomPromptSimple bp; ice.addChild(bp = new BroomPromptSimple()); final BroomPromptModel bpm; bp.setModel(bpm = new DefaultBroomPromptModel()); bpm.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(final PropertyChangeEvent evt) { // FIXME why doesn't fire this? log.info(evt);/*from w w w . j av a 2 s . c om*/ } }); bpm.getSplitTimeMillis().addChangeListener(new ChangeListener() { public void stateChanged(final ChangeEvent e) { log.info(e); } }); bpm.setIdx16(1); bpm.setOutTurn(false); bp.animateToPositionScaleRotation(1, 2, 1, -0.1 * Math.PI, 5000); } }); }
From source file:org.jspresso.framework.tools.viewtester.ViewTester.java
/** * Generates the component java source files. *//* ww w .ja v a2 s.co m*/ @SuppressWarnings("unchecked") public void displayView() { Locale locale; if (language != null) { locale = LocaleUtils.toLocale(language); } else { locale = Locale.getDefault(); } ApplicationContext appContext = getApplicationContext(); IViewDescriptor viewDescriptor = (IViewDescriptor) appContext.getBean(viewId); IFrontendController<JComponent, Icon, Action> mockFrontController = (IFrontendController<JComponent, Icon, Action>) appContext .getBean("applicationFrontController"); IBackendController mockBackController = (IBackendController) appContext .getBean("applicationBackController"); BackendControllerHolder.setSessionBackendController(mockBackController); mockFrontController.start(mockBackController, locale, TimeZone.getDefault()); IView<JComponent> view = mockFrontController.getViewFactory().createView(viewDescriptor, mockFrontController, locale); if (viewDescriptor.getModelDescriptor() != null) { IValueConnector modelConnector = mockBackController.createModelConnector( IValueConnector.MODEL_CONNECTOR_PROPERTY, viewDescriptor.getModelDescriptor()); IEntityFactory entityFactory = mockBackController.getEntityFactory(); modelConnector.setConnectorValue(entityFactory.createEntityInstance( ((IComponentDescriptor<IEntity>) viewDescriptor.getModelDescriptor()).getComponentContract())); mockFrontController.getMvcBinder().bind(view.getConnector(), modelConnector); } JFrame testFrame = new JFrame("View tester"); testFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); testFrame.getContentPane().setLayout(new BorderLayout()); testFrame.getContentPane().add(view.getPeer(), BorderLayout.CENTER); testFrame.pack(); testFrame.setSize(450, 300); System.setProperty("sun.awt.exception.handler", TesterExceptionHandler.class.getName()); SwingUtil.centerOnScreen(testFrame); testFrame.setVisible(true); }