List of usage examples for java.awt.event KeyEvent VK_X
int VK_X
To view the source code for java.awt.event KeyEvent VK_X.
Click Source Link
From source file:de.dmarcini.submatix.pclogger.gui.MainCommGUI.java
/** * Initialize the contents of the frame. * /* w ww. jav a2s . co m*/ * @throws ClassNotFoundException * @throws SQLException */ private void initializeGUI() throws SQLException, ClassNotFoundException { frmMainWindow = new JFrame(); frmMainWindow.setFont(new Font("Arial", Font.PLAIN, 12)); frmMainWindow.setSize(new Dimension(810, 600)); frmMainWindow.setResizable(false); frmMainWindow.setIconImage(Toolkit.getDefaultToolkit() .getImage(MainCommGUI.class.getResource("/de/dmarcini/submatix/pclogger/res/112.png"))); frmMainWindow.setTitle(LangStrings.getString("MainCommGUI.frmMainWindow.title")); //$NON-NLS-1$ frmMainWindow.setBounds(100, 100, 800, 600); frmMainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmMainWindow.getContentPane().setLayout(new BorderLayout(0, 0)); frmMainWindow.addWindowListener(new MainWindowListener()); statusTextField = new JTextField(); statusTextField.setEditable(false); statusTextField.setText("-"); frmMainWindow.getContentPane().add(statusTextField, BorderLayout.SOUTH); statusTextField.setColumns(10); tabbedPane = new JTabbedPane(JTabbedPane.TOP); frmMainWindow.getContentPane().add(tabbedPane, BorderLayout.CENTER); tabbedPane.addMouseMotionListener(this); // Connection Panel connectionPanel = new spx42ConnectPanel(databaseUtil); tabbedPane.addTab("CONNECTION", null, connectionPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_CONNECT.ordinal(), true); // config Panel configPanel = new spx42ConfigPanel(); tabbedPane.addTab("CONFIG", null, configPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_CONFIG.ordinal(), true); // GASPANEL gasConfigPanel = new spx42GaslistEditPanel(databaseUtil); tabbedPane.addTab("GAS", null, gasConfigPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_GASLIST.ordinal(), true); // Loglisten Panel logListPanel = new spx42LoglistPanel(this, databaseUtil); tabbedPane.addTab("LOG", null, logListPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_LOGREAD.ordinal(), true); // Grafik Panel logGraphPanel = new spx42LogGraphPanel(databaseUtil); tabbedPane.addTab("GRAPH", null, logGraphPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_LOGGRAPH.ordinal(), true); // import/export Panel fileManagerPanel = new spx42FileManagerPanel(this, databaseUtil); tabbedPane.addTab("EXPORT", null, fileManagerPanel, null); tabbedPane.setEnabledAt(programTabs.TAB_FILEMANAGER.ordinal(), true); // MEN JMenuBar menuBar = new JMenuBar(); frmMainWindow.setJMenuBar(menuBar); mnFile = new JMenu(LangStrings.getString("MainCommGUI.mnFile.text")); //$NON-NLS-1$ menuBar.add(mnFile); mntmExit = new JMenuItem(LangStrings.getString("MainCommGUI.mntmExit.text")); //$NON-NLS-1$ mntmExit.setIcon( new ImageIcon(MainCommGUI.class.getResource("/de/dmarcini/submatix/pclogger/res/176.png"))); mntmExit.setActionCommand("exit"); mntmExit.addActionListener(this); mntmExit.addMouseMotionListener(this); mntmExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK)); mnFile.add(mntmExit); mnLanguages = new JMenu(LangStrings.getString("MainCommGUI.mnLanguages.text")); //$NON-NLS-1$ mnLanguages.addMouseMotionListener(this); menuBar.add(mnLanguages); mnOptions = new JMenu(LangStrings.getString("MainCommGUI.mnOptions.text")); //$NON-NLS-1$ mnOptions.addMouseMotionListener(this); menuBar.add(mnOptions); mntmOptions = new JMenuItem(LangStrings.getString("MainCommGUI.mntmOptions.text")); //$NON-NLS-1$ mntmOptions.addMouseMotionListener(this); mntmOptions.addActionListener(this); mntmOptions.setActionCommand("set_propertys"); mnOptions.add(mntmOptions); mnHelp = new JMenu(LangStrings.getString("MainCommGUI.mnHelp.text")); //$NON-NLS-1$ mnHelp.addMouseMotionListener(this); menuBar.add(mnHelp); mntmHelp = new JMenuItem(LangStrings.getString("MainCommGUI.mntmHelp.text")); //$NON-NLS-1$ mntmHelp.addActionListener(this); mntmHelp.setActionCommand("help"); mntmHelp.addMouseMotionListener(this); mnHelp.add(mntmHelp); mntmInfo = new JMenuItem(LangStrings.getString("MainCommGUI.mntmInfo.text")); //$NON-NLS-1$ mntmInfo.addActionListener(this); mntmInfo.setActionCommand("info"); mntmInfo.addMouseMotionListener(this); mntmInfo.setIcon( new ImageIcon(MainCommGUI.class.getResource("/javax/swing/plaf/metal/icons/ocean/expanded.gif"))); mntmInfo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_MASK)); mnHelp.add(mntmInfo); }
From source file:org.sikuli.ide.SikuliIDE.java
private void initEditMenu() throws NoSuchMethodException { int scMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); _editMenu.setMnemonic(java.awt.event.KeyEvent.VK_E); JMenuItem undoItem = _editMenu.add(_undoAction); undoItem.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, scMask)); JMenuItem redoItem = _editMenu.add(_redoAction); redoItem.setAccelerator(//from w w w . j a va2 s. c o m KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, scMask | InputEvent.SHIFT_MASK)); _editMenu.addSeparator(); _editMenu.add(createMenuItem(_I("menuEditCut"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, scMask), new EditAction(EditAction.CUT))); _editMenu.add(createMenuItem(_I("menuEditCopy"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, scMask), new EditAction(EditAction.COPY))); _editMenu.add(createMenuItem(_I("menuEditPaste"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, scMask), new EditAction(EditAction.PASTE))); _editMenu.add(createMenuItem(_I("menuEditSelectAll"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, scMask), new EditAction(EditAction.SELECT_ALL))); if (!Settings.isMac10()) { _editMenu.addSeparator(); JMenu findMenu = new JMenu(_I("menuFind")); _findHelper = new FindAction(); findMenu.setMnemonic(KeyEvent.VK_F); findMenu.add(createMenuItem(_I("menuFindFind"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, scMask), new FindAction(FindAction.FIND))); findMenu.add(createMenuItem(_I("menuFindFindNext"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, scMask), new FindAction(FindAction.FIND_NEXT))); findMenu.add(createMenuItem(_I("menuFindFindPrev"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, scMask | InputEvent.SHIFT_MASK), new FindAction(FindAction.FIND_PREV))); _editMenu.add(findMenu); } _editMenu.addSeparator(); _editMenu.add(createMenuItem(_I("menuEditIndent"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, 0), new EditAction(EditAction.INDENT))); _editMenu.add(createMenuItem(_I("menuEditUnIndent"), KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, InputEvent.SHIFT_MASK), new EditAction(EditAction.UNINDENT))); }
From source file:org.jab.docsearch.DocSearch.java
private JToolBar createToolBar() { // tool bar/*from w ww .j a v a2 s. co m*/ JToolBar toolBar = new JToolBar(); // file open JButton buttonOpen = new JButton(new ImageIcon(getClass().getResource("/icons/fileopen.png"))); buttonOpen.setToolTipText(I18n.getString("tooltip.open")); buttonOpen.setActionCommand("ac_open"); buttonOpen.addActionListener(this); buttonOpen.setMnemonic(KeyEvent.VK_O); buttonOpen.setEnabled(!env.isWebStart()); // disable in WebStart toolBar.add(buttonOpen); // file save JButton buttonSave = new JButton(new ImageIcon(getClass().getResource("/icons/filesave.png"))); buttonSave.setToolTipText(I18n.getString("tooltip.save")); buttonSave.setActionCommand("ac_save"); buttonSave.addActionListener(this); buttonSave.setMnemonic(KeyEvent.VK_S); buttonSave.setEnabled(!env.isWebStart()); // disable in WebStart toolBar.add(buttonSave); toolBar.addSeparator(); // open browser JButton buttonBrowser = new JButton(new ImageIcon(getClass().getResource("/icons/html.png"))); buttonBrowser.setToolTipText(I18n.getString("tooltip.open_in_browser")); buttonBrowser.setActionCommand("ac_openinbrowser"); buttonBrowser.addActionListener(this); buttonBrowser.setMnemonic(KeyEvent.VK_E); buttonBrowser.setEnabled(!env.isWebStart()); // disable in WebStart toolBar.add(buttonBrowser); toolBar.addSeparator(); // home JButton buttonHome = new JButton(new ImageIcon(getClass().getResource("/icons/home.png"))); buttonHome.setToolTipText(I18n.getString("tooltip.home")); buttonHome.setActionCommand("ac_home"); buttonHome.addActionListener(this); buttonHome.setMnemonic(KeyEvent.VK_H); toolBar.add(buttonHome); // refresh JButton buttonRefresh = new JButton(new ImageIcon(getClass().getResource("/icons/refresh.png"))); buttonRefresh.setToolTipText(I18n.getString("tooltip.refresh")); buttonRefresh.setActionCommand("ac_refresh"); buttonRefresh.addActionListener(this); buttonRefresh.setMnemonic(KeyEvent.VK_L); toolBar.add(buttonRefresh); toolBar.addSeparator(); // result JButton buttonResult = new JButton(new ImageIcon(getClass().getResource("/icons/search_results.png"))); buttonResult.setToolTipText(I18n.getString("tooltip.results")); buttonResult.setActionCommand("ac_result"); buttonResult.addActionListener(this); buttonResult.setMnemonic(KeyEvent.VK_R); toolBar.add(buttonResult); toolBar.addSeparator(); // bookmark JButton buttonBookMark = new JButton(new ImageIcon(getClass().getResource("/icons/bookmark.png"))); buttonBookMark.setToolTipText(I18n.getString("tooltip.add_bookmark")); buttonBookMark.setActionCommand("ac_addbookmark"); buttonBookMark.addActionListener(this); buttonBookMark.setMnemonic(KeyEvent.VK_M); toolBar.add(buttonBookMark); toolBar.addSeparator(); // print JButton buttonPrint = new JButton(new ImageIcon(getClass().getResource("/icons/fileprint.png"))); buttonPrint.setToolTipText(I18n.getString("tooltip.print")); buttonPrint.setActionCommand("ac_print"); buttonPrint.addActionListener(this); buttonPrint.setMnemonic(KeyEvent.VK_P); toolBar.add(buttonPrint); toolBar.addSeparator(); // setting JButton buttonSetting = new JButton(new ImageIcon(getClass().getResource("/icons/configure.png"))); buttonSetting.setToolTipText(I18n.getString("tooltip.settings")); buttonSetting.setActionCommand("ac_settings"); buttonSetting.addActionListener(this); buttonSetting.setMnemonic(KeyEvent.VK_HOME); toolBar.add(buttonSetting); toolBar.addSeparator(); // stop buttonStop = new JButton(new ImageIcon(getClass().getResource("/icons/stop.png"))); buttonStop.setToolTipText(I18n.getString("tooltip.stop")); buttonStop.setActionCommand("ac_stop"); buttonStop.addActionListener(this); buttonStop.setMnemonic(KeyEvent.VK_X); toolBar.add(buttonStop); toolBar.addSeparator(); // toolBar.setFloatable(false); // finished return toolBar; }
From source file:nz.govt.natlib.ndha.manualdeposit.ManualDepositMain.java
private void initComponents() { sourceButtonGroup = new javax.swing.ButtonGroup(); mnuMain = new javax.swing.JMenuBar(); mnuFile = new javax.swing.JMenu(); mnuFileProperties = new javax.swing.JMenuItem(); mnuFileFavourites = new javax.swing.JMenu(); mnuFileSelectDirectory = new javax.swing.JMenuItem(); mnuManageStructMapFileDesc = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JSeparator(); mnuFileExit = new javax.swing.JMenuItem(); mnuTemplates = new javax.swing.JMenu(); mnuTemplatesSave = new javax.swing.JMenuItem(); mnuTemplatesDelete = new javax.swing.JMenuItem(); mnuTemplatesSaveShared = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JSeparator(); mnuTemplatesClear = new javax.swing.JMenuItem(); mnuView = new javax.swing.JMenu(); mnuViewShowSearch = new javax.swing.JCheckBoxMenuItem(); mnuViewShowMetaData = new javax.swing.JCheckBoxMenuItem(); jSeparator3 = new javax.swing.JSeparator(); mnuShowBulkLoad = new javax.swing.JMenuItem(); mnuHotKeys = new javax.swing.JMenu(); mnuHotKeysMenu = new javax.swing.JMenuItem(); mnuHotKeysSetIE = new javax.swing.JMenuItem(); mnuHotKeysSetEachFileIE = new javax.swing.JMenuItem(); mnuHotKeysUseFileForIE = new javax.swing.JMenuItem(); mnuHotKeysOpenFile = new javax.swing.JMenuItem(); mnuHotKeysStoreAsFavourite = new javax.swing.JMenuItem(); mnuHotKeysDigitalOriginal = new javax.swing.JMenuItem(); mnuHotKeysPreservationCopy = new javax.swing.JMenuItem(); mnuHotKeysModifiedMaster = new javax.swing.JMenuItem(); mnuHotKeysAccessCopy = new javax.swing.JMenuItem(); mnuHotKeysDelete = new javax.swing.JMenuItem(); mnuHotKeysMoveFileUp = new javax.swing.JMenuItem(); mnuHotKeysMoveFileDown = new javax.swing.JMenuItem(); mnuHotKeysMakeStruct = new javax.swing.JMenuItem(); mnuHotKeysSelectAllFiles = new javax.swing.JMenuItem(); mnuHotKeysAccessCopyHigh = new javax.swing.JMenuItem(); mnuHotKeysAccessCopyMedium = new javax.swing.JMenuItem(); mnuHotKeysAccessCopyLow = new javax.swing.JMenuItem(); mnuHotKeysAccessCopyEpub = new javax.swing.JMenuItem(); mnuHotKeysAccessCopyPdf = new javax.swing.JMenuItem(); mnuHelp = new javax.swing.JMenu(); mnuHelpContents = new javax.swing.JMenuItem(); mnuHelpAbout = new javax.swing.JMenuItem(); tabMain = new javax.swing.JTabbedPane(); pnlAddIE = new javax.swing.JPanel(); splitAddIE = new javax.swing.JSplitPane(); pnlCmsReference = new javax.swing.JPanel(); pnlSource = new javax.swing.JPanel(); rbnCMS2 = new javax.swing.JRadioButton(); rbnCMS1 = new javax.swing.JRadioButton(); rbnStaffMediated = new javax.swing.JRadioButton(); rbnNoCmsRef = new javax.swing.JRadioButton(); pnlSearchDetail = new javax.swing.JPanel(); pnlSelectProducer = new javax.swing.JPanel(); scrlProducerList = new javax.swing.JScrollPane(); lstProducers = new javax.swing.JList(); jLabel2 = new javax.swing.JLabel(); txtProducerFilter = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); lstMaterialFlow = new javax.swing.JList(); jLabel11 = new javax.swing.JLabel(); pnlSearch = new javax.swing.JPanel(); txtSearch1 = new javax.swing.JTextField(); lblSearch1 = new javax.swing.JLabel(); txtSearch2 = new javax.swing.JTextField(); lblSearch2 = new javax.swing.JLabel(); txtSearch3 = new javax.swing.JTextField(); lblSearch3 = new javax.swing.JLabel(); txtSearch4 = new javax.swing.JTextField(); lblSearch4 = new javax.swing.JLabel(); txtSearch5 = new javax.swing.JTextField(); lblSearch5 = new javax.swing.JLabel(); txtSearch6 = new javax.swing.JTextField(); lblSearch6 = new javax.swing.JLabel(); txtSearch7 = new javax.swing.JTextField(); lblSearch7 = new javax.swing.JLabel(); txtSearch8 = new javax.swing.JTextField(); lblSearch8 = new javax.swing.JLabel(); txtSearch9 = new javax.swing.JTextField(); lblSearch9 = new javax.swing.JLabel(); txtSearch10 = new javax.swing.JTextField(); lblSearch10 = new javax.swing.JLabel(); txtSearch11 = new javax.swing.JTextField(); lblSearch11 = new javax.swing.JLabel(); txtSearch12 = new javax.swing.JTextField(); lblSearch12 = new javax.swing.JLabel(); txtSearch13 = new javax.swing.JTextField(); lblSearch13 = new javax.swing.JLabel(); txtSearch14 = new javax.swing.JTextField(); lblSearch14 = new javax.swing.JLabel(); txtSearch15 = new javax.swing.JTextField(); lblSearch15 = new javax.swing.JLabel(); cmdDoSearch = new javax.swing.JButton(); pnlTrees = new javax.swing.JPanel(); splitMainDetail = new javax.swing.JSplitPane(); splitMain = new javax.swing.JSplitPane(); pnlFileSystem = new javax.swing.JPanel(); scrlFileSystem = new javax.swing.JScrollPane(); treeFileSystem = new javax.swing.JTree(); lblSelectFiles = new javax.swing.JLabel(); cmbSortBy = new javax.swing.JComboBox(); jLabel19 = new javax.swing.JLabel(); cmbFixityType = new javax.swing.JComboBox(); jLabel3 = new javax.swing.JLabel(); pnlEntity = new javax.swing.JPanel(); pnlRightSide = new javax.swing.JPanel(); splitMainRight = new javax.swing.JSplitPane(); pnlIntellectualEntity = new javax.swing.JPanel(); scrlEntities = new javax.swing.JScrollPane(); treeEntities = new javax.swing.JTree(); lblIE = new javax.swing.JLabel(); pnlStructMapParent = new javax.swing.JPanel(); pnlStructMap = new javax.swing.JPanel(); lblStructureMap = new javax.swing.JLabel(); scrlStructMap = new javax.swing.JScrollPane(); treeStructMap = new javax.swing.JTree(); jLabel21 = new javax.swing.JLabel(); cmbSelectStructTemplate = new javax.swing.JComboBox(); cmdSaveStructTemplate = new javax.swing.JButton(); cmdDeleteStructTemplate = new javax.swing.JButton(); cmdSaveSharedStructTemplate = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); pnlDetail = new javax.swing.JPanel(); scrlDetail = new javax.swing.JScrollPane(); tblDetail = new javax.swing.JTable(); jLabel4 = new javax.swing.JLabel(); cmbSelectTemplate = new javax.swing.JComboBox(); cmdSaveAsTemplate = new javax.swing.JButton(); cmdDeleteTemplate = new javax.swing.JButton(); cmdSaveAsSharedTemplate = new javax.swing.JButton(); cmdClearMetaData = new javax.swing.JButton(); pnlButtons = new javax.swing.JPanel(); cmdCancel = new javax.swing.JButton(); cmdLoad = new javax.swing.JButton(); cmdAddProvenanceNote = new javax.swing.JButton(); cmdCustomizeMetaData = new javax.swing.JButton(); lblNoOfIEs = new javax.swing.JLabel(); lblNoOfFiles = new javax.swing.JLabel(); jProgressBar1 = new javax.swing.JProgressBar(0, 100); pnlJobQueue = new javax.swing.JPanel(); mspJobQueue = new org.jdesktop.swingx.JXMultiSplitPane(); pnlJobQueueRunning = new javax.swing.JPanel(); scrlJobQueueRunning = new javax.swing.JScrollPane(); tblJobQueueRunning = new javax.swing.JTable(); pnlJobQueuePending = new javax.swing.JPanel(); scrlJobQueuePending = new javax.swing.JScrollPane(); tblJobQueuePending = new javax.swing.JTable(); pnlJobQueueFailed = new javax.swing.JPanel(); scrlJobQueueFailed = new javax.swing.JScrollPane(); tblJobQueueFailed = new javax.swing.JTable(); pnlJobQueueDeposited = new javax.swing.JPanel(); scrlJobQueueDeposited = new javax.swing.JScrollPane(); tblJobQueueDeposited = new javax.swing.JTable(); pnlJobQueueComplete = new javax.swing.JPanel(); scrlJobQueueComplete = new javax.swing.JScrollPane(); tblJobQueueComplete = new javax.swing.JTable(); mnuFile.setMnemonic('F'); mnuFile.setText("File"); mnuFileProperties.setMnemonic('P'); mnuFileProperties.setText("Properties"); mnuFileProperties.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuFilePropertiesActionPerformed(evt); }/*from w ww .java 2 s .c o m*/ }); mnuFile.add(mnuFileProperties); mnuFileFavourites.setText("Favourite Directories"); mnuFile.add(mnuFileFavourites); mnuFileSelectDirectory.setText("Find Directory"); mnuFileSelectDirectory.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuFileSelectDirectoryActionPerformed(evt); } }); mnuFile.add(mnuFileSelectDirectory); mnuManageStructMapFileDesc.setMnemonic('S'); mnuManageStructMapFileDesc.setText("Manage Structure Map File Descriptions"); mnuManageStructMapFileDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuManageStructMapFileDescActionPerformed(evt); } }); mnuFile.add(mnuManageStructMapFileDesc); mnuFile.add(jSeparator1); mnuFileExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.ALT_MASK)); mnuFileExit.setMnemonic('x'); mnuFileExit.setText("Exit"); mnuFileExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuFileExitActionPerformed(evt); } }); mnuFile.add(mnuFileExit); mnuMain.add(mnuFile); mnuTemplates.setMnemonic('T'); mnuTemplates.setText("Templates"); mnuTemplatesSave.setMnemonic('S'); mnuTemplatesSave.setText("Save Template"); mnuTemplatesSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuTemplatesSaveActionPerformed(evt); } }); mnuTemplates.add(mnuTemplatesSave); mnuTemplatesDelete.setMnemonic('D'); mnuTemplatesDelete.setText("Delete Template"); mnuTemplatesDelete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuTemplatesDeleteActionPerformed(evt); } }); mnuTemplates.add(mnuTemplatesDelete); mnuTemplatesSaveShared.setMnemonic('V'); mnuTemplatesSaveShared.setText("Save as Shared Template"); mnuTemplatesSaveShared.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuTemplatesSaveSharedActionPerformed(evt); } }); mnuTemplates.add(mnuTemplatesSaveShared); mnuTemplates.add(jSeparator2); mnuTemplatesClear.setMnemonic('C'); mnuTemplatesClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuTemplatesClearActionPerformed(evt); } }); mnuTemplates.add(mnuTemplatesClear); mnuMain.add(mnuTemplates); mnuView.setMnemonic('V'); mnuView.setText("View"); mnuViewShowSearch.setMnemonic('1'); mnuViewShowSearch.setSelected(true); mnuViewShowSearch.setText("Show Search (<Ctrl>S)"); mnuViewShowSearch.setActionCommand("Show Search (<ctrl>S)"); mnuViewShowSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuViewShowSearchActionPerformed(evt); } }); mnuView.add(mnuViewShowSearch); mnuViewShowMetaData.setMnemonic('2'); mnuViewShowMetaData.setSelected(true); mnuViewShowMetaData.setText("Show Metadata (<Ctrl>M)"); mnuViewShowMetaData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuViewShowMetaDataActionPerformed(evt); } }); mnuView.add(mnuViewShowMetaData); mnuView.add(jSeparator3); mnuShowBulkLoad.setText("Show Bulk Load Screen"); mnuShowBulkLoad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuShowBulkLoadActionPerformed(evt); } }); mnuView.add(mnuShowBulkLoad); mnuMain.add(mnuView); mnuHotKeys.setMnemonic('K'); mnuHotKeys.setText("Hot Keys"); mnuHotKeysMenu.setMnemonic('M'); mnuHotKeysMenu.setText("<Alt>M - Display File Menu"); mnuHotKeysMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysMenuActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysMenu); mnuHotKeysSetIE.setMnemonic('S'); mnuHotKeysSetIE.setText("<Alt>S - Select current directory as IE root"); mnuHotKeysSetIE.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysSetIEActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysSetIE); mnuHotKeysSetEachFileIE.setMnemonic('E'); mnuHotKeysSetEachFileIE.setText("<Alt>E - Make each file an IE"); mnuHotKeysSetEachFileIE.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysSetEachFileIEActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysSetEachFileIE); mnuHotKeysUseFileForIE.setMnemonic('S'); mnuHotKeysUseFileForIE.setText("<Alt>S - Select file to describe the IE"); mnuHotKeysUseFileForIE.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysUseFileForIEActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysUseFileForIE); mnuHotKeysOpenFile.setMnemonic('O'); mnuHotKeysOpenFile.setText("<Alt>O - Open Item(s)"); mnuHotKeysOpenFile.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysOpenFileActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysOpenFile); mnuHotKeysStoreAsFavourite.setMnemonic('F'); mnuHotKeysStoreAsFavourite.setText("<Alt> F - Store Directory As Favourite"); mnuHotKeysStoreAsFavourite.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysStoreAsFavouriteActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysStoreAsFavourite); mnuHotKeysDigitalOriginal.setMnemonic('D'); mnuHotKeysDigitalOriginal.setText("<Alt>D - Add selected files to a new Digital Original"); mnuHotKeysDigitalOriginal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysDigitalOriginalActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysDigitalOriginal); mnuHotKeysPreservationCopy.setMnemonic('P'); mnuHotKeysPreservationCopy.setText("<Alt>P - Add selected files to a new Preservation Copy"); mnuHotKeysPreservationCopy.setActionCommand("<Alt>P - Add selected files to a new Preservation Master"); mnuHotKeysPreservationCopy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysPreservationCopyActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysPreservationCopy); mnuHotKeysModifiedMaster.setMnemonic('M'); mnuHotKeysModifiedMaster.setText("<Alt>M - Add selected files to a new Modified Master"); mnuHotKeysModifiedMaster.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysModifiedMasterActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysModifiedMaster); mnuHotKeysAccessCopy.setMnemonic('A'); mnuHotKeysAccessCopy.setText("<Alt>A - Add selected files to a new Access Copy"); mnuHotKeysAccessCopy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopy); mnuHotKeysDelete.setMnemonic('L'); mnuHotKeysDelete.setText("<Delete> - Delete file or folder"); mnuHotKeysDelete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysDeleteActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysDelete); mnuHotKeysMoveFileUp.setMnemonic('U'); mnuHotKeysMoveFileUp.setText("<Alt>Up - Move file up"); mnuHotKeysMoveFileUp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysMoveFileUpActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysMoveFileUp); mnuHotKeysMoveFileDown.setMnemonic('D'); mnuHotKeysMoveFileDown.setText("<Alt>Down - Move file down"); mnuHotKeysMoveFileDown.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysMoveFileDownActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysMoveFileDown); mnuHotKeysMakeStruct.setMnemonic('S'); mnuHotKeysMakeStruct.setText("<Alt>S - Create a Structure Map item from selected files"); mnuHotKeysMakeStruct.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysMakeStructActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysMakeStruct); mnuHotKeysSelectAllFiles.setMnemonic('R'); mnuHotKeysSelectAllFiles .setText("<Alt>R - Select the same file from all representation types & make a struct item"); mnuHotKeysSelectAllFiles.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysSelectAllFilesActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysSelectAllFiles); mnuHotKeysAccessCopyHigh.setMnemonic('H'); mnuHotKeysAccessCopyHigh.setText("<Alt>H - Add selected files to a new Access Copy HIGH"); mnuHotKeysAccessCopyHigh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyHighActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopyHigh); mnuHotKeysAccessCopyMedium.setMnemonic('I'); mnuHotKeysAccessCopyMedium.setText("<Alt>I - Add selected files to a new Access Copy MEDIUM"); mnuHotKeysAccessCopyMedium.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyMediumActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopyMedium); mnuHotKeysAccessCopyLow.setMnemonic('L'); mnuHotKeysAccessCopyLow.setText("<Alt>L - Add selected files to a new Access Copy LOW"); mnuHotKeysAccessCopyLow.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyLowActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopyLow); mnuHotKeysAccessCopyEpub.setMnemonic('B'); mnuHotKeysAccessCopyEpub.setText("<Alt>B - Add selected files to a new Access Copy EPUB"); mnuHotKeysAccessCopyEpub.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyEpubActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopyEpub); mnuHotKeysAccessCopyPdf.setMnemonic('C'); mnuHotKeysAccessCopyPdf.setText("<Alt>C - Add selected files to a new Access Copy PDF"); mnuHotKeysAccessCopyPdf.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHotKeysAccessCopyPdfActionPerformed(evt); } }); mnuHotKeys.add(mnuHotKeysAccessCopyPdf); mnuMain.add(mnuHotKeys); mnuHelp.setMnemonic('H'); mnuHelp.setText("Help"); mnuHelpContents.setMnemonic('C'); mnuHelpContents.setText("Contents"); mnuHelpContents.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHelpContentsActionPerformed(evt); } }); mnuHelp.add(mnuHelpContents); mnuHelpAbout.setMnemonic('A'); mnuHelpAbout.setText("About"); mnuHelpAbout.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mnuHelpAboutActionPerformed(evt); } }); mnuHelp.add(mnuHelpAbout); mnuMain.add(mnuHelp); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); //setTitle(title); setName("frmMain"); // NOI18N addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); tabMain.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); pnlAddIE.setFont(new java.awt.Font("Tahoma", 0, 5)); // NOI18N splitAddIE.setDividerLocation(175); splitAddIE.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); pnlCmsReference.setBorder(javax.swing.BorderFactory.createTitledBorder("CMS Reference")); pnlCmsReference.setName("pnlCMSReference"); // NOI18N pnlCmsReference.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { pnlCmsReferenceFocusGained(evt); } }); pnlSource.setBorder(javax.swing.BorderFactory.createTitledBorder("Source")); sourceButtonGroup.add(rbnCMS2); rbnCMS2.setSelected(true); rbnCMS2.setText("Tapuhi"); rbnCMS2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); rbnCMS2.setMargin(new java.awt.Insets(0, 0, 0, 0)); rbnCMS2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rbnCMS2SearchTypeChanged(evt); } }); sourceButtonGroup.add(rbnCMS1); rbnCMS1.setText("CMS1"); rbnCMS1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); rbnCMS1.setMargin(new java.awt.Insets(0, 0, 0, 0)); rbnCMS1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rbnCMS1SearchTypeChanged(evt); } }); sourceButtonGroup.add(rbnStaffMediated); rbnStaffMediated.setText("Staff Mediated"); rbnStaffMediated.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); rbnStaffMediated.setMargin(new java.awt.Insets(0, 0, 0, 0)); rbnStaffMediated.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rbnStaffMediatedActionPerformed(evt); } }); sourceButtonGroup.add(rbnNoCmsRef); rbnNoCmsRef.setText("Currently no CMS reference"); rbnNoCmsRef.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); rbnNoCmsRef.setMargin(new java.awt.Insets(0, 0, 0, 0)); rbnNoCmsRef.setName("rbnNoCmsRef"); // NOI18N rbnNoCmsRef.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rbnNoCmsRefSearchTypeChanged(evt); } }); org.jdesktop.layout.GroupLayout pnlSourceLayout = new org.jdesktop.layout.GroupLayout(pnlSource); pnlSource.setLayout(pnlSourceLayout); pnlSourceLayout .setHorizontalGroup(pnlSourceLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSourceLayout.createSequentialGroup().addContainerGap() .add(pnlSourceLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(rbnCMS2).add(rbnCMS1).add(rbnNoCmsRef).add(rbnStaffMediated)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); pnlSourceLayout .setVerticalGroup(pnlSourceLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSourceLayout.createSequentialGroup().add(rbnCMS2) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(rbnCMS1).add(4, 4, 4) .add(rbnStaffMediated).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(rbnNoCmsRef).addContainerGap(15, Short.MAX_VALUE))); pnlSearchDetail.setLayout(new java.awt.CardLayout()); pnlSelectProducer.setBorder(javax.swing.BorderFactory.createTitledBorder("Select Producer")); pnlSelectProducer.setMaximumSize(null); lstProducers.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { lstProducersValueChanged(evt); } }); lstProducers.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { lstProducersMouseReleased(evt); } }); scrlProducerList.setViewportView(lstProducers); jLabel2.setText("Filter"); txtProducerFilter.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtProducerFilterUpdate(evt); } }); lstMaterialFlow.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { lstMaterialFlowValueChanged(evt); } }); jScrollPane1.setViewportView(lstMaterialFlow); jLabel11.setText("Select Material Flow"); org.jdesktop.layout.GroupLayout pnlSelectProducerLayout = new org.jdesktop.layout.GroupLayout( pnlSelectProducer); pnlSelectProducer.setLayout(pnlSelectProducerLayout); pnlSelectProducerLayout.setHorizontalGroup(pnlSelectProducerLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSelectProducerLayout.createSequentialGroup().addContainerGap().add(pnlSelectProducerLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSelectProducerLayout.createSequentialGroup().add(jLabel2) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED).add(txtProducerFilter, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)) .add(scrlProducerList, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 254, Short.MAX_VALUE)) .add(18, 18, 18) .add(pnlSelectProducerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSelectProducerLayout.createSequentialGroup().add(jLabel11).add(174, 174, 174)) .add(pnlSelectProducerLayout .createSequentialGroup().add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 286, Short.MAX_VALUE) .addContainerGap())))); pnlSelectProducerLayout.setVerticalGroup(pnlSelectProducerLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSelectProducerLayout.createSequentialGroup() .add(pnlSelectProducerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel2).add(jLabel11).add(txtProducerFilter, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSelectProducerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE) .add(scrlProducerList, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)) .addContainerGap())); pnlSearchDetail.add(pnlSelectProducer, "SelectProducer"); pnlSearch.setBorder(javax.swing.BorderFactory.createTitledBorder("Search for")); txtSearch1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch1.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch1.setText("jLabel3"); txtSearch2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch2.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch2.setText("jLabel3"); txtSearch3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch3.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch3.setText("jLabel3"); txtSearch4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch4.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch4.setText("jLabel3"); txtSearch5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch5.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch5.setText("jLabel3"); txtSearch6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch6.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch6.setText("jLabel3"); txtSearch7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch7.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch7.setText("jLabel3"); txtSearch8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch8.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch8.setText("jLabel3"); txtSearch9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch9.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch9.setText("jLabel3"); txtSearch10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch10.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch10.setText("jLabel3"); txtSearch11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch11.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch11.setText("jLabel3"); txtSearch12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch12.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch12.setText("jLabel3"); txtSearch13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch13.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch13.setText("jLabel3"); txtSearch14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch14.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch14.setText("jLabel3"); txtSearch15.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); txtSearch15.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { ManualDepositMain.this.caretUpdate(evt); } }); lblSearch15.setText("jLabel3"); cmdDoSearch.setText("Search"); cmdDoSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { doSearch(evt); } }); org.jdesktop.layout.GroupLayout pnlSearchLayout = new org.jdesktop.layout.GroupLayout(pnlSearch); pnlSearch.setLayout(pnlSearchLayout); pnlSearchLayout.setHorizontalGroup(pnlSearchLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSearchLayout.createSequentialGroup().addContainerGap() .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblSearch3).add(lblSearch2).add(lblSearch1).add(lblSearch4)) .add(18, 18, 18) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(txtSearch4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblSearch8).add(lblSearch7).add(lblSearch6).add(lblSearch5)) .add(24, 24, 24) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(txtSearch8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE) .add(txtSearch5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblSearch12).add(lblSearch9).add(lblSearch10).add(lblSearch11)) .add(24, 24, 24) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(txtSearch12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE) .add(txtSearch11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE) .add(txtSearch10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE) .add(txtSearch9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(cmdDoSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 89, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, pnlSearchLayout.createSequentialGroup().add(lblSearch15).add(24, 24, 24) .add(txtSearch15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)) .add(pnlSearchLayout.createSequentialGroup().add(lblSearch13).add(24, 24, 24).add( txtSearch13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)) .add(pnlSearchLayout.createSequentialGroup().add(lblSearch14).add(24, 24, 24).add( txtSearch14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))) .addContainerGap())); pnlSearchLayout.setVerticalGroup(pnlSearchLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSearchLayout.createSequentialGroup().add(pnlSearchLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSearchLayout.createSequentialGroup().add(pnlSearchLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(lblSearch1) .add(txtSearch1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch2).add(txtSearch2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch3).add(txtSearch3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(pnlSearchLayout.createSequentialGroup() .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch5) .add(txtSearch5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(txtSearch9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lblSearch9)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch6) .add(txtSearch6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lblSearch10).add(txtSearch10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch7) .add(txtSearch7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lblSearch11).add(txtSearch11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch8).add(lblSearch4) .add(txtSearch8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(lblSearch12) .add(txtSearch12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(txtSearch4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlSearchLayout.createSequentialGroup() .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch13).add(txtSearch13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch14).add(txtSearch14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSearch15).add(txtSearch15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE) .add(cmdDoSearch))) .addContainerGap())); pnlSearchDetail.add(pnlSearch, "Search"); org.jdesktop.layout.GroupLayout pnlCmsReferenceLayout = new org.jdesktop.layout.GroupLayout( pnlCmsReference); pnlCmsReference.setLayout(pnlCmsReferenceLayout); pnlCmsReferenceLayout.setHorizontalGroup( pnlCmsReferenceLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlCmsReferenceLayout.createSequentialGroup() .add(pnlSource, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlSearchDetail, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); pnlCmsReferenceLayout.setVerticalGroup(pnlCmsReferenceLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlCmsReferenceLayout.createSequentialGroup() .add(pnlCmsReferenceLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlSource, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(pnlSearchDetail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 145, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(24, 24, 24))); splitAddIE.setLeftComponent(pnlCmsReference); pnlCmsReference.getAccessibleContext().setAccessibleName("CMS Reference Search"); pnlTrees.setBorder(javax.swing.BorderFactory.createTitledBorder("Intellectual Entity")); pnlTrees.setAutoscrolls(true); pnlTrees.setName("pnlIntellectualEntity"); // NOI18N splitMainDetail.setDividerLocation(200); splitMainDetail.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); splitMainDetail.setContinuousLayout(true); splitMainDetail.setDoubleBuffered(true); splitMain.setDividerLocation(200); pnlFileSystem.setPreferredSize(new java.awt.Dimension(400, 100)); treeFileSystem.setAutoscrolls(true); treeFileSystem.setDoubleBuffered(true); treeFileSystem.addTreeExpansionListener(new javax.swing.event.TreeExpansionListener() { public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt) { } public void treeExpanded(javax.swing.event.TreeExpansionEvent evt) { treeFileSystemTreeExpanded(evt); } }); treeFileSystem.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() { public void valueChanged(javax.swing.event.TreeSelectionEvent evt) { treeFileSystemValueChanged(evt); } }); treeFileSystem.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { fileSystemFocusGained(evt); } }); treeFileSystem.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { treeFileSystemKeyPressed(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { treeFileSystemKeyTyped(evt); } }); treeFileSystem.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { treeFileSystemMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { treeFileSystemMouseEntered(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { treeFileSystemMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { treeFileSystemMouseReleased(evt); } }); scrlFileSystem.setViewportView(treeFileSystem); lblSelectFiles.setText("Select File(s)"); cmbSortBy.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cmbSortBy.setMinimumSize(new java.awt.Dimension(70, 18)); cmbSortBy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmbSortByActionPerformed(evt); } }); cmbSortBy.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); jLabel19.setText("Sort by"); cmbFixityType.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cmbFixityType.setMinimumSize(new java.awt.Dimension(70, 18)); jLabel3.setText("Fixity"); org.jdesktop.layout.GroupLayout pnlFileSystemLayout = new org.jdesktop.layout.GroupLayout(pnlFileSystem); pnlFileSystem.setLayout(pnlFileSystemLayout); pnlFileSystemLayout.setHorizontalGroup(pnlFileSystemLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(scrlFileSystem) .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlFileSystemLayout.createSequentialGroup() .add(pnlFileSystemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(pnlFileSystemLayout.createSequentialGroup().add(lblSelectFiles).add(35, 35, 35) .add(jLabel19)) .add(jLabel3)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlFileSystemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, cmbFixityType, 0, 64, Short.MAX_VALUE) .add(cmbSortBy, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))); pnlFileSystemLayout.setVerticalGroup(pnlFileSystemLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlFileSystemLayout.createSequentialGroup() .add(pnlFileSystemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblSelectFiles).add(jLabel19).add(cmbSortBy, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(4, 4, 4) .add(pnlFileSystemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cmbFixityType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel3)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(scrlFileSystem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE))); splitMain.setLeftComponent(pnlFileSystem); splitMainRight.setDividerLocation(200); pnlIntellectualEntity.setPreferredSize(new java.awt.Dimension(400, 500)); treeEntities.setToolTipText(""); treeEntities.setDoubleBuffered(true); treeEntities.setEditable(true); treeEntities.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { treeEntitiesMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { treeEntitiesMouseEntered(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { treeEntitiesMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { treeEntitiesMouseReleased(evt); } }); treeEntities.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() { public void valueChanged(javax.swing.event.TreeSelectionEvent evt) { treeEntitiesValueChanged(evt); } }); treeEntities.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { entitiesFocusGained(evt); } }); treeEntities.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { treeEntitiesKeyPressed(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { treeEntitiesKeyTyped(evt); } }); scrlEntities.setViewportView(treeEntities); lblIE.setText("Intellectual Entity"); org.jdesktop.layout.GroupLayout pnlIntellectualEntityLayout = new org.jdesktop.layout.GroupLayout( pnlIntellectualEntity); pnlIntellectualEntity.setLayout(pnlIntellectualEntityLayout); pnlIntellectualEntityLayout.setHorizontalGroup( pnlIntellectualEntityLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlIntellectualEntityLayout.createSequentialGroup().addContainerGap().add(lblIE) .addContainerGap(105, Short.MAX_VALUE)) .add(scrlEntities, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)); pnlIntellectualEntityLayout.setVerticalGroup(pnlIntellectualEntityLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlIntellectualEntityLayout.createSequentialGroup().add(lblIE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(scrlEntities, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE))); splitMainRight.setLeftComponent(pnlIntellectualEntity); pnlStructMap.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); pnlStructMap.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { structMapFocusGained(evt); } }); lblStructureMap.setText("Structure Map"); treeStructMap.setToolTipText(""); treeStructMap.setDoubleBuffered(true); treeStructMap.setEditable(true); treeStructMap.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() { public void valueChanged(javax.swing.event.TreeSelectionEvent evt) { treeStructMapValueChanged(evt); } }); treeStructMap.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { structMapFocusGained(evt); } }); treeStructMap.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { treeStructMapKeyPressed(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { treeStructMapKeyTyped(evt); } }); treeStructMap.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { treeStructMapMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { treeStructMapMouseEntered(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { treeStructMapMouseReleased(evt); } }); scrlStructMap.setViewportView(treeStructMap); jLabel21.setText("Select"); cmbSelectStructTemplate.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cmbSelectStructTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmbSelectStructTemplateActionPerformed(evt); } }); cmbSelectStructTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdSaveStructTemplate.setText("Save"); cmdSaveStructTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdSaveStructTemplateActionPerformed(evt); } }); cmdSaveStructTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdDeleteStructTemplate.setText("Delete"); cmdDeleteStructTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdDeleteStructTemplateActionPerformed(evt); } }); cmdDeleteStructTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdSaveSharedStructTemplate.setText("Save Shared"); cmdSaveSharedStructTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdSaveSharedStructTemplateActionPerformed(evt); } }); cmdSaveSharedStructTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); jLabel1.setText("Templates"); org.jdesktop.layout.GroupLayout pnlStructMapLayout = new org.jdesktop.layout.GroupLayout(pnlStructMap); pnlStructMap.setLayout(pnlStructMapLayout); pnlStructMapLayout.setHorizontalGroup(pnlStructMapLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlStructMapLayout.createSequentialGroup().add(pnlStructMapLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlStructMapLayout.createSequentialGroup().addContainerGap().add(cmdSaveStructTemplate) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdDeleteStructTemplate) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdSaveSharedStructTemplate)) .add(pnlStructMapLayout.createSequentialGroup().add(pnlStructMapLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlStructMapLayout.createSequentialGroup().addContainerGap() .add(pnlStructMapLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblStructureMap).add(jLabel1))) .add(pnlStructMapLayout.createSequentialGroup().add(84, 84, 84).add(jLabel21))) .add(18, 18, 18).add(cmbSelectStructTemplate, 0, 358, Short.MAX_VALUE))) .addContainerGap()) .add(scrlStructMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 499, Short.MAX_VALUE)); pnlStructMapLayout.setVerticalGroup(pnlStructMapLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlStructMapLayout.createSequentialGroup().add(lblStructureMap) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(pnlStructMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel1).add(jLabel21).add(cmbSelectStructTemplate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(pnlStructMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cmdSaveStructTemplate).add(cmdDeleteStructTemplate) .add(cmdSaveSharedStructTemplate)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(scrlStructMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE))); org.jdesktop.layout.GroupLayout pnlStructMapParentLayout = new org.jdesktop.layout.GroupLayout( pnlStructMapParent); pnlStructMapParent.setLayout(pnlStructMapParentLayout); pnlStructMapParentLayout.setHorizontalGroup( pnlStructMapParentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlStructMapParentLayout.createSequentialGroup().addContainerGap().add(pnlStructMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); pnlStructMapParentLayout.setVerticalGroup( pnlStructMapParentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, pnlStructMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); splitMainRight.setRightComponent(pnlStructMapParent); org.jdesktop.layout.GroupLayout pnlRightSideLayout = new org.jdesktop.layout.GroupLayout(pnlRightSide); pnlRightSide.setLayout(pnlRightSideLayout); pnlRightSideLayout .setHorizontalGroup(pnlRightSideLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(splitMainRight, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 717, Short.MAX_VALUE)); pnlRightSideLayout .setVerticalGroup(pnlRightSideLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(splitMainRight, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)); org.jdesktop.layout.GroupLayout pnlEntityLayout = new org.jdesktop.layout.GroupLayout(pnlEntity); pnlEntity.setLayout(pnlEntityLayout); pnlEntityLayout .setHorizontalGroup(pnlEntityLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlEntityLayout.createSequentialGroup().addContainerGap().add(pnlRightSide, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); pnlEntityLayout.setVerticalGroup( pnlEntityLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(pnlRightSide, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); splitMain.setRightComponent(pnlEntity); splitMainDetail.setLeftComponent(splitMain); scrlDetail.setBackground(new java.awt.Color(255, 255, 255)); tblDetail .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" })); tblDetail.setOpaque(false); tblDetail.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { metaDatalFocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { tblDetailFocusLost(evt); } }); scrlDetail.setViewportView(tblDetail); jLabel4.setText("Select Template"); cmbSelectTemplate.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cmbSelectTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmbSelectTemplateActionPerformed(evt); } }); cmbSelectTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmbSelectTemplate.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { cmbSelectTemplateKeyPressed(evt); } public void keyReleased(java.awt.event.KeyEvent evt) { cmbSelectTemplateKeyReleased(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { cmbSelectTemplateKeyTyped(evt); } }); cmdSaveAsTemplate.setText("Save Template"); cmdSaveAsTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdSaveAsTemplateActionPerformed(evt); } }); cmdSaveAsTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdDeleteTemplate.setText("Delete Template"); cmdDeleteTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdDeleteTemplateActionPerformed(evt); } }); cmdDeleteTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdSaveAsSharedTemplate.setText("Save Shared Template"); cmdSaveAsSharedTemplate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdSaveAsSharedTemplateActionPerformed(evt); } }); cmdSaveAsSharedTemplate.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdClearMetaData.setText("Clear Metadata"); cmdClearMetaData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdClearMetaDataActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout pnlDetailLayout = new org.jdesktop.layout.GroupLayout(pnlDetail); pnlDetail.setLayout(pnlDetailLayout); pnlDetailLayout .setHorizontalGroup(pnlDetailLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlDetailLayout.createSequentialGroup().add(jLabel4) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmbSelectTemplate, 0, 347, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdDeleteTemplate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 113, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdSaveAsTemplate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 105, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdSaveAsSharedTemplate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 145, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(18, 18, 18).add(cmdClearMetaData)) .add(scrlDetail, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 933, Short.MAX_VALUE)); pnlDetailLayout .setVerticalGroup(pnlDetailLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlDetailLayout.createSequentialGroup() .add(pnlDetailLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel4).add(cmdClearMetaData) .add(cmdSaveAsSharedTemplate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(cmbSelectTemplate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(cmdDeleteTemplate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(cmdSaveAsTemplate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(scrlDetail, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE))); splitMainDetail.setBottomComponent(pnlDetail); cmdCancel.setText("Cancel"); cmdCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdCancelActionPerformed(evt); } }); cmdCancel.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdLoad.setText("Load Entity"); cmdLoad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdLoadActionPerformed(evt); } }); cmdLoad.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { notSpecifiedFocusGained(evt); } }); cmdAddProvenanceNote.setText("Edit Provenance Notes"); cmdAddProvenanceNote.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdAddProvenanceNoteActionPerformed(evt); } }); cmdCustomizeMetaData.setText("Customize MetaData"); cmdCustomizeMetaData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdCustomizeMetaDataActionPerformed(evt); } }); lblNoOfIEs.setText("No of IEs"); lblNoOfFiles.setText("No of Files"); jProgressBar1.setValue(0); org.jdesktop.layout.GroupLayout pnlButtonsLayout = new org.jdesktop.layout.GroupLayout(pnlButtons); pnlButtons.setLayout(pnlButtonsLayout); pnlButtonsLayout .setHorizontalGroup(pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlButtonsLayout.createSequentialGroup().addContainerGap().add(cmdCancel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cmdLoad, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 89, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(59, 59, 59).add(cmdAddProvenanceNote).add(18, 18, 18) .add(cmdCustomizeMetaData, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 152, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(18, 18, 18) .add(lblNoOfIEs, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(18, 18, 18) .add(lblNoOfFiles, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 7, Short.MAX_VALUE) .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap())); pnlButtonsLayout.setVerticalGroup(pnlButtonsLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlButtonsLayout.createSequentialGroup().add(12, 12, 12) .add(pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlButtonsLayout.createSequentialGroup().add(1, 1, 1).add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cmdCancel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(cmdLoad, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(cmdAddProvenanceNote).add(cmdCustomizeMetaData).add(lblNoOfIEs) .add(lblNoOfFiles))))); org.jdesktop.layout.GroupLayout pnlTreesLayout = new org.jdesktop.layout.GroupLayout(pnlTrees); pnlTrees.setLayout(pnlTreesLayout); pnlTreesLayout .setHorizontalGroup(pnlTreesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(splitMainDetail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .add(pnlButtons, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); pnlTreesLayout.setVerticalGroup(pnlTreesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlTreesLayout.createSequentialGroup().add(splitMainDetail) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(pnlButtons, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))); splitAddIE.setRightComponent(pnlTrees); org.jdesktop.layout.GroupLayout pnlAddIELayout = new org.jdesktop.layout.GroupLayout(pnlAddIE); pnlAddIE.setLayout(pnlAddIELayout); pnlAddIELayout.setHorizontalGroup(pnlAddIELayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlAddIELayout.createSequentialGroup().addContainerGap() .add(splitAddIE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 803, Short.MAX_VALUE) .addContainerGap())); pnlAddIELayout.setVerticalGroup(pnlAddIELayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlAddIELayout.createSequentialGroup() .add(splitAddIE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE) .addContainerGap())); tabMain.addTab("Add Intellectual Entity", pnlAddIE); pnlJobQueue.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); mspJobQueue.setDividerSize(2); mspJobQueue.setMinimumSize(new java.awt.Dimension(100, 100)); mspJobQueue.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { mspJobQueueMouseDragged(evt); } }); pnlJobQueueRunning.setBorder(javax.swing.BorderFactory.createTitledBorder("Running Jobs")); tblJobQueueRunning .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" })); tblJobQueueRunning.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); tblJobQueueRunning.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { tblJobQueueRunningMouseReleased(evt); } }); scrlJobQueueRunning.setViewportView(tblJobQueueRunning); org.jdesktop.layout.GroupLayout pnlJobQueueRunningLayout = new org.jdesktop.layout.GroupLayout( pnlJobQueueRunning); pnlJobQueueRunning.setLayout(pnlJobQueueRunningLayout); pnlJobQueueRunningLayout.setHorizontalGroup( pnlJobQueueRunningLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueRunning, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)); pnlJobQueueRunningLayout.setVerticalGroup( pnlJobQueueRunningLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueRunning, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)); mspJobQueue.add(pnlJobQueueRunning); pnlJobQueuePending.setBorder(javax.swing.BorderFactory.createTitledBorder("Pending Jobs")); tblJobQueuePending .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" })); tblJobQueuePending.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); tblJobQueuePending.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { tblJobQueuePendingMouseReleased(evt); } }); scrlJobQueuePending.setViewportView(tblJobQueuePending); org.jdesktop.layout.GroupLayout pnlJobQueuePendingLayout = new org.jdesktop.layout.GroupLayout( pnlJobQueuePending); pnlJobQueuePending.setLayout(pnlJobQueuePendingLayout); pnlJobQueuePendingLayout.setHorizontalGroup( pnlJobQueuePendingLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueuePending, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)); pnlJobQueuePendingLayout.setVerticalGroup( pnlJobQueuePendingLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueuePending, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)); mspJobQueue.add(pnlJobQueuePending); pnlJobQueueFailed.setBorder(javax.swing.BorderFactory.createTitledBorder("Failed Jobs")); tblJobQueueFailed .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" })); tblJobQueueFailed.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); tblJobQueueFailed.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { tblJobQueueFailedMouseReleased(evt); } }); scrlJobQueueFailed.setViewportView(tblJobQueueFailed); org.jdesktop.layout.GroupLayout pnlJobQueueFailedLayout = new org.jdesktop.layout.GroupLayout( pnlJobQueueFailed); pnlJobQueueFailed.setLayout(pnlJobQueueFailedLayout); pnlJobQueueFailedLayout.setHorizontalGroup( pnlJobQueueFailedLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueFailed, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)); pnlJobQueueFailedLayout.setVerticalGroup( pnlJobQueueFailedLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueFailed, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)); mspJobQueue.add(pnlJobQueueFailed); pnlJobQueueDeposited.setBorder(javax.swing.BorderFactory.createTitledBorder("Deposited Jobs")); tblJobQueueDeposited .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" })); tblJobQueueDeposited.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); tblJobQueueDeposited.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { tblJobQueueDepositedMouseReleased(evt); } }); scrlJobQueueDeposited.setViewportView(tblJobQueueDeposited); org.jdesktop.layout.GroupLayout pnlJobQueueDepositedLayout = new org.jdesktop.layout.GroupLayout( pnlJobQueueDeposited); pnlJobQueueDeposited.setLayout(pnlJobQueueDepositedLayout); pnlJobQueueDepositedLayout.setHorizontalGroup( pnlJobQueueDepositedLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueDeposited, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)); pnlJobQueueDepositedLayout.setVerticalGroup( pnlJobQueueDepositedLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueDeposited, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)); mspJobQueue.add(pnlJobQueueDeposited); pnlJobQueueComplete.setBorder(javax.swing.BorderFactory.createTitledBorder("Complete Jobs")); tblJobQueueComplete .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" })); tblJobQueueComplete.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jobQueueFocusGained(evt); } }); tblJobQueueComplete.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent evt) { tblJobQueueCompleteMouseReleased(evt); } }); scrlJobQueueComplete.setViewportView(tblJobQueueComplete); org.jdesktop.layout.GroupLayout pnlJobQueueCompleteLayout = new org.jdesktop.layout.GroupLayout( pnlJobQueueComplete); pnlJobQueueComplete.setLayout(pnlJobQueueCompleteLayout); pnlJobQueueCompleteLayout.setHorizontalGroup( pnlJobQueueCompleteLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueComplete, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)); pnlJobQueueCompleteLayout.setVerticalGroup( pnlJobQueueCompleteLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( scrlJobQueueComplete, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)); mspJobQueue.add(pnlJobQueueComplete); org.jdesktop.layout.GroupLayout pnlJobQueueLayout = new org.jdesktop.layout.GroupLayout(pnlJobQueue); pnlJobQueue.setLayout(pnlJobQueueLayout); pnlJobQueueLayout.setHorizontalGroup(pnlJobQueueLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlJobQueueLayout.createSequentialGroup().addContainerGap() .add(mspJobQueue, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 803, Short.MAX_VALUE) .addContainerGap())); pnlJobQueueLayout.setVerticalGroup(pnlJobQueueLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(pnlJobQueueLayout.createSequentialGroup().addContainerGap() .add(mspJobQueue, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE) .addContainerGap())); tabMain.addTab("Job Queue", pnlJobQueue); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(tabMain)); layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(tabMain)); pack(); }
From source file:org.domainmath.gui.MainFrame.java
/** This method is called from within the constructor to * initialize the form.//w w w.ja va 2 s. co m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jToolBar1 = new javax.swing.JToolBar(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jSeparator4 = new javax.swing.JToolBar.Separator(); connectButton = new javax.swing.JButton(); disconnectButton = new javax.swing.JButton(); jSeparator9 = new javax.swing.JToolBar.Separator(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jSeparator15 = new javax.swing.JToolBar.Separator(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jSeparator13 = new javax.swing.JToolBar.Separator(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); dirComboBox = new javax.swing.JComboBox(); folderUpButton = new javax.swing.JButton(); browseButton = new javax.swing.JButton(); addButton = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newFileItem = new javax.swing.JMenuItem(); openItem = new javax.swing.JMenuItem(); jSeparator17 = new javax.swing.JPopupMenu.Separator(); saveFileItem = new javax.swing.JMenuItem(); saveAsItem = new javax.swing.JMenuItem(); savePlotItem = new javax.swing.JMenuItem(); saveAllItem = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); printFileItem = new javax.swing.JMenuItem(); printItem = new javax.swing.JMenuItem(); jSeparator19 = new javax.swing.JPopupMenu.Separator(); preferencesItem = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JPopupMenu.Separator(); connectItem = new javax.swing.JMenuItem(); disconnectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JPopupMenu.Separator(); exitItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); undoItem = new javax.swing.JMenuItem(); redoItem = new javax.swing.JMenuItem(); jSeparator20 = new javax.swing.JPopupMenu.Separator(); cutItem = new javax.swing.JMenuItem(); copyItem = new javax.swing.JMenuItem(); pasteItem = new javax.swing.JMenuItem(); jSeparator21 = new javax.swing.JPopupMenu.Separator(); deleteItem = new javax.swing.JMenuItem(); selectAllItem = new javax.swing.JMenuItem(); jSeparator22 = new javax.swing.JPopupMenu.Separator(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jSeparator23 = new javax.swing.JPopupMenu.Separator(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jSeparator24 = new javax.swing.JPopupMenu.Separator(); jMenuItem6 = new javax.swing.JMenuItem(); jMenuItem1 = new javax.swing.JMenuItem(); jSeparator11 = new javax.swing.JPopupMenu.Separator(); clearOutWindowItem = new javax.swing.JMenuItem(); jMenu3 = new javax.swing.JMenu(); consoleItem = new javax.swing.JMenuItem(); historyItem = new javax.swing.JMenuItem(); filesItem = new javax.swing.JMenuItem(); workspaceItem = new javax.swing.JMenuItem(); codeEditorItem = new javax.swing.JMenuItem(); pathsItem = new javax.swing.JMenuItem(); pkgsItem = new javax.swing.JMenuItem(); arrayEditItem = new javax.swing.JMenuItem(); jMenuItem7 = new javax.swing.JMenuItem(); jMenu1 = new javax.swing.JMenu(); findItem = new javax.swing.JMenuItem(); replaceItem = new javax.swing.JMenuItem(); gotoItem = new javax.swing.JMenuItem(); jSeparator25 = new javax.swing.JPopupMenu.Separator(); googleItem = new javax.swing.JMenuItem(); wikiItem = new javax.swing.JMenuItem(); pkgMenu = new javax.swing.JMenu(); debugMenu = new javax.swing.JMenu(); runScriptItem = new javax.swing.JMenuItem(); runScriptCItem = new javax.swing.JMenuItem(); jMenuItem8 = new javax.swing.JMenuItem(); jSeparator8 = new javax.swing.JPopupMenu.Separator(); debugScriptMenuItem = new javax.swing.JMenuItem(); testScriptMenuItem = new javax.swing.JMenuItem(); toggleBreakpointItem = new javax.swing.JMenuItem(); removeToggleBreakpointItem = new javax.swing.JMenuItem(); clearAllBreakpointsItem = new javax.swing.JMenuItem(); jSeparator10 = new javax.swing.JPopupMenu.Separator(); stepItem = new javax.swing.JMenuItem(); stepInItem = new javax.swing.JMenuItem(); stepOutItem = new javax.swing.JMenuItem(); continueItem = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JPopupMenu.Separator(); finishDebugItem = new javax.swing.JMenuItem(); toolsMenu = new javax.swing.JMenu(); fltkplotItem = new javax.swing.JMenuItem(); octaveCmdItem = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); previousWindowItem = new javax.swing.JMenuItem(); nextWindowItem = new javax.swing.JMenuItem(); jSeparator29 = new javax.swing.JPopupMenu.Separator(); closeItem = new javax.swing.JMenuItem(); closeAllItem = new javax.swing.JMenuItem(); jSeparator18 = new javax.swing.JPopupMenu.Separator(); windowsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); forumItem = new javax.swing.JMenuItem(); octaveInfoItem = new javax.swing.JMenuItem(); jSeparator12 = new javax.swing.JPopupMenu.Separator(); quickHelpItem = new javax.swing.JMenuItem(); jMenuItem9 = new javax.swing.JMenuItem(); docPkgItem = new javax.swing.JMenuItem(); referenceMenu = new javax.swing.JMenu(); referenceItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JPopupMenu.Separator(); checkForUpdatesMenuItem = new javax.swing.JMenuItem(); onlineHelpItem = new javax.swing.JMenuItem(); faqItem = new javax.swing.JMenuItem(); jSeparator14 = new javax.swing.JPopupMenu.Separator(); reportBugItem = new javax.swing.JMenuItem(); feedBackItem = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JPopupMenu.Separator(); AboutItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle .getBundle("org/domainmath/gui/resources/DomainMath_en"); // NOI18N setTitle(bundle.getString("DomainMath.title")); // NOI18N addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jToolBar1.setRollover(true); jToolBar1.setName("Standard"); // NOI18N jButton1.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-new.png"))); // NOI18N jButton1.setFocusable(false); jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jToolBar1.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-open.png"))); // NOI18N jButton2.setFocusable(false); jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jToolBar1.add(jButton2); jButton3.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-save-all.png"))); // NOI18N jButton3.setFocusable(false); jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jToolBar1.add(jButton3); jToolBar1.add(jSeparator4); connectButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/connect.png"))); // NOI18N connectButton.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("connectItem.mnemonic").charAt(0)); connectButton.setToolTipText(bundle.getString("connectItem.tooltip")); // NOI18N connectButton.setFocusable(false); connectButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); connectButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); connectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { connectButtonActionPerformed(evt); } }); jToolBar1.add(connectButton); disconnectButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/disconnect.png"))); // NOI18N disconnectButton .setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("disconnectItem.mnemonic").charAt(0)); disconnectButton.setToolTipText(bundle.getString("disconnectItem.tooltip")); // NOI18N disconnectButton.setFocusable(false); disconnectButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); disconnectButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); disconnectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { disconnectButtonActionPerformed(evt); } }); jToolBar1.add(disconnectButton); jToolBar1.add(jSeparator9); jButton4.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-undo.png"))); // NOI18N jButton4.setFocusable(false); jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jToolBar1.add(jButton4); jButton5.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-redo.png"))); // NOI18N jButton5.setFocusable(false); jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jToolBar1.add(jButton5); jToolBar1.add(jSeparator15); jButton6.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-cut.png"))); // NOI18N jButton6.setFocusable(false); jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jToolBar1.add(jButton6); jButton7.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-copy.png"))); // NOI18N jButton7.setFocusable(false); jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); jToolBar1.add(jButton7); jButton8.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-paste.png"))); // NOI18N jButton8.setFocusable(false); jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); jToolBar1.add(jButton8); jToolBar1.add(jSeparator13); jLabel1.setText("Current Directory:"); dirComboBox.setEditable(true); dirComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { dirComboBoxItemStateChanged(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(1, 1, 1).addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(dirComboBox, 0, 112, Short.MAX_VALUE).addGap(1, 1, 1))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(5, 5, 5).addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1) .addComponent(dirComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(3, 3, 3))); jToolBar1.add(jPanel1); folderUpButton.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/size22x22/go-up.png"))); // NOI18N folderUpButton.setToolTipText("Up"); folderUpButton.setFocusable(false); folderUpButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); folderUpButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); folderUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { folderUpButtonActionPerformed(evt); } }); jToolBar1.add(folderUpButton); browseButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/document-open.png"))); // NOI18N browseButton.setToolTipText(bundle.getString("browseButton.title")); // NOI18N browseButton.setFocusable(false); browseButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); browseButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); browseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseButtonActionPerformed(evt); } }); jToolBar1.add(browseButton); addButton.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/size22x22/edit-add.png"))); // NOI18N addButton.setToolTipText(bundle.getString("addButton.title")); // NOI18N addButton.setFocusable(false); addButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); addButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); jToolBar1.add(addButton); getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); fileMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("fileMenu.mnemonic").charAt(0)); fileMenu.setText(bundle.getString("fileMenu.name")); // NOI18N newFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK)); newFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-new.png"))); // NOI18N newFileItem.setText("New"); newFileItem.setToolTipText(bundle.getString("newMenuItem.tooltip")); // NOI18N newFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newFileItemActionPerformed(evt); } }); fileMenu.add(newFileItem); openItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK)); openItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-open.png"))); // NOI18N openItem.setText("Open..."); openItem.setToolTipText("Open File"); openItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openItemActionPerformed(evt); } }); fileMenu.add(openItem); fileMenu.add(jSeparator17); saveFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); saveFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-save.png"))); // NOI18N saveFileItem.setText("Save "); saveFileItem.setToolTipText(bundle.getString("saveMenuItem.tooltp")); // NOI18N saveFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveFileItemActionPerformed(evt); } }); fileMenu.add(saveFileItem); saveAsItem.setText("Save As..."); saveAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveAsItemActionPerformed(evt); } }); fileMenu.add(saveAsItem); savePlotItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("savePlotItem.mnemonic").charAt(0)); savePlotItem.setText(bundle.getString("savePlotItem.name")); // NOI18N savePlotItem.setToolTipText(bundle.getString("savePlotItem.tooltip")); // NOI18N savePlotItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { savePlotItemActionPerformed(evt); } }); fileMenu.add(savePlotItem); saveAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); saveAllItem.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/document-save-all.png"))); // NOI18N saveAllItem.setText(bundle.getString("saveAllMenuItem.text")); // NOI18N saveAllItem.setToolTipText(bundle.getString("saveAllMenuItem.tooltip")); // NOI18N saveAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveAllItemActionPerformed(evt); } }); fileMenu.add(saveAllItem); fileMenu.add(jSeparator1); printFileItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK)); printFileItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/document-print2.png"))); // NOI18N printFileItem.setText("Print"); printFileItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { printFileItemActionPerformed(evt); } }); fileMenu.add(printFileItem); printItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); printItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("printItem.mnemonic").charAt(0)); printItem.setText(bundle.getString("printItem.name")); // NOI18N printItem.setToolTipText(bundle.getString("printItem.tooltip")); // NOI18N printItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { printItemActionPerformed(evt); } }); fileMenu.add(printItem); fileMenu.add(jSeparator19); preferencesItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/preferences.png"))); // NOI18N preferencesItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("preferecesItem.mnemonic").charAt(0)); preferencesItem.setText(bundle.getString("preferencesItem.name")); // NOI18N preferencesItem.setToolTipText(bundle.getString("preferencesItem.tooltip")); // NOI18N preferencesItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { preferencesItemActionPerformed(evt); } }); fileMenu.add(preferencesItem); fileMenu.add(jSeparator2); connectItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/connect.png"))); // NOI18N connectItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("connectItem.mnemonic").charAt(0)); connectItem.setText(bundle.getString("connectItem.name")); // NOI18N connectItem.setToolTipText(bundle.getString("connectItem.tooltip")); // NOI18N connectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { connectItemActionPerformed(evt); } }); fileMenu.add(connectItem); disconnectItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/disconnect.png"))); // NOI18N disconnectItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("disconnectItem.mnemonic").charAt(0)); disconnectItem.setText(bundle.getString("disconnectItem.name")); // NOI18N disconnectItem.setToolTipText(bundle.getString("disconnectItem.tooltip")); // NOI18N disconnectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { disconnectItemActionPerformed(evt); } }); fileMenu.add(disconnectItem); fileMenu.add(jSeparator3); exitItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("exitItem.mnemonic").charAt(0)); exitItem.setText(bundle.getString("exitItem.name")); // NOI18N exitItem.setToolTipText(bundle.getString("exitItem.tooltip")); // NOI18N exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); jMenuBar1.add(fileMenu); editMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("editMenu.mnemonic").charAt(0)); editMenu.setText("Edit"); undoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK)); undoItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-undo.png"))); // NOI18N undoItem.setText("Undo"); undoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { undoItemActionPerformed(evt); } }); editMenu.add(undoItem); redoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK)); redoItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-redo.png"))); // NOI18N redoItem.setText("Redo"); redoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { redoItemActionPerformed(evt); } }); editMenu.add(redoItem); editMenu.add(jSeparator20); cutItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK)); cutItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-cut.png"))); // NOI18N cutItem.setText("Cut"); cutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cutItemActionPerformed(evt); } }); editMenu.add(cutItem); copyItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK)); copyItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-copy.png"))); // NOI18N copyItem.setText("Copy"); copyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { copyItemActionPerformed(evt); } }); editMenu.add(copyItem); pasteItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK)); pasteItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-paste.png"))); // NOI18N pasteItem.setText("Paste"); pasteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pasteItemActionPerformed(evt); } }); editMenu.add(pasteItem); editMenu.add(jSeparator21); deleteItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-delete.png"))); // NOI18N deleteItem.setText("Delete"); deleteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteItemActionPerformed(evt); } }); editMenu.add(deleteItem); selectAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK)); selectAllItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-select-all.png"))); // NOI18N selectAllItem.setText("Select All"); selectAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selectAllItemActionPerformed(evt); } }); editMenu.add(selectAllItem); editMenu.add(jSeparator22); jMenuItem2.setAction(new RSyntaxTextAreaEditorKit.InsertTabAction()); jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem2.setText("Increase Indent"); editMenu.add(jMenuItem2); jMenuItem3.setAction(new RSyntaxTextAreaEditorKit.DecreaseIndentAction()); jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, java.awt.event.InputEvent.SHIFT_MASK)); jMenuItem3.setText("Decrease Indent"); editMenu.add(jMenuItem3); editMenu.add(jSeparator23); jMenuItem4.setAction(new RTextAreaEditorKit.UpperSelectionCaseAction()); jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem4.setText("Make Uppercase"); editMenu.add(jMenuItem4); jMenuItem5.setAction(new RTextAreaEditorKit.LowerSelectionCaseAction()); jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); jMenuItem5.setText("Make Lowercase"); editMenu.add(jMenuItem5); editMenu.add(jSeparator24); jMenuItem6.setText("Clear All Marks..."); jMenuItem6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem6ActionPerformed(evt); } }); editMenu.add(jMenuItem6); jMenuItem1.setAction(new RSyntaxTextAreaEditorKit.ToggleCommentAction()); jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SLASH, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem1.setText("Toggle Comment"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); editMenu.add(jMenuItem1); editMenu.add(jSeparator11); clearOutWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.CTRL_MASK)); clearOutWindowItem .setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("clearOutputWindowItem.mnemonic").charAt(0)); clearOutWindowItem.setText(bundle.getString("clearOutputWindowItem.name")); // NOI18N clearOutWindowItem.setToolTipText(bundle.getString("clearOutputWindowItem.tooltip")); // NOI18N clearOutWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clearOutWindowItemActionPerformed(evt); } }); editMenu.add(clearOutWindowItem); jMenuBar1.add(editMenu); jMenu3.setText(bundle.getString("viewMenu.title")); // NOI18N consoleItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_0, java.awt.event.InputEvent.CTRL_MASK)); consoleItem.setText(bundle.getString("consoleItem.title")); // NOI18N consoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { consoleItemActionPerformed(evt); } }); jMenu3.add(consoleItem); historyItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.CTRL_MASK)); historyItem.setText(bundle.getString("historyItem.title")); // NOI18N historyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { historyItemActionPerformed(evt); } }); jMenu3.add(historyItem); filesItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.CTRL_MASK)); filesItem.setText(bundle.getString("filesItem.title")); // NOI18N filesItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { filesItemActionPerformed(evt); } }); jMenu3.add(filesItem); workspaceItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.CTRL_MASK)); workspaceItem.setText(bundle.getString("worksaceItem.title")); // NOI18N workspaceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { workspaceItemActionPerformed(evt); } }); jMenu3.add(workspaceItem); codeEditorItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_4, java.awt.event.InputEvent.CTRL_MASK)); codeEditorItem.setText(bundle.getString("codeEditorItem.title")); // NOI18N codeEditorItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { codeEditorItemActionPerformed(evt); } }); jMenu3.add(codeEditorItem); pathsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_5, java.awt.event.InputEvent.CTRL_MASK)); pathsItem.setText(bundle.getString("setPathsItem.title")); // NOI18N pathsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pathsItemActionPerformed(evt); } }); jMenu3.add(pathsItem); pkgsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_6, java.awt.event.InputEvent.CTRL_MASK)); pkgsItem.setText(bundle.getString("pkgsItem.title")); // NOI18N pkgsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pkgsItemActionPerformed(evt); } }); jMenu3.add(pkgsItem); arrayEditItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_7, java.awt.event.InputEvent.CTRL_MASK)); arrayEditItem.setText(bundle.getString("arrayEidtorItem.title")); // NOI18N arrayEditItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { arrayEditItemActionPerformed(evt); } }); jMenu3.add(arrayEditItem); jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_8, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem7.setText("Debugger Window"); jMenuItem7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem7ActionPerformed(evt); } }); jMenu3.add(jMenuItem7); jMenuBar1.add(jMenu3); jMenu1.setMnemonic('S'); jMenu1.setText("Search"); findItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK)); findItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/edit-find.png"))); // NOI18N findItem.setMnemonic('F'); findItem.setText("Find..."); findItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findItemActionPerformed(evt); } }); jMenu1.add(findItem); replaceItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK)); replaceItem.setIcon(new javax.swing.ImageIcon( getClass().getResource("/org/domainmath/gui/icons/edit-find-replace.png"))); // NOI18N replaceItem.setText("Replace..."); replaceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { replaceItemActionPerformed(evt); } }); jMenu1.add(replaceItem); gotoItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); gotoItem.setText("Go To..."); gotoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { gotoItemActionPerformed(evt); } }); jMenu1.add(gotoItem); jMenu1.add(jSeparator25); googleItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK)); googleItem.setText("Google Search"); googleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { googleItemActionPerformed(evt); } }); jMenu1.add(googleItem); wikiItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); wikiItem.setText("Wikipedia Search"); wikiItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wikiItemActionPerformed(evt); } }); jMenu1.add(wikiItem); jMenuBar1.add(jMenu1); pkgMenu.setText(bundle.getString("pkgMenu.name")); // NOI18N jMenuBar1.add(pkgMenu); debugMenu.setText("Debug"); runScriptItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0)); runScriptItem .setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/Run.png"))); // NOI18N runScriptItem.setText("Run Script"); runScriptItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { runScriptItemActionPerformed(evt); } }); debugMenu.add(runScriptItem); runScriptCItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, java.awt.event.InputEvent.SHIFT_MASK)); runScriptCItem.setText("Run Script from Console"); runScriptCItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { runScriptCItemActionPerformed(evt); } }); debugMenu.add(runScriptCItem); jMenuItem8.setText("Edit Run Configuration"); jMenuItem8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem8ActionPerformed(evt); } }); debugMenu.add(jMenuItem8); debugMenu.add(jSeparator8); debugScriptMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.CTRL_MASK)); debugScriptMenuItem.setText("Debug Script"); debugScriptMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { debugScriptMenuItemActionPerformed(evt); } }); debugMenu.add(debugScriptMenuItem); testScriptMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); testScriptMenuItem.setText("Test Script"); testScriptMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { testScriptMenuItemActionPerformed(evt); } }); debugMenu.add(testScriptMenuItem); toggleBreakpointItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, 0)); toggleBreakpointItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/resources/stop.png"))); // NOI18N toggleBreakpointItem.setText("Toggle Breakpoint"); toggleBreakpointItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { toggleBreakpointItemActionPerformed(evt); } }); debugMenu.add(toggleBreakpointItem); removeToggleBreakpointItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, java.awt.event.InputEvent.SHIFT_MASK)); removeToggleBreakpointItem.setText("Remove Toggle Breakpoint"); removeToggleBreakpointItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeToggleBreakpointItemActionPerformed(evt); } }); debugMenu.add(removeToggleBreakpointItem); clearAllBreakpointsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); clearAllBreakpointsItem.setText("Clear All Breakpoints..."); clearAllBreakpointsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clearAllBreakpointsItemActionPerformed(evt); } }); debugMenu.add(clearAllBreakpointsItem); debugMenu.add(jSeparator10); stepItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F10, java.awt.event.InputEvent.SHIFT_MASK)); stepItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step.png"))); // NOI18N stepItem.setText("Step"); stepItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepItemActionPerformed(evt); } }); debugMenu.add(stepItem); stepInItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F11, 0)); stepInItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step-in.png"))); // NOI18N stepInItem.setText("Step in"); stepInItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepInItemActionPerformed(evt); } }); debugMenu.add(stepInItem); stepOutItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F11, java.awt.event.InputEvent.SHIFT_MASK)); stepOutItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/step-out.png"))); // NOI18N stepOutItem.setText("Step out"); stepOutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stepOutItemActionPerformed(evt); } }); debugMenu.add(stepOutItem); continueItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F8, 0)); continueItem.setText("Continue"); continueItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { continueItemActionPerformed(evt); } }); debugMenu.add(continueItem); debugMenu.add(jSeparator5); finishDebugItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.SHIFT_MASK)); finishDebugItem .setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/finish.png"))); // NOI18N finishDebugItem.setText("Finish Debugger Session"); finishDebugItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { finishDebugItemActionPerformed(evt); } }); debugMenu.add(finishDebugItem); jMenuBar1.add(debugMenu); toolsMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("ToolsMenu.mnemonic").charAt(0)); toolsMenu.setText(bundle.getString("ToolsMenu.name")); // NOI18N fltkplotItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); fltkplotItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("fltkPlotItem.mnemonic").charAt(0)); fltkplotItem.setText(bundle.getString("fltkPlotItem.name")); // NOI18N fltkplotItem.setToolTipText(bundle.getString("fltkPlotItem.tooltip")); // NOI18N fltkplotItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fltkplotItemActionPerformed(evt); } }); toolsMenu.add(fltkplotItem); octaveCmdItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("octaveCmdItem.mnemonic").charAt(0)); octaveCmdItem.setText(bundle.getString("octaveCmdItem.name")); // NOI18N octaveCmdItem.setToolTipText(bundle.getString("octaveCmdItem.tooltip")); // NOI18N octaveCmdItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { octaveCmdItemActionPerformed(evt); } }); toolsMenu.add(octaveCmdItem); jMenuBar1.add(toolsMenu); jMenu2.setText(bundle.getString("windowMenu.title")); // NOI18N previousWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_PAGE_DOWN, java.awt.event.InputEvent.CTRL_MASK)); previousWindowItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/go-previous.png"))); // NOI18N previousWindowItem.setText(bundle.getString("previousWindowItem.title")); // NOI18N previousWindowItem.setToolTipText(bundle.getString("previousWindowItem.tooltip")); // NOI18N previousWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { previousWindowItemActionPerformed(evt); } }); jMenu2.add(previousWindowItem); nextWindowItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_PAGE_UP, java.awt.event.InputEvent.CTRL_MASK)); nextWindowItem.setIcon( new javax.swing.ImageIcon(getClass().getResource("/org/domainmath/gui/icons/go-next.png"))); // NOI18N nextWindowItem.setText(bundle.getString("nextWindowItem.title")); // NOI18N nextWindowItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nextWindowItemActionPerformed(evt); } }); jMenu2.add(nextWindowItem); jMenu2.add(jSeparator29); closeItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK)); closeItem.setText(bundle.getString("closeMenuItem.name")); // NOI18N closeItem.setToolTipText(bundle.getString("closeItem.tooltip")); // NOI18N closeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeItemActionPerformed(evt); } }); jMenu2.add(closeItem); closeAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK)); closeAllItem.setText(bundle.getString("closeAllItem.name")); // NOI18N closeAllItem.setToolTipText(bundle.getString("closeAllItem.tooltip")); // NOI18N closeAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeAllItemActionPerformed(evt); } }); jMenu2.add(closeAllItem); jMenu2.add(jSeparator18); windowsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.SHIFT_MASK)); windowsItem.setText(bundle.getString("windowsItem.title")); // NOI18N windowsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { windowsItemActionPerformed(evt); } }); jMenu2.add(windowsItem); jMenuBar1.add(jMenu2); helpMenu.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("helpMenu.mnemonic").charAt(0)); helpMenu.setText(bundle.getString("helpMenu.name")); // NOI18N forumItem.setText("Forum"); forumItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { forumItemActionPerformed(evt); } }); helpMenu.add(forumItem); octaveInfoItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("octInfoItem.mnemonic").charAt(0)); octaveInfoItem.setText(bundle.getString("octInfoItem.name")); // NOI18N octaveInfoItem.setToolTipText(bundle.getString("octInfoItem.tooltip")); // NOI18N octaveInfoItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { octaveInfoItemActionPerformed(evt); } }); helpMenu.add(octaveInfoItem); helpMenu.add(jSeparator12); quickHelpItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); quickHelpItem.setText(bundle.getString("quickHelpItem.name")); // NOI18N quickHelpItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { quickHelpItemActionPerformed(evt); } }); helpMenu.add(quickHelpItem); jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, java.awt.event.InputEvent.SHIFT_MASK)); jMenuItem9.setText("Package Documentation"); jMenuItem9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem9ActionPerformed(evt); } }); helpMenu.add(jMenuItem9); docPkgItem.setText("Package Online Documentation"); docPkgItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { docPkgItemActionPerformed(evt); } }); helpMenu.add(docPkgItem); referenceMenu.setText(bundle.getString("referencesMenu.name")); // NOI18N helpMenu.add(referenceMenu); referenceItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("addReferencesItem.mnemonic").charAt(0)); referenceItem.setText(bundle.getString("addReferencesItem.name")); // NOI18N referenceItem.setToolTipText(bundle.getString("addReferencesItem.tooltip")); // NOI18N referenceItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { referenceItemActionPerformed(evt); } }); helpMenu.add(referenceItem); helpMenu.add(jSeparator6); checkForUpdatesMenuItem.setText(bundle.getString("checkForUpdatesMenuItem.text")); // NOI18N checkForUpdatesMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { checkForUpdatesMenuItemActionPerformed(evt); } }); helpMenu.add(checkForUpdatesMenuItem); onlineHelpItem.setText("Help and Support"); onlineHelpItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { onlineHelpItemActionPerformed(evt); } }); helpMenu.add(onlineHelpItem); faqItem.setText("Online FAQ"); faqItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { faqItemActionPerformed(evt); } }); helpMenu.add(faqItem); helpMenu.add(jSeparator14); reportBugItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("reportBugItem.mnemonic").charAt(0)); reportBugItem.setText(bundle.getString("reportBugItem.name")); // NOI18N reportBugItem.setToolTipText(bundle.getString("reportBugItem.tooltip")); // NOI18N reportBugItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reportBugItemActionPerformed(evt); } }); helpMenu.add(reportBugItem); feedBackItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("yourFeedbackItem.mnemonic").charAt(0)); feedBackItem.setText(bundle.getString("yourFeedbackItem.name")); // NOI18N feedBackItem.setToolTipText(bundle.getString("yourFeedbackItem.tooltip")); // NOI18N feedBackItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { feedBackItemActionPerformed(evt); } }); helpMenu.add(feedBackItem); helpMenu.add(jSeparator7); AboutItem.setMnemonic(java.util.ResourceBundle.getBundle("org/domainmath/gui/resources/DomainMath_en") .getString("aboutItem.mnemonic").charAt(0)); AboutItem.setText(bundle.getString("aboutItem.name")); // NOI18N AboutItem.setToolTipText(bundle.getString("aboutItem.tooltip")); // NOI18N AboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AboutItemActionPerformed(evt); } }); helpMenu.add(AboutItem); jMenuBar1.add(helpMenu); setJMenuBar(jMenuBar1); pack(); }
From source file:org.forester.archaeopteryx.TreePanel.java
final private void keyPressedCalls(final KeyEvent e) { if (isOvOn() && (getMousePosition() != null) && (getMousePosition().getLocation() != null)) { if (inOvVirtualRectangle(getMousePosition().x, getMousePosition().y)) { if (!isInOvRect()) { setInOvRect(true);/*from w w w .j ava 2s .c om*/ } } else if (isInOvRect()) { setInOvRect(false); } } if (e.getModifiersEx() == InputEvent.CTRL_DOWN_MASK) { if ((e.getKeyCode() == KeyEvent.VK_DELETE) || (e.getKeyCode() == KeyEvent.VK_HOME) || (e.getKeyCode() == KeyEvent.VK_F)) { getMainPanel().getTreeFontSet().mediumFonts(); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(true); } else if ((e.getKeyCode() == KeyEvent.VK_SUBTRACT) || (e.getKeyCode() == KeyEvent.VK_MINUS)) { getMainPanel().getTreeFontSet().decreaseFontSize(); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(true); } else if (plusPressed(e.getKeyCode())) { getMainPanel().getTreeFontSet().increaseFontSize(); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(true); } } else { if ((e.getKeyCode() == KeyEvent.VK_DELETE) || (e.getKeyCode() == KeyEvent.VK_HOME) || (e.getKeyCode() == KeyEvent.VK_F)) { getControlPanel().showWhole(); } else if ((e.getKeyCode() == KeyEvent.VK_UP) || (e.getKeyCode() == KeyEvent.VK_DOWN) || (e.getKeyCode() == KeyEvent.VK_LEFT) || (e.getKeyCode() == KeyEvent.VK_RIGHT)) { if (e.getModifiersEx() == InputEvent.SHIFT_DOWN_MASK) { if (e.getKeyCode() == KeyEvent.VK_UP) { getMainPanel().getControlPanel().zoomInY(Constants.WHEEL_ZOOM_IN_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } else if (e.getKeyCode() == KeyEvent.VK_DOWN) { getMainPanel().getControlPanel().zoomOutY(Constants.WHEEL_ZOOM_OUT_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } else if (e.getKeyCode() == KeyEvent.VK_LEFT) { getMainPanel().getControlPanel().zoomOutX(Constants.WHEEL_ZOOM_OUT_FACTOR, Constants.WHEEL_ZOOM_OUT_X_CORRECTION_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } else if (e.getKeyCode() == KeyEvent.VK_RIGHT) { getMainPanel().getControlPanel().zoomInX(Constants.WHEEL_ZOOM_IN_FACTOR, Constants.WHEEL_ZOOM_IN_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } } else { final int d = 80; int dx = 0; int dy = -d; if (e.getKeyCode() == KeyEvent.VK_DOWN) { dy = d; } else if (e.getKeyCode() == KeyEvent.VK_LEFT) { dx = -d; dy = 0; } else if (e.getKeyCode() == KeyEvent.VK_RIGHT) { dx = d; dy = 0; } final Point scroll_position = getMainPanel().getCurrentScrollPane().getViewport() .getViewPosition(); scroll_position.x = scroll_position.x + dx; scroll_position.y = scroll_position.y + dy; if (scroll_position.x <= 0) { scroll_position.x = 0; } else { final int max_x = getMainPanel().getCurrentScrollPane().getHorizontalScrollBar() .getMaximum() - getMainPanel().getCurrentScrollPane().getHorizontalScrollBar().getVisibleAmount(); if (scroll_position.x >= max_x) { scroll_position.x = max_x; } } if (scroll_position.y <= 0) { scroll_position.y = 0; } else { final int max_y = getMainPanel().getCurrentScrollPane().getVerticalScrollBar().getMaximum() - getMainPanel().getCurrentScrollPane().getVerticalScrollBar().getVisibleAmount(); if (scroll_position.y >= max_y) { scroll_position.y = max_y; } } repaint(); getMainPanel().getCurrentScrollPane().getViewport().setViewPosition(scroll_position); } } else if ((e.getKeyCode() == KeyEvent.VK_SUBTRACT) || (e.getKeyCode() == KeyEvent.VK_MINUS)) { getMainPanel().getControlPanel().zoomOutY(Constants.WHEEL_ZOOM_OUT_FACTOR); getMainPanel().getControlPanel().zoomOutX(Constants.WHEEL_ZOOM_OUT_FACTOR, Constants.WHEEL_ZOOM_OUT_X_CORRECTION_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } else if (plusPressed(e.getKeyCode())) { getMainPanel().getControlPanel().zoomInX(Constants.WHEEL_ZOOM_IN_FACTOR, Constants.WHEEL_ZOOM_IN_FACTOR); getMainPanel().getControlPanel().zoomInY(Constants.WHEEL_ZOOM_IN_FACTOR); getMainPanel().getControlPanel().displayedPhylogenyMightHaveChanged(false); } else if (e.getKeyCode() == KeyEvent.VK_S) { if ((getPhylogenyGraphicsType() == PHYLOGENY_GRAPHICS_TYPE.UNROOTED) || (getPhylogenyGraphicsType() == PHYLOGENY_GRAPHICS_TYPE.CIRCULAR)) { setStartingAngle((getStartingAngle() % TWO_PI) + ANGLE_ROTATION_UNIT); getControlPanel().displayedPhylogenyMightHaveChanged(false); } } else if (e.getKeyCode() == KeyEvent.VK_A) { if ((getPhylogenyGraphicsType() == PHYLOGENY_GRAPHICS_TYPE.UNROOTED) || (getPhylogenyGraphicsType() == PHYLOGENY_GRAPHICS_TYPE.CIRCULAR)) { setStartingAngle((getStartingAngle() % TWO_PI) - ANGLE_ROTATION_UNIT); if (getStartingAngle() < 0) { setStartingAngle(TWO_PI + getStartingAngle()); } getControlPanel().displayedPhylogenyMightHaveChanged(false); } } else if (e.getKeyCode() == KeyEvent.VK_D) { boolean selected = false; if (getOptions().getNodeLabelDirection() == NODE_LABEL_DIRECTION.HORIZONTAL) { getOptions().setNodeLabelDirection(NODE_LABEL_DIRECTION.RADIAL); selected = true; } else { getOptions().setNodeLabelDirection(NODE_LABEL_DIRECTION.HORIZONTAL); } if (getMainPanel().getMainFrame() == null) { // Must be "E" applet version. final ArchaeopteryxE ae = (ArchaeopteryxE) ((MainPanelApplets) getMainPanel()).getApplet(); if (ae.getlabelDirectionCbmi() != null) { ae.getlabelDirectionCbmi().setSelected(selected); } } else { getMainPanel().getMainFrame().getlabelDirectionCbmi().setSelected(selected); } repaint(); } else if (e.getKeyCode() == KeyEvent.VK_X) { switchDisplaygetPhylogenyGraphicsType(); repaint(); } else if (e.getKeyCode() == KeyEvent.VK_C) { cycleColors(); repaint(); } else if (getOptions().isShowOverview() && isOvOn() && (e.getKeyCode() == KeyEvent.VK_O)) { MainFrame.cycleOverview(getOptions(), this); repaint(); } else if (getOptions().isShowOverview() && isOvOn() && (e.getKeyCode() == KeyEvent.VK_I)) { increaseOvSize(); } else if (getOptions().isShowOverview() && isOvOn() && (e.getKeyCode() == KeyEvent.VK_U)) { decreaseOvSize(); } e.consume(); } }
From source file:edu.harvard.i2b2.query.ui.QueryConceptTreePanel.java
private void createPopupMenu() { JMenuItem menuItem;/*from w w w.j av a 2 s . c om*/ //Create the popup menu. JPopupMenu popup = new JPopupMenu(); /*menuItem = new JMenuItem("Constrain Item ..."); menuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK)); menuItem.addActionListener(this); popup.add(menuItem);*/ menuItem = new JMenuItem("Delete Item"); menuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK)); menuItem.addActionListener(this); popup.add(menuItem); /*popup.add(new javax.swing.JSeparator()); menuItem = new JMenuItem("Exclude All Items"); menuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK)); menuItem.addActionListener(this); popup.add(menuItem);*/ popup.add(new javax.swing.JSeparator()); menuItem = new JMenuItem("Set Value ..."); menuItem.setEnabled(false); menuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); menuItem.addActionListener(this); popup.add(menuItem); //Add listener to the tree MouseListener popupListener = new ConceptTreePopupListener(popup); jTree1.addMouseListener(popupListener); }
From source file:edu.ku.brc.ui.UIRegistry.java
public JMenu createEditMenu() { JMenu menu = new JMenu(getResourceString("EDIT")); menu.setMnemonic(KeyEvent.VK_E); // Undo and redo are actions of our own creation. undoAction = (UndoAction) makeAction(UndoAction.class, this, "Undo", null, null, new Integer(KeyEvent.VK_Z), KeyStroke.getKeyStroke(KeyEvent.VK_Z, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); register(UNDO, menu.add(undoAction)); actionMap.put(UNDO, undoAction);//w w w .ja va 2 s .c o m redoAction = (RedoAction) makeAction(RedoAction.class, this, "Redo", null, null, new Integer(KeyEvent.VK_Y), KeyStroke.getKeyStroke(KeyEvent.VK_Y, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); register(REDO, menu.add(redoAction)); actionMap.put(REDO, redoAction); menu.addSeparator(); // These actions come from the default editor kit. Get the ones we want // and stick them in the menu. Action cutAction = makeAction(DefaultEditorKit.CutAction.class, null, "Cut", null, "Cut selection to clipboard", // I18N ???? new Integer(KeyEvent.VK_X), KeyStroke.getKeyStroke(KeyEvent.VK_X, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); register(CUT, menu.add(cutAction)); cutAction.setEnabled(false); actionMap.put(CUT, cutAction); Action copyAction = makeAction(DefaultEditorKit.CopyAction.class, null, "Copy", null, "Copy selection to clipboard", new Integer(KeyEvent.VK_C), KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); register(COPY, menu.add(copyAction)); copyAction.setEnabled(false); actionMap.put(COPY, copyAction); Action pasteAction = makeAction(DefaultEditorKit.PasteAction.class, null, "Paste", null, "Paste contents of clipboard", new Integer(KeyEvent.VK_V), KeyStroke.getKeyStroke(KeyEvent.VK_V, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); pasteAction.setEnabled(false); register(PASTE, menu.add(pasteAction)); actionMap.put(PASTE, pasteAction); /* menu.addSeparator(); Action selectAllAction = makeAction(SelectAllAction.class, this, "Select All", null, "Select all text", new Integer(KeyEvent.VK_A), KeyStroke.getKeyStroke(KeyEvent.VK_A, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); menu.add(selectAllAction); */ launchFindReplaceAction = (LaunchFindReplaceAction) makeAction(LaunchFindReplaceAction.class, this, "Find", null, null, new Integer(KeyEvent.VK_F), KeyStroke.getKeyStroke(KeyEvent.VK_F, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); //menu.add(launchFindReplaceAction); // launchFindReplaceAction.setEnabled(false); // register(FIND, menu.add(launchFindReplaceAction)); // actionMap.put(FIND, launchFindReplaceAction); launchFindReplaceAction.setEnabled(false); register(FIND, menu.add(launchFindReplaceAction)); actionMap.put(FIND, launchFindReplaceAction); return menu; }
From source file:com.monead.semantic.workbench.SemanticWorkbench.java
/** * Configures the assertions file menu. Called at startup * and whenever an assertions file is opened or saved since * the list of recent assertions files is presented on the * file menu./*from w ww. ja va2s . com*/ */ private void setupAssertionsFileMenu() { fileAssertionsMenu.removeAll(); fileOpenTriplesFile = new JMenuItem("Open Assertions File"); fileOpenTriplesFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.ALT_MASK)); fileOpenTriplesFile.setMnemonic('A'); fileOpenTriplesFile.setToolTipText("Open an asserted triples file"); fileOpenTriplesFile.addActionListener(new FileAssertedTriplesOpenListener()); fileAssertionsMenu.add(fileOpenTriplesFile); fileOpenTriplesUrl = new JMenuItem("Open Assertions Url"); fileOpenTriplesUrl.setMnemonic('U'); fileOpenTriplesUrl.setToolTipText("Access asserted triples from a URL"); fileOpenTriplesUrl.addActionListener(new FileAssertedTriplesUrlOpenListener()); fileAssertionsMenu.add(fileOpenTriplesUrl); fileAssertionsMenu.addSeparator(); // Create menu options to open recently accessed ontology files fileOpenRecentTriplesFile = new JMenuItem[recentAssertionsFiles.size()]; for (int recentFileNumber = 0; recentFileNumber < recentAssertionsFiles.size(); ++recentFileNumber) { fileOpenRecentTriplesFile[recentFileNumber] = new JMenuItem( recentAssertionsFiles.get(recentFileNumber).getName()); fileOpenRecentTriplesFile[recentFileNumber] .setToolTipText(recentAssertionsFiles.get(recentFileNumber).getAbsolutePath()); fileOpenRecentTriplesFile[recentFileNumber] .addActionListener(new RecentAssertedTriplesFileOpenListener()); fileAssertionsMenu.add(fileOpenRecentTriplesFile[recentFileNumber]); } if (fileOpenRecentTriplesFile.length > 0) { fileAssertionsMenu.addSeparator(); } fileSaveTriplesToFile = new JMenuItem("Save Assertions Text"); fileSaveTriplesToFile .setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.ALT_MASK | KeyEvent.CTRL_MASK)); fileSaveTriplesToFile.setMnemonic(KeyEvent.VK_S); fileSaveTriplesToFile.setToolTipText("Write the asserted triples to a file"); fileSaveTriplesToFile.addActionListener(new FileAssertedTriplesSaveListener()); fileAssertionsMenu.add(fileSaveTriplesToFile); fileSaveSerializedModel = new JMenuItem("Save Model (processed triples)"); fileSaveSerializedModel .setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, KeyEvent.ALT_MASK | KeyEvent.CTRL_MASK)); fileSaveSerializedModel.setMnemonic(KeyEvent.VK_M); fileSaveSerializedModel.setToolTipText("Write the triples from the current model to a file"); fileSaveSerializedModel.addActionListener(new ModelSerializerListener()); fileAssertionsMenu.add(fileSaveSerializedModel); fileAssertionsMenu.addSeparator(); fileExit = new JMenuItem("Exit"); fileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK)); fileExit.setMnemonic(KeyEvent.VK_X); fileExit.setToolTipText("Exit the application"); fileExit.addActionListener(new EndApplicationListener()); fileAssertionsMenu.add(fileExit); }