List of usage examples for javax.swing JMenu setMnemonic
@BeanProperty(visualUpdate = true, description = "the keyboard character mnemonic") public void setMnemonic(int mnemonic)
From source file:org.pentaho.reporting.libraries.base.util.ResourceBundleSupport.java
/** * Returns a JMenu created from a resource bundle definition. * <p/>/*w ww.ja v a 2 s . c o m*/ * The menu definition consists of two keys, the name of the menu and the mnemonic for that menu. Both keys share a * common prefix, which is extended by ".name" for the name of the menu and ".mnemonic" for the mnemonic. * <p/> * <pre> * # define the file menu * menu.file.name=File * menu.file.mnemonic=F * </pre> * The menu definition above can be used to create the menu by calling <code>createMenu ("menu.file")</code>. * * @param keyPrefix the common prefix for that menu * @return the created menu */ public JMenu createMenu(final String keyPrefix) { if (keyPrefix == null) { throw new NullPointerException(); } final JMenu retval = new JMenu(); retval.setText(strictString(keyPrefix + ".name")); final Integer mnemonic = getOptionalMnemonic(keyPrefix + ".mnemonic"); if (mnemonic != null) { retval.setMnemonic(mnemonic.intValue()); } return retval; }
From source file:org.photovault.swingui.BrowserWindow.java
protected void createUI(PhotoCollection collection) { window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); tabPane = new JTabbedPane(); queryPane = new QueryPane(); PhotoFolderTreeController treeCtrl = new PhotoFolderTreeController(window, this); viewCtrl = new PhotoViewController(window, this); treePane = treeCtrl.folderTree;/*ww w . ja v a 2s . co m*/ viewPane = viewCtrl.getThumbPane(); previewPane = viewCtrl.getPreviewPane(); tabPane.addTab("Query", queryPane); tabPane.addTab("Folders", treePane); VolumeTreeController volTreeCtrl = new VolumeTreeController(this); JTree volumeTree = volTreeCtrl.getView(); JScrollPane voltreeScrollPane = new JScrollPane(volumeTree); voltreeScrollPane.setPreferredSize(new Dimension(200, 500)); tabPane.add("Volumes", voltreeScrollPane); // TODO: get rid of this!!!! EditSelectionColorsAction colorAction = (EditSelectionColorsAction) viewPane.getEditSelectionColorsAction(); colorAction.setPreviewCtrl(previewPane); // Set listeners to both query and folder tree panes /* If an actionEvent comes from query pane, swich to query results. */ queryPane.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { viewCtrl.setCollection(queryPane.getResultCollection()); } }); /* If the selected folder is changed in treePane, switch to that immediately */ treeCtrl.registerEventListener(PhotoFolderTreeEvent.class, new DefaultEventListener<PhotoCollection>() { public void handleEvent(DefaultEvent<PhotoCollection> event) { PhotoCollection c = event.getPayload(); if (c != null) { viewCtrl.setCollection(c); if (c instanceof PhotoFolder) { PhotoFolder f = (PhotoFolder) c; if (f.getExternalDir() != null) { ExternalDir ed = f.getExternalDir(); folderIndexer.updateDir(ed.getVolume(), ed.getPath()); viewCtrl.setIndexingOngoing(true); } } } } }); volTreeCtrl.registerEventListener(PhotoFolderTreeEvent.class, new DefaultEventListener<PhotoCollection>() { public void handleEvent(DefaultEvent<PhotoCollection> event) { PhotoCollection c = event.getPayload(); if (c != null) { viewCtrl.setCollection(c); if (c instanceof ExtDirPhotos) { ExtDirPhotos photos = (ExtDirPhotos) c; ExternalVolume vol = (ExternalVolume) viewCtrl.getDAOFactory().getVolumeDAO() .getVolume(photos.getVolId()); folderIndexer.updateDir(vol, photos.getDirPath()); viewCtrl.setIndexingOngoing(true); } } } }); collectionPane = viewCtrl.getCollectionPane(); JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, tabPane, collectionPane); split.putClientProperty(JSplitPane.ONE_TOUCH_EXPANDABLE_PROPERTY, new Boolean(true)); Container cp = window.getContentPane(); cp.setLayout(new BorderLayout()); cp.add(split, BorderLayout.CENTER); statusBar = new StatusBar(); cp.add(statusBar, BorderLayout.SOUTH); // Create actions for BrowserWindow UI ImageIcon indexDirIcon = getIcon("index_dir.png"); DefaultAction indexDirAction = new DefaultAction("Index directory...", indexDirIcon) { public void actionPerformed(ActionEvent e) { indexDir(); } }; indexDirAction.putValue(AbstractAction.MNEMONIC_KEY, KeyEvent.VK_D); indexDirAction.putValue(AbstractAction.SHORT_DESCRIPTION, "Index all images in a directory"); this.registerAction("new_ext_vol", indexDirAction); ImageIcon importIcon = getIcon("import.png"); importAction = new AbstractAction("Import image...", importIcon) { public void actionPerformed(ActionEvent e) { importFile(); } }; importAction.putValue(AbstractAction.MNEMONIC_KEY, KeyEvent.VK_O); importAction.putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); importAction.putValue(AbstractAction.SHORT_DESCRIPTION, "Import new image into database"); ImageIcon updateIcon = getIcon("update_indexed_dirs.png"); UpdateIndexAction updateIndexAction = new UpdateIndexAction(viewCtrl, "Update indexed dirs", updateIcon, "Check for changes in previously indexed directories", KeyEvent.VK_U); this.registerAction("update_indexed_dirs", updateIndexAction); updateIndexAction.addStatusChangeListener(statusBar); ImageIcon previewTopIcon = getIcon("view_preview_top.png"); DefaultAction previewTopAction = new DefaultAction("Preview on top", previewTopIcon) { public void actionPerformed(ActionEvent e) { viewCtrl.setLayout(PhotoViewController.Layout.PREVIEW_HORIZONTAL_THUMBS); } }; previewTopAction.putValue(AbstractAction.SHORT_DESCRIPTION, "Show preview on top of thumbnails"); previewTopAction.putValue(AbstractAction.MNEMONIC_KEY, KeyEvent.VK_T); this.registerAction("view_preview_top", previewTopAction); ImageIcon previewRightIcon = getIcon("view_preview_right.png"); DefaultAction previewRightAction = new DefaultAction("Preview on right", previewRightIcon) { public void actionPerformed(ActionEvent e) { viewCtrl.setLayout(PhotoViewController.Layout.PREVIEW_VERTICAL_THUMBS); } }; previewRightAction.putValue(AbstractAction.SHORT_DESCRIPTION, "Show preview on right of thumbnails"); previewRightAction.putValue(AbstractAction.MNEMONIC_KEY, KeyEvent.VK_R); this.registerAction("view_preview_right", previewRightAction); ImageIcon previewNoneIcon = getIcon("view_no_preview.png"); DefaultAction previewNoneAction = new DefaultAction("No preview", previewNoneIcon) { public void actionPerformed(ActionEvent e) { viewCtrl.setLayout(PhotoViewController.Layout.ONLY_THUMBS); } }; previewNoneAction.putValue(AbstractAction.SHORT_DESCRIPTION, "Show no preview image"); previewNoneAction.putValue(AbstractAction.MNEMONIC_KEY, KeyEvent.VK_O); this.registerAction("view_no_preview", previewNoneAction); DefaultAction previewLargeAction = new DefaultAction("Large", null) { public void actionPerformed(ActionEvent e) { viewCtrl.setPreviewSize(200); } }; DefaultAction previewSmallAction = new DefaultAction("Small", null) { public void actionPerformed(ActionEvent e) { viewCtrl.setPreviewSize(100); } }; JToolBar tb = createToolbar(); cp.add(tb, BorderLayout.NORTH); // Create the menu bar & menus JMenuBar menuBar = new JMenuBar(); window.setJMenuBar(menuBar); // File menu JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); menuBar.add(fileMenu); JMenuItem newWindowItem = new JMenuItem("New window", KeyEvent.VK_N); newWindowItem.setIcon(getIcon("window_new.png")); newWindowItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { BrowserWindow br = new BrowserWindow(getParentController(), null); // br.setVisible( true ); } }); fileMenu.add(newWindowItem); JMenuItem importItem = new JMenuItem(importAction); fileMenu.add(importItem); JMenuItem indexDirItem = new JMenuItem(indexDirAction); fileMenu.add(indexDirItem); fileMenu.add(new JMenuItem(viewCtrl.getActionAdapter("update_indexed_dirs"))); ExportSelectedAction exportAction = (ExportSelectedAction) viewPane.getExportSelectedAction(); JMenuItem exportItem = new JMenuItem(exportAction); exportAction.addStatusChangeListener(statusBar); fileMenu.add(exportItem); JMenu dbMenu = new JMenu("Database"); dbMenu.setMnemonic(KeyEvent.VK_B); dbMenu.setIcon(getIcon("empty_icon.png")); ExportMetadataAction exportMetadata = new ExportMetadataAction("Export as XML...", null, "Export whole database as XML file", KeyEvent.VK_E); dbMenu.add(new JMenuItem(exportMetadata)); ImportXMLAction importMetadata = new ImportXMLAction("Import XML data...", null, "Import data from other Photovault database as XML", KeyEvent.VK_I); importMetadata.addStatusChangeListener(statusBar); dbMenu.add(new JMenuItem(importMetadata)); fileMenu.add(dbMenu); JMenuItem exitItem = new JMenuItem("Exit", KeyEvent.VK_X); exitItem.setIcon(getIcon("exit.png")); exitItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); } }); fileMenu.add(exitItem); JMenu viewMenu = new JMenu("View"); viewMenu.setMnemonic(KeyEvent.VK_V); menuBar.add(viewMenu); JMenuItem vertIconsItem = new JMenuItem(previewRightAction); viewMenu.add(vertIconsItem); JMenuItem horzIconsItem = new JMenuItem(previewTopAction); viewMenu.add(horzIconsItem); JMenuItem noPreviewItem = new JMenuItem(previewNoneAction); viewMenu.add(noPreviewItem); JMenuItem nextPhotoItem = new JMenuItem(viewPane.getSelectNextAction()); viewMenu.add(nextPhotoItem); JMenuItem prevPhotoItem = new JMenuItem(viewPane.getSelectPreviousAction()); viewMenu.add(prevPhotoItem); viewMenu.add(new JMenuItem(previewSmallAction)); viewMenu.add(new JMenuItem(previewLargeAction)); JMenu sortMenu = new JMenu("Sort by"); sortMenu.setMnemonic(KeyEvent.VK_S); sortMenu.setIcon(getIcon("empty_icon.png")); JMenuItem byDateItem = new JMenuItem(new SetPhotoOrderAction(viewCtrl, new ShootingDateComparator(), "Date", null, "Order photos by date", KeyEvent.VK_D)); sortMenu.add(byDateItem); JMenuItem byPlaceItem = new JMenuItem(new SetPhotoOrderAction(viewCtrl, new ShootingPlaceComparator(), "Place", null, "Order photos by shooting place", KeyEvent.VK_P)); sortMenu.add(byPlaceItem); JMenuItem byQualityItem = new JMenuItem(new SetPhotoOrderAction(viewCtrl, new QualityComparator(), "Quality", null, "Order photos by quality", KeyEvent.VK_Q)); sortMenu.add(byQualityItem); viewMenu.add(sortMenu); // Set default ordering by date byDateItem.getAction().actionPerformed(new ActionEvent(this, 0, "Setting default")); JMenu imageMenu = new JMenu("Image"); imageMenu.setMnemonic(KeyEvent.VK_I); menuBar.add(imageMenu); imageMenu.add(new JMenuItem(viewPane.getEditSelectionPropsAction())); imageMenu.add(new JMenuItem(viewPane.getShowSelectedPhotoAction())); imageMenu.add(new JMenuItem(viewCtrl.getActionAdapter("rotate_cw"))); imageMenu.add(new JMenuItem(viewCtrl.getActionAdapter("rotate_ccw"))); imageMenu.add(new JMenuItem(viewCtrl.getActionAdapter("rotate_180"))); imageMenu.add(new JMenuItem(previewPane.getCropAction())); imageMenu.add(new JMenuItem(viewPane.getEditSelectionColorsAction())); imageMenu.add(new JMenuItem(viewPane.getDeleteSelectedAction())); // Create the Quality submenu JMenu qualityMenu = new JMenu("Quality"); qualityMenu.setIcon(getIcon("empty_icon.png")); for (int n = 0; n < 6; n++) { Action qualityAction = viewCtrl.getActionAdapter("quality_" + n); JMenuItem qualityMenuItem = new JMenuItem(qualityAction); qualityMenu.add(qualityMenuItem); } imageMenu.add(qualityMenu); JMenu aboutMenu = new JMenu("About"); aboutMenu.setMnemonic(KeyEvent.VK_A); aboutMenu.add(new JMenuItem(new ShowAboutDlgAction("About Photovault...", null, "", null))); menuBar.add(Box.createHorizontalGlue()); menuBar.add(aboutMenu); window.pack(); window.setVisible(true); }
From source file:org.renjin.studio.MainFrame.java
private void setupMenu() { //Create the menu bar. JMenuBar menuBar = new JMenuBar(); //Build the first menu. JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_A); menuBar.add(fileMenu);/* w w w .ja v a2 s. c om*/ JMenu newMenu = new JMenu("New"); newMenu.setMnemonic(KeyEvent.VK_N); JMenuItem newScriptItem = new JMenuItem("R Script"); newMenu.add(newScriptItem); fileMenu.add(newMenu); setJMenuBar(menuBar); }
From source file:org.rimudb.editor.RimuDBEditor.java
public JMenuBar buildJMenuBar() { log.debug("buildJMenuBar()"); JMenuBar menuBar = new JMenuBar(); // File menu//from w w w .ja v a2 s .com JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_F); openMenuItem = new JMenuItem( new OpenDescriptorAction(this, "Open...", loadIcon("/images/famfamfam/folder.png"))); openMenuItem.setName("OpenMenuItem"); openMenuItem.setMnemonic(KeyEvent.VK_O); openMenuItem.setAccelerator( KeyStroke.getKeyStroke('O', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false)); menu.add(openMenuItem); saveMenuItem = new JMenuItem( new SaveDescriptorAction(this, "Save", loadIcon("/images/famfamfam/disk.png"))); saveMenuItem.setName("SaveMenuItem"); saveMenuItem.setMnemonic(KeyEvent.VK_S); saveMenuItem.setAccelerator( KeyStroke.getKeyStroke('S', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false)); menu.add(saveMenuItem); saveAsMenuItem = new JMenuItem(new SaveAsDescriptorAction(this, "Save as...")); saveAsMenuItem.setName("SaveAsMenuItem"); menu.add(saveAsMenuItem); menu.addSeparator(); clearMenuItem = new JMenuItem( new ClearTableAction(this, "Clear...", loadIcon("/images/famfamfam/bin_closed.png"))); clearMenuItem.setName("ClearMenuItem"); clearMenuItem.setMnemonic(KeyEvent.VK_C); menu.add(clearMenuItem); preferencesMenuItem = new JMenuItem( new PreferencesAction(this, "Preferences...", loadIcon("/images/famfamfam/text_list_bullets.png"))); preferencesMenuItem.setName("PreferencesMenuItem"); preferencesMenuItem.setEnabled(false); preferencesMenuItem.setMnemonic(KeyEvent.VK_P); menu.add(preferencesMenuItem); menu.addSeparator(); exitMenuItem = new JMenuItem(new ExitAction(this, "Exit")); exitMenuItem.setName("ExitMenuItem"); exitMenuItem.setMnemonic(KeyEvent.VK_E); menu.add(exitMenuItem); menuBar.add(menu); JMenu toolsMenu = new JMenu("Tools"); toolsMenu.setMnemonic(KeyEvent.VK_T); dbImportMenuItem = new JMenuItem( new ImportAction(this, "Import from database...", loadIcon("/images/famfamfam/database_go.png"))); dbImportMenuItem.setName("DbImportMenuItem"); dbImportMenuItem.setEnabled(false); dbImportMenuItem.setMnemonic(KeyEvent.VK_I); dbImportMenuItem.setAccelerator( KeyStroke.getKeyStroke('I', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false)); toolsMenu.add(dbImportMenuItem); createClassesMenuItem = new JMenuItem(new GenerateJavaAction(this, "Create classes...", loadIcon("/images/famfamfam/page_white_cup.png"))); createClassesMenuItem.setName("CreateClassesMenuItem"); createClassesMenuItem.setMnemonic(KeyEvent.VK_C); toolsMenu.add(createClassesMenuItem); ddsExportMenuItem = new JMenuItem("Export as DDS..."); ddsExportMenuItem.setName("DdsExportMenuItem"); ddsExportMenuItem.setMnemonic(KeyEvent.VK_D); ddsExportMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { actionExportToDDS(); } }); toolsMenu.add(ddsExportMenuItem); sqlExportMenuItem = new JMenuItem("Export as SQL..."); sqlExportMenuItem.setIcon(loadIcon("/images/famfamfam/page_white_database.png")); sqlExportMenuItem.setName("SqlExportMenuItem"); sqlExportMenuItem.setMnemonic(KeyEvent.VK_Q); sqlExportMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { actionExportToSQL(); } }); toolsMenu.add(sqlExportMenuItem); toolsMenu.addSeparator(); propertyRenameMenuItem = new JMenuItem("Rename Properties..."); propertyRenameMenuItem.setName("PropertyRenameMenuItem"); propertyRenameMenuItem.setMnemonic(KeyEvent.VK_R); propertyRenameMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { actionRenameProperties(); } }); toolsMenu.add(propertyRenameMenuItem); copyCodeMenuItem = new JMenuItem(new GenerateCopyCodeAction(this, "Create Java DO Copy Code...", null)); copyCodeMenuItem.setName("CopyCodeMenuItem"); toolsMenu.add(copyCodeMenuItem); convertFinderMenuItem = new JMenuItem(new ConvertFinderAction(this, "Convert Finders (pre 1.1)...", null)); convertFinderMenuItem.setName("ConvertFinderMenuItem"); toolsMenu.add(convertFinderMenuItem); convertCDBMenuItem = new JMenuItem(new ConvertCDBAction(this, "Convert CDB Configs (pre 1.2)...", null)); convertCDBMenuItem.setName("ConvertCDBMenuItem"); toolsMenu.add(convertCDBMenuItem); menuBar.add(toolsMenu); JMenu helpMenu = new JMenu("Help"); helpMenu.setMnemonic(KeyEvent.VK_H); aboutMenuItem = new JMenuItem(new AboutAction(this, "About...")); aboutMenuItem.setName("AboutMenuItem"); helpMenu.add(aboutMenuItem); menuBar.add(helpMenu); return menuBar; }
From source file:org.signserver.admin.gui.MainView.java
/** This method is called from within the constructor to * initialize the form.//from w w w . ja v a2s . c o m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu fileMenu = new javax.swing.JMenu(); addWorkerItem = new javax.swing.JMenuItem(); exportMenuItem = new javax.swing.JMenuItem(); javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); activateMenu = new javax.swing.JMenuItem(); deactivateMenu = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JPopupMenu.Separator(); renewKeyMenu = new javax.swing.JMenuItem(); testKeyMenu = new javax.swing.JMenuItem(); generateRequestMenu = new javax.swing.JMenuItem(); installCertificatesMenu = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JPopupMenu.Separator(); renewSignerMenu = new javax.swing.JMenuItem(); removeKeyMenu = new javax.swing.JMenuItem(); jSeparator8 = new javax.swing.JPopupMenu.Separator(); removeWorkerMenu = new javax.swing.JMenuItem(); jSeparator9 = new javax.swing.JPopupMenu.Separator(); reloadMenu = new javax.swing.JMenuItem(); globalConfigurationMenu = new javax.swing.JMenuItem(); administratorsMenu = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); refreshMenu = new javax.swing.JMenuItem(); jSeparator4 = new javax.swing.JPopupMenu.Separator(); statusSummaryMenu = new javax.swing.JMenuItem(); statusPropertiesMenu = new javax.swing.JMenuItem(); configurationMenu = new javax.swing.JMenuItem(); authorizationsMenu = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JPopupMenu.Separator(); javax.swing.JMenu helpMenu = new javax.swing.JMenu(); javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); jToolBar1 = new javax.swing.JToolBar(); refreshButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JToolBar.Separator(); activateButton = new javax.swing.JButton(); deactivateButton = new javax.swing.JButton(); jSeparator2 = new javax.swing.JToolBar.Separator(); renewKeyButton = new javax.swing.JButton(); testKeyButton = new javax.swing.JButton(); generateRequestsButton = new javax.swing.JButton(); installCertificatesButton = new javax.swing.JButton(); jSeparator6 = new javax.swing.JToolBar.Separator(); renewSignerButton = new javax.swing.JButton(); statusPanel = new javax.swing.JPanel(); statusMessageLabel = new javax.swing.JLabel(); statusAnimationLabel = new javax.swing.JLabel(); progressBar = new javax.swing.JProgressBar(); authEditPanel = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); editSerialNumberTextfield = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); editIssuerDNTextfield = new javax.swing.JTextField(); editUpdateAllCheckbox = new javax.swing.JCheckBox(); loadCertButton = new javax.swing.JButton(); passwordPanel = new javax.swing.JPanel(); passwordPanelLabel = new javax.swing.JLabel(); passwordPanelField = new javax.swing.JPasswordField(); jTabbedPane1 = new javax.swing.JTabbedPane(); mainPanel = new javax.swing.JPanel(); jSplitPane1 = new javax.swing.JSplitPane(); jScrollPane2 = new javax.swing.JScrollPane(); workersList = new javax.swing.JList(); jPanel1 = new javax.swing.JPanel(); workerComboBox = new javax.swing.JComboBox(); workerTabbedPane = new javax.swing.JTabbedPane(); statusSummaryTab = new javax.swing.JScrollPane(); statusSummaryTextPane = new javax.swing.JTextPane(); statusPropertiesTab = new javax.swing.JPanel(); statusPropertiesScrollPane = new javax.swing.JScrollPane(); propertiesTable = new javax.swing.JTable(); statusPropertiesDetailsButton = new javax.swing.JButton(); configurationTab = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); configurationTable = new javax.swing.JTable(); addButton = new javax.swing.JButton(); editButton = new javax.swing.JButton(); removeButton = new javax.swing.JButton(); authorizationTab = new javax.swing.JPanel(); jScrollPane7 = new javax.swing.JScrollPane(); authTable = new javax.swing.JTable(); authAddButton = new javax.swing.JButton(); authEditButton = new javax.swing.JButton(); authRemoveButton = new javax.swing.JButton(); cryptoTokenTab = new javax.swing.JPanel(); tokenEntriesReloadButton = new javax.swing.JButton(); tokenEntriesGenerateKeyButton = new javax.swing.JButton(); tokenEntriesTestButton = new javax.swing.JButton(); tokenEntriesGenerateCSRButton = new javax.swing.JButton(); tokenEntriesImportButton = new javax.swing.JButton(); tokenEntriesRemoveButton = new javax.swing.JButton(); tokenEntriesDetailsButton = new javax.swing.JButton(); tokenEntriesStartIndexTextfield = new javax.swing.JTextField(); tokenEntriesDisplayingToIndex = new javax.swing.JLabel(); tokenEntriesNextButton = new javax.swing.JButton(); jLabel15 = new javax.swing.JLabel(); tokenEntriesMaxEntriesTextfield = new javax.swing.JTextField(); tokenEntriesFirstButton = new javax.swing.JButton(); tokenEntriesPreviousButton = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); tokenEntriesPanel = new javax.swing.JPanel(); tokenEntriesScrollpane = new javax.swing.JScrollPane(); tokenEntriesTable = new javax.swing.JTable(); tokenEntriesErrorPanel = new javax.swing.JPanel(); jScrollPane9 = new javax.swing.JScrollPane(); tokenEntriesErrorEditor = new javax.swing.JEditorPane(); auditPanel = new javax.swing.JPanel(); jSplitPane2 = new javax.swing.JSplitPane(); jPanel2 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jScrollPane3 = new javax.swing.JScrollPane(); conditionsTable = new javax.swing.JTable(); jButtonAuditConditionAdd = new javax.swing.JButton(); jButtonAuditConditionRemove = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); auditlogFirstButton = new javax.swing.JButton(); auditlogPreviousButton = new javax.swing.JButton(); auditlogReloadButton = new javax.swing.JButton(); auditlogNextButton = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); auditlogStartIndexTextfield = new javax.swing.JTextField(); auditlogDisplayingToIndex = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); auditlogMaxEntriesTextfield = new javax.swing.JTextField(); auditlogPanel = new javax.swing.JPanel(); auditlogTablePanel = new javax.swing.JPanel(); auditlogTableScrollPane = new javax.swing.JScrollPane(); auditLogTable = new javax.swing.JTable(); auditlogErrorPanel = new javax.swing.JPanel(); jScrollPane5 = new javax.swing.JScrollPane(); auditlogErrorEditor = new javax.swing.JEditorPane(); archivePanel = new javax.swing.JPanel(); jSplitPane3 = new javax.swing.JSplitPane(); jPanel4 = new javax.swing.JPanel(); jLabel11 = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane(); archiveConditionsTable = new javax.swing.JTable(); jButtonArchiveAuditConditionAdd = new javax.swing.JButton(); jButtonArchiveConditionRemove = new javax.swing.JButton(); jPanel5 = new javax.swing.JPanel(); archiveFirstButton = new javax.swing.JButton(); archivePreviousButton = new javax.swing.JButton(); archiveReloadButton = new javax.swing.JButton(); archiveNextButton = new javax.swing.JButton(); jLabel12 = new javax.swing.JLabel(); archiveStartIndexTextfield = new javax.swing.JTextField(); archiveDisplayingToIndex = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); archiveMaxEntriesTextfield = new javax.swing.JTextField(); archiveContentPanel = new javax.swing.JPanel(); archiveTablePanel = new javax.swing.JPanel(); archiveTableScrollPane = new javax.swing.JScrollPane(); archiveTable = new javax.swing.JTable(); archiveErrorPanel = new javax.swing.JPanel(); jScrollPane8 = new javax.swing.JScrollPane(); archiveErrorEditor = new javax.swing.JEditorPane(); downloadArchiveEntriesButton = new javax.swing.JButton(); removeKeyPanel = new javax.swing.JPanel(); jLabel7 = new javax.swing.JLabel(); aliasTextField = new javax.swing.JTextField(); reloadPanel = new javax.swing.JPanel(); jEditorPane1 = new javax.swing.JEditorPane(); reloadAllWorkersRadioButton = new javax.swing.JRadioButton(); reloadSelectedWorkersRadioButton = new javax.swing.JRadioButton(); jLabel9 = new javax.swing.JLabel(); reloadPanelButtonGroup = new javax.swing.ButtonGroup(); exportPanel = new javax.swing.JPanel(); jLabel10 = new javax.swing.JLabel(); exportAllRadioButton = new javax.swing.JRadioButton(); exportSelectedRadioButton = new javax.swing.JRadioButton(); exportNoRadioButton = new javax.swing.JRadioButton(); exportAllUnrelatedGlobalCheckbox = new javax.swing.JCheckBox(); exportPanelButtonGroup = new javax.swing.ButtonGroup(); menuBar.setName("menuBar"); // NOI18N fileMenu.setMnemonic('F'); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application .getInstance(org.signserver.admin.gui.SignServerAdminGUIApplication.class).getContext() .getResourceMap(MainView.class); fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N fileMenu.setName("fileMenu"); // NOI18N addWorkerItem.setText(resourceMap.getString("addWorkerItem.text")); // NOI18N addWorkerItem.setName("addWorkerItem"); // NOI18N addWorkerItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addWorkerItemActionPerformed(evt); } }); fileMenu.add(addWorkerItem); javax.swing.ActionMap actionMap = org.jdesktop.application.Application .getInstance(org.signserver.admin.gui.SignServerAdminGUIApplication.class).getContext() .getActionMap(MainView.class, this); exportMenuItem.setAction(actionMap.get("exportConfig")); // NOI18N exportMenuItem.setText(resourceMap.getString("exportMenuItem.text")); // NOI18N exportMenuItem.setName("exportMenuItem"); // NOI18N fileMenu.add(exportMenuItem); exitMenuItem.setAction(actionMap.get("quit")); // NOI18N exitMenuItem.setName("exitMenuItem"); // NOI18N fileMenu.add(exitMenuItem); menuBar.add(fileMenu); editMenu.setAction(actionMap.get("testKeys")); // NOI18N editMenu.setText(resourceMap.getString("editMenu.text")); // NOI18N editMenu.setName("editMenu"); // NOI18N activateMenu.setAction(actionMap.get("activateWorkers")); // NOI18N activateMenu.setText(resourceMap.getString("activateMenu.text")); // NOI18N activateMenu.setName("activateMenu"); // NOI18N editMenu.add(activateMenu); deactivateMenu.setAction(actionMap.get("deactivateWorkers")); // NOI18N deactivateMenu.setText(resourceMap.getString("deactivateMenu.text")); // NOI18N deactivateMenu.setName("deactivateMenu"); // NOI18N editMenu.add(deactivateMenu); jSeparator7.setName("jSeparator7"); // NOI18N editMenu.add(jSeparator7); renewKeyMenu.setAction(actionMap.get("renewKeys")); // NOI18N renewKeyMenu.setText(resourceMap.getString("renewKeyMenu.text")); // NOI18N renewKeyMenu.setName("renewKeyMenu"); // NOI18N editMenu.add(renewKeyMenu); testKeyMenu.setAction(actionMap.get("testKeys")); // NOI18N testKeyMenu.setText(resourceMap.getString("testKeyMenu.text")); // NOI18N testKeyMenu.setName("testKeyMenu"); // NOI18N editMenu.add(testKeyMenu); generateRequestMenu.setAction(actionMap.get("generateRequests")); // NOI18N generateRequestMenu.setText(resourceMap.getString("generateRequestMenu.text")); // NOI18N generateRequestMenu.setName("generateRequestMenu"); // NOI18N editMenu.add(generateRequestMenu); installCertificatesMenu.setAction(actionMap.get("installCertificates")); // NOI18N installCertificatesMenu.setText(resourceMap.getString("installCertificatesMenu.text")); // NOI18N installCertificatesMenu.setName("installCertificatesMenu"); // NOI18N editMenu.add(installCertificatesMenu); jSeparator5.setName("jSeparator5"); // NOI18N editMenu.add(jSeparator5); renewSignerMenu.setAction(actionMap.get("renewSigner")); // NOI18N renewSignerMenu.setText(resourceMap.getString("renewSignerMenu.text")); // NOI18N renewSignerMenu.setName("renewSignerMenu"); // NOI18N editMenu.add(renewSignerMenu); removeKeyMenu.setAction(actionMap.get("removeKey")); // NOI18N removeKeyMenu.setText(resourceMap.getString("removeKeyMenu.text")); // NOI18N removeKeyMenu.setName("removeKeyMenu"); // NOI18N editMenu.add(removeKeyMenu); jSeparator8.setName("jSeparator8"); // NOI18N editMenu.add(jSeparator8); removeWorkerMenu.setAction(actionMap.get("removeWorkers")); // NOI18N removeWorkerMenu.setText(resourceMap.getString("removeWorkerMenu.text")); // NOI18N removeWorkerMenu.setName("removeWorkerMenu"); // NOI18N editMenu.add(removeWorkerMenu); jSeparator9.setName("jSeparator9"); // NOI18N editMenu.add(jSeparator9); reloadMenu.setAction(actionMap.get("reloadFromDatabase")); // NOI18N reloadMenu.setText(resourceMap.getString("reloadMenu.text")); // NOI18N reloadMenu.setName("reloadMenu"); // NOI18N editMenu.add(reloadMenu); globalConfigurationMenu.setMnemonic('G'); globalConfigurationMenu.setText(resourceMap.getString("globalConfigurationMenu.text")); // NOI18N globalConfigurationMenu.setName("globalConfigurationMenu"); // NOI18N globalConfigurationMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { globalConfigurationMenuActionPerformed(evt); } }); editMenu.add(globalConfigurationMenu); administratorsMenu.setMnemonic('m'); administratorsMenu.setText(resourceMap.getString("administratorsMenu.text")); // NOI18N administratorsMenu.setName("administratorsMenu"); // NOI18N administratorsMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { administratorsMenuActionPerformed(evt); } }); editMenu.add(administratorsMenu); menuBar.add(editMenu); viewMenu.setMnemonic('V'); viewMenu.setText(resourceMap.getString("viewMenu.text")); // NOI18N viewMenu.setName("viewMenu"); // NOI18N refreshMenu.setAction(actionMap.get("refreshWorkers")); // NOI18N refreshMenu.setText(resourceMap.getString("refreshMenu.text")); // NOI18N refreshMenu.setName("refreshMenu"); // NOI18N viewMenu.add(refreshMenu); jSeparator4.setName("jSeparator4"); // NOI18N viewMenu.add(jSeparator4); statusSummaryMenu.setText(resourceMap.getString("statusSummaryMenu.text")); // NOI18N statusSummaryMenu.setName("statusSummaryMenu"); // NOI18N statusSummaryMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { statusSummaryMenuActionPerformed(evt); } }); viewMenu.add(statusSummaryMenu); statusPropertiesMenu.setText(resourceMap.getString("statusPropertiesMenu.text")); // NOI18N statusPropertiesMenu.setName("statusPropertiesMenu"); // NOI18N statusPropertiesMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { statusPropertiesMenuActionPerformed(evt); } }); viewMenu.add(statusPropertiesMenu); configurationMenu.setText(resourceMap.getString("configurationMenu.text")); // NOI18N configurationMenu.setName("configurationMenu"); // NOI18N configurationMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configurationMenuActionPerformed(evt); } }); viewMenu.add(configurationMenu); authorizationsMenu.setText(resourceMap.getString("authorizationsMenu.text")); // NOI18N authorizationsMenu.setName("authorizationsMenu"); // NOI18N authorizationsMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { authorizationsMenuActionPerformed(evt); } }); viewMenu.add(authorizationsMenu); jSeparator3.setName("jSeparator3"); // NOI18N viewMenu.add(jSeparator3); menuBar.add(viewMenu); helpMenu.setMnemonic('H'); helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N helpMenu.setName("helpMenu"); // NOI18N aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N aboutMenuItem.setName("aboutMenuItem"); // NOI18N helpMenu.add(aboutMenuItem); menuBar.add(helpMenu); jToolBar1.setRollover(true); jToolBar1.setName("jToolBar1"); // NOI18N refreshButton.setAction(actionMap.get("refreshWorkers")); // NOI18N refreshButton.setText(resourceMap.getString("refreshButton.text")); // NOI18N refreshButton.setFocusable(false); refreshButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); refreshButton.setName("refreshButton"); // NOI18N refreshButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(refreshButton); jSeparator1.setName("jSeparator1"); // NOI18N jToolBar1.add(jSeparator1); activateButton.setAction(actionMap.get("activateWorkers")); // NOI18N activateButton.setText(resourceMap.getString("activateButton.text")); // NOI18N activateButton.setFocusable(false); activateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); activateButton.setName("activateButton"); // NOI18N activateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(activateButton); deactivateButton.setAction(actionMap.get("deactivateWorkers")); // NOI18N deactivateButton.setText(resourceMap.getString("deactivateButton.text")); // NOI18N deactivateButton.setFocusable(false); deactivateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); deactivateButton.setName("deactivateButton"); // NOI18N deactivateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(deactivateButton); jSeparator2.setName("jSeparator2"); // NOI18N jToolBar1.add(jSeparator2); renewKeyButton.setAction(actionMap.get("renewKeys")); // NOI18N renewKeyButton.setText(resourceMap.getString("renewKeyButton.text")); // NOI18N renewKeyButton.setFocusable(false); renewKeyButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); renewKeyButton.setName("renewKeyButton"); // NOI18N renewKeyButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(renewKeyButton); testKeyButton.setAction(actionMap.get("testKeys")); // NOI18N testKeyButton.setText(resourceMap.getString("testKeyButton.text")); // NOI18N testKeyButton.setFocusable(false); testKeyButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); testKeyButton.setName("testKeyButton"); // NOI18N testKeyButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(testKeyButton); generateRequestsButton.setAction(actionMap.get("generateRequests")); // NOI18N generateRequestsButton.setText(resourceMap.getString("generateRequestsButton.text")); // NOI18N generateRequestsButton.setFocusable(false); generateRequestsButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); generateRequestsButton.setName("generateRequestsButton"); // NOI18N generateRequestsButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(generateRequestsButton); installCertificatesButton.setAction(actionMap.get("installCertificates")); // NOI18N installCertificatesButton.setText(resourceMap.getString("installCertificatesButton.text")); // NOI18N installCertificatesButton.setFocusable(false); installCertificatesButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); installCertificatesButton.setName("installCertificatesButton"); // NOI18N installCertificatesButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(installCertificatesButton); jSeparator6.setName("jSeparator6"); // NOI18N jToolBar1.add(jSeparator6); renewSignerButton.setAction(actionMap.get("renewSigner")); // NOI18N renewSignerButton.setText(resourceMap.getString("renewSignerButton.text")); // NOI18N renewSignerButton.setFocusable(false); renewSignerButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); renewSignerButton.setName("renewSignerButton"); // NOI18N renewSignerButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(renewSignerButton); statusPanel.setName("statusPanel"); // NOI18N statusMessageLabel.setName("statusMessageLabel"); // NOI18N statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N progressBar.setName("progressBar"); // NOI18N javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel); statusPanel.setLayout(statusPanelLayout); statusPanelLayout.setHorizontalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup() .addContainerGap(1209, Short.MAX_VALUE) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(statusAnimationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPanelLayout.createSequentialGroup().addGap(135, 135, 135) .addComponent(statusMessageLabel).addContainerGap(1273, Short.MAX_VALUE)))); statusPanelLayout.setVerticalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(statusAnimationLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(progressBar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPanelLayout.createSequentialGroup().addContainerGap() .addComponent(statusMessageLabel) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))); authEditPanel.setName("authEditPanel"); // NOI18N jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N jLabel4.setName("jLabel4"); // NOI18N editSerialNumberTextfield.setName("editSerialNumberTextfield"); // NOI18N jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N jLabel5.setName("jLabel5"); // NOI18N editIssuerDNTextfield.setName("editIssuerDNTextfield"); // NOI18N editUpdateAllCheckbox.setText(resourceMap.getString("editUpdateAllCheckbox.text")); // NOI18N editUpdateAllCheckbox.setName("editUpdateAllCheckbox"); // NOI18N loadCertButton.setText(resourceMap.getString("loadCertButton.text")); // NOI18N loadCertButton.setName("loadCertButton"); // NOI18N loadCertButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadFromCertificateButtonPerformed(evt); } }); javax.swing.GroupLayout authEditPanelLayout = new javax.swing.GroupLayout(authEditPanel); authEditPanel.setLayout(authEditPanelLayout); authEditPanelLayout.setHorizontalGroup(authEditPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authEditPanelLayout.createSequentialGroup().addContainerGap() .addGroup(authEditPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(editSerialNumberTextfield, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) .addComponent(editIssuerDNTextfield, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) .addComponent(editUpdateAllCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 331, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(loadCertButton, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))); authEditPanelLayout.setVerticalGroup(authEditPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authEditPanelLayout.createSequentialGroup().addGap(51, 51, 51).addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(authEditPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(editSerialNumberTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(loadCertButton)) .addGap(18, 18, 18).addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(editIssuerDNTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(45, 45, 45).addComponent(editUpdateAllCheckbox) .addContainerGap(60, Short.MAX_VALUE))); passwordPanel.setName("passwordPanel"); // NOI18N passwordPanelLabel.setText(resourceMap.getString("passwordPanelLabel.text")); // NOI18N passwordPanelLabel.setName("passwordPanelLabel"); // NOI18N passwordPanelField.setText(resourceMap.getString("passwordPanelField.text")); // NOI18N passwordPanelField.setName("passwordPanelField"); // NOI18N javax.swing.GroupLayout passwordPanelLayout = new javax.swing.GroupLayout(passwordPanel); passwordPanel.setLayout(passwordPanelLayout); passwordPanelLayout.setHorizontalGroup( passwordPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, passwordPanelLayout.createSequentialGroup().addContainerGap() .addGroup(passwordPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(passwordPanelField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE) .addComponent(passwordPanelLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE)) .addContainerGap())); passwordPanelLayout.setVerticalGroup(passwordPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(passwordPanelLayout.createSequentialGroup().addContainerGap() .addComponent(passwordPanelLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(passwordPanelField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jTabbedPane1.setName("jTabbedPane1"); // NOI18N mainPanel.setName("mainPanel"); // NOI18N jSplitPane1.setName("jSplitPane1"); // NOI18N jScrollPane2.setMinimumSize(new java.awt.Dimension(250, 26)); jScrollPane2.setName("jScrollPane2"); // NOI18N jScrollPane2.setPreferredSize(new java.awt.Dimension(550, 202)); workersList.setName("workersList"); // NOI18N jScrollPane2.setViewportView(workersList); jSplitPane1.setLeftComponent(jScrollPane2); jPanel1.setName("jPanel1"); // NOI18N workerComboBox.setMinimumSize(new java.awt.Dimension(39, 60)); workerComboBox.setName("workerComboBox"); // NOI18N workerTabbedPane.setName("workerTabbedPane"); // NOI18N statusSummaryTab.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); statusSummaryTab.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); statusSummaryTab.setName("statusSummaryTab"); // NOI18N statusSummaryTextPane.setEditable(false); statusSummaryTextPane.setText(resourceMap.getString("statusSummaryTextPane.text")); // NOI18N statusSummaryTextPane.setName("statusSummaryTextPane"); // NOI18N statusSummaryTab.setViewportView(statusSummaryTextPane); workerTabbedPane.addTab(resourceMap.getString("statusSummaryTab.TabConstraints.tabTitle"), statusSummaryTab); // NOI18N statusPropertiesTab.setName("statusPropertiesTab"); // NOI18N statusPropertiesScrollPane .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); statusPropertiesScrollPane.setName("statusPropertiesScrollPane"); // NOI18N propertiesTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { { "ID", "71", null }, { "Name", "Sod1", null }, { "Token status", "ACTIVE", null }, { "Signatures:", "0", null }, { "Signature limit:", "100000", null }, { "Validity not before:", "2010-05-20", null }, { "Validity not after:", "2020-05-20", null }, { "Certificate chain:", "CN=Sod1, O=Document Signer Pecuela 11, C=PE issued by CN=CSCA Pecuela,O=Pecuela MOI,C=PE", "..." } }, new String[] { "Property", "Value", "" }) { Class[] types = new Class[] { java.lang.Object.class, java.lang.Object.class, java.lang.String.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); propertiesTable.setName("propertiesTable"); // NOI18N statusPropertiesScrollPane.setViewportView(propertiesTable); statusPropertiesDetailsButton.setText(resourceMap.getString("statusPropertiesDetailsButton.text")); // NOI18N statusPropertiesDetailsButton.setEnabled(false); statusPropertiesDetailsButton.setName("statusPropertiesDetailsButton"); // NOI18N statusPropertiesDetailsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { statusPropertiesDetailsButtonActionPerformed(evt); } }); javax.swing.GroupLayout statusPropertiesTabLayout = new javax.swing.GroupLayout(statusPropertiesTab); statusPropertiesTab.setLayout(statusPropertiesTabLayout); statusPropertiesTabLayout.setHorizontalGroup(statusPropertiesTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPropertiesTabLayout.createSequentialGroup().addContainerGap(969, Short.MAX_VALUE) .addComponent(statusPropertiesDetailsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) .addGroup(statusPropertiesTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPropertiesTabLayout .createSequentialGroup().addContainerGap().addComponent(statusPropertiesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 941, Short.MAX_VALUE) .addGap(112, 112, 112)))); statusPropertiesTabLayout.setVerticalGroup(statusPropertiesTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPropertiesTabLayout.createSequentialGroup().addContainerGap() .addComponent(statusPropertiesDetailsButton).addContainerGap(678, Short.MAX_VALUE)) .addGroup(statusPropertiesTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPropertiesTabLayout .createSequentialGroup().addContainerGap().addComponent(statusPropertiesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE) .addContainerGap()))); workerTabbedPane.addTab(resourceMap.getString("statusPropertiesTab.TabConstraints.tabTitle"), statusPropertiesTab); // NOI18N configurationTab.setName("configurationTab"); // NOI18N jScrollPane6.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPane6.setName("jScrollPane6"); // NOI18N configurationTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { { "ID", "71", null }, { "Name", "Sod1", null }, { "Token status", "ACTIVE", null }, { "Signatures:", "0", null }, { "Signature limit:", "100000", null }, { "Validity not before:", "2010-05-20", null }, { "Validity not after:", "2020-05-20", null }, { "Certificate chain:", "CN=Sod1, O=Document Signer Pecuela 11, C=PE issued by CN=CSCA Pecuela,O=Pecuela MOI,C=PE", "..." } }, new String[] { "Property", "Value", "" }) { Class[] types = new Class[] { java.lang.Object.class, java.lang.Object.class, java.lang.String.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); configurationTable.setName("configurationTable"); // NOI18N jScrollPane6.setViewportView(configurationTable); addButton.setText(resourceMap.getString("addButton.text")); // NOI18N addButton.setName("addButton"); // NOI18N addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); editButton.setText(resourceMap.getString("editButton.text")); // NOI18N editButton.setEnabled(false); editButton.setName("editButton"); // NOI18N editButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { editButtonActionPerformed(evt); } }); removeButton.setText(resourceMap.getString("removeButton.text")); // NOI18N removeButton.setEnabled(false); removeButton.setName("removeButton"); // NOI18N removeButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeButtonActionPerformed(evt); } }); javax.swing.GroupLayout configurationTabLayout = new javax.swing.GroupLayout(configurationTab); configurationTab.setLayout(configurationTabLayout); configurationTabLayout.setHorizontalGroup(configurationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, configurationTabLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 931, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(configurationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(addButton).addComponent(editButton).addComponent(removeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); configurationTabLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { addButton, editButton, removeButton }); configurationTabLayout.setVerticalGroup(configurationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(configurationTabLayout.createSequentialGroup().addContainerGap() .addGroup(configurationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE) .addGroup(configurationTabLayout.createSequentialGroup().addComponent(addButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(editButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(removeButton))) .addContainerGap())); workerTabbedPane.addTab("Configuration", configurationTab); authorizationTab.setName("authorizationTab"); // NOI18N jScrollPane7.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPane7.setName("jScrollPane7"); // NOI18N authTable.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[] { "Certificate serial number", "Issuer DN" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean[] { false, false }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); authTable.setName("authTable"); // NOI18N authTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane7.setViewportView(authTable); authAddButton.setText(resourceMap.getString("authAddButton.text")); // NOI18N authAddButton.setName("authAddButton"); // NOI18N authAddButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { authAddButtonActionPerformed(evt); } }); authEditButton.setText(resourceMap.getString("authEditButton.text")); // NOI18N authEditButton.setEnabled(false); authEditButton.setName("authEditButton"); // NOI18N authEditButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { authEditButtonActionPerformed(evt); } }); authRemoveButton.setText(resourceMap.getString("authRemoveButton.text")); // NOI18N authRemoveButton.setEnabled(false); authRemoveButton.setName("authRemoveButton"); // NOI18N authRemoveButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { authRemoveButtonActionPerformed(evt); } }); javax.swing.GroupLayout authorizationTabLayout = new javax.swing.GroupLayout(authorizationTab); authorizationTab.setLayout(authorizationTabLayout); authorizationTabLayout.setHorizontalGroup(authorizationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authorizationTabLayout.createSequentialGroup().addContainerGap(954, Short.MAX_VALUE) .addGroup(authorizationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(authAddButton, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(authEditButton, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(authRemoveButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) .addGroup(authorizationTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authorizationTabLayout .createSequentialGroup().addGap(6, 6, 6).addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 935, Short.MAX_VALUE) .addGap(124, 124, 124)))); authorizationTabLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { authAddButton, authEditButton, authRemoveButton }); authorizationTabLayout.setVerticalGroup( authorizationTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authorizationTabLayout.createSequentialGroup().addContainerGap() .addComponent(authAddButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(authEditButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(authRemoveButton).addContainerGap(574, Short.MAX_VALUE)) .addGroup(authorizationTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(authorizationTabLayout .createSequentialGroup().addContainerGap().addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE) .addContainerGap()))); workerTabbedPane.addTab(resourceMap.getString("authorizationTab.TabConstraints.tabTitle"), authorizationTab); // NOI18N cryptoTokenTab.setName("cryptoTokenTab"); // NOI18N tokenEntriesReloadButton.setAction(actionMap.get("reloadTokenEntries")); // NOI18N tokenEntriesReloadButton.setText(resourceMap.getString("tokenEntriesReloadButton.text")); // NOI18N tokenEntriesReloadButton.setName("tokenEntriesReloadButton"); // NOI18N tokenEntriesGenerateKeyButton.setText(resourceMap.getString("tokenEntriesGenerateKeyButton.text")); // NOI18N tokenEntriesGenerateKeyButton.setName("tokenEntriesGenerateKeyButton"); // NOI18N tokenEntriesGenerateKeyButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesGenerateKeyButtonActionPerformed(evt); } }); tokenEntriesTestButton.setText(resourceMap.getString("tokenEntriesTestButton.text")); // NOI18N tokenEntriesTestButton.setEnabled(false); tokenEntriesTestButton.setName("tokenEntriesTestButton"); // NOI18N tokenEntriesTestButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesTestButtonActionPerformed(evt); } }); tokenEntriesGenerateCSRButton.setText(resourceMap.getString("tokenEntriesGenerateCSRButton.text")); // NOI18N tokenEntriesGenerateCSRButton.setEnabled(false); tokenEntriesGenerateCSRButton.setName("tokenEntriesGenerateCSRButton"); // NOI18N tokenEntriesGenerateCSRButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesGenerateCSRButtonActionPerformed(evt); } }); tokenEntriesImportButton.setText(resourceMap.getString("tokenEntriesImportButton.text")); // NOI18N tokenEntriesImportButton.setEnabled(false); tokenEntriesImportButton.setName("tokenEntriesImportButton"); // NOI18N tokenEntriesImportButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesImportButtonActionPerformed(evt); } }); tokenEntriesRemoveButton.setText(resourceMap.getString("tokenEntriesRemoveButton.text")); // NOI18N tokenEntriesRemoveButton.setEnabled(false); tokenEntriesRemoveButton.setName("tokenEntriesRemoveButton"); // NOI18N tokenEntriesRemoveButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesRemoveButtonActionPerformed(evt); } }); tokenEntriesDetailsButton.setText(resourceMap.getString("tokenEntriesDetailsButton.text")); // NOI18N tokenEntriesDetailsButton.setEnabled(false); tokenEntriesDetailsButton.setName("tokenEntriesDetailsButton"); // NOI18N tokenEntriesDetailsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesDetailsButtonActionPerformed(evt); } }); tokenEntriesStartIndexTextfield.setText(resourceMap.getString("tokenEntriesStartIndexTextfield.text")); // NOI18N tokenEntriesStartIndexTextfield.setName("tokenEntriesStartIndexTextfield"); // NOI18N tokenEntriesDisplayingToIndex.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); tokenEntriesDisplayingToIndex.setText(resourceMap.getString("tokenEntriesDisplayingToIndex.text")); // NOI18N tokenEntriesDisplayingToIndex.setName("tokenEntriesDisplayingToIndex"); // NOI18N tokenEntriesNextButton.setText(resourceMap.getString("tokenEntriesNextButton.text")); // NOI18N tokenEntriesNextButton.setEnabled(false); tokenEntriesNextButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); tokenEntriesNextButton.setName("tokenEntriesNextButton"); // NOI18N tokenEntriesNextButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); tokenEntriesNextButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesNextButtonActionPerformed(evt); } }); jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N jLabel15.setName("jLabel15"); // NOI18N tokenEntriesMaxEntriesTextfield.setText(resourceMap.getString("tokenEntriesMaxEntriesTextfield.text")); // NOI18N tokenEntriesMaxEntriesTextfield.setName("tokenEntriesMaxEntriesTextfield"); // NOI18N tokenEntriesFirstButton.setText(resourceMap.getString("tokenEntriesFirstButton.text")); // NOI18N tokenEntriesFirstButton.setEnabled(false); tokenEntriesFirstButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); tokenEntriesFirstButton.setName("tokenEntriesFirstButton"); // NOI18N tokenEntriesFirstButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); tokenEntriesFirstButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesFirstButtonActionPerformed(evt); } }); tokenEntriesPreviousButton.setText(resourceMap.getString("tokenEntriesPreviousButton.text")); // NOI18N tokenEntriesPreviousButton.setEnabled(false); tokenEntriesPreviousButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); tokenEntriesPreviousButton.setName("tokenEntriesPreviousButton"); // NOI18N tokenEntriesPreviousButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); tokenEntriesPreviousButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tokenEntriesPreviousButtonActionPerformed(evt); } }); jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N jLabel1.setName("jLabel1"); // NOI18N tokenEntriesPanel.setName("tokenEntriesPanel"); // NOI18N tokenEntriesPanel.setLayout(new java.awt.CardLayout()); tokenEntriesScrollpane.setName("tokenEntriesScrollpane"); // NOI18N tokenEntriesTable .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" })); tokenEntriesTable.setName("tokenEntriesTable"); // NOI18N tokenEntriesTable.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tokenEntriesTableMouseClicked(evt); } }); tokenEntriesTable.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { tokenEntriesTableKeyReleased(evt); } }); tokenEntriesScrollpane.setViewportView(tokenEntriesTable); tokenEntriesPanel.add(tokenEntriesScrollpane, "tokenEntriesTableCard"); tokenEntriesErrorPanel.setName("tokenEntriesErrorPanel"); // NOI18N jScrollPane9.setName("jScrollPane9"); // NOI18N tokenEntriesErrorEditor.setEditable(false); tokenEntriesErrorEditor.setName("tokenEntriesErrorEditor"); // NOI18N jScrollPane9.setViewportView(tokenEntriesErrorEditor); javax.swing.GroupLayout tokenEntriesErrorPanelLayout = new javax.swing.GroupLayout(tokenEntriesErrorPanel); tokenEntriesErrorPanel.setLayout(tokenEntriesErrorPanelLayout); tokenEntriesErrorPanelLayout.setHorizontalGroup( tokenEntriesErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane9, javax.swing.GroupLayout.Alignment.TRAILING)); tokenEntriesErrorPanelLayout.setVerticalGroup( tokenEntriesErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)); tokenEntriesPanel.add(tokenEntriesErrorPanel, "tokenEntriesErrorCard"); javax.swing.GroupLayout cryptoTokenTabLayout = new javax.swing.GroupLayout(cryptoTokenTab); cryptoTokenTab.setLayout(cryptoTokenTabLayout); cryptoTokenTabLayout.setHorizontalGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(cryptoTokenTabLayout.createSequentialGroup().addContainerGap() .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1041, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cryptoTokenTabLayout .createSequentialGroup() .addComponent(tokenEntriesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 816, Short.MAX_VALUE) .addGap(18, 18, 18) .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(cryptoTokenTabLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(tokenEntriesImportButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tokenEntriesRemoveButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tokenEntriesDetailsButton)) .addComponent(tokenEntriesGenerateCSRButton) .addComponent(tokenEntriesTestButton) .addComponent(tokenEntriesGenerateKeyButton))) .addGroup(cryptoTokenTabLayout.createSequentialGroup() .addComponent(tokenEntriesFirstButton, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesPreviousButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(tokenEntriesReloadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(tokenEntriesNextButton, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(tokenEntriesStartIndexTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesDisplayingToIndex, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel15) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesMaxEntriesTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); cryptoTokenTabLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { tokenEntriesDetailsButton, tokenEntriesGenerateCSRButton, tokenEntriesGenerateKeyButton, tokenEntriesImportButton, tokenEntriesRemoveButton, tokenEntriesTestButton }); cryptoTokenTabLayout.setVerticalGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cryptoTokenTabLayout.createSequentialGroup() .addContainerGap().addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(tokenEntriesNextButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tokenEntriesFirstButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tokenEntriesPreviousButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tokenEntriesReloadButton)) .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tokenEntriesStartIndexTextfield) .addComponent(tokenEntriesDisplayingToIndex) .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE) .addComponent(tokenEntriesMaxEntriesTextfield))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(cryptoTokenTabLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(cryptoTokenTabLayout.createSequentialGroup() .addComponent(tokenEntriesGenerateKeyButton).addGap(18, 18, 18) .addComponent(tokenEntriesTestButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesGenerateCSRButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesImportButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tokenEntriesRemoveButton).addGap(18, 18, 18) .addComponent(tokenEntriesDetailsButton)) .addComponent(tokenEntriesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)) .addContainerGap())); workerTabbedPane.addTab(resourceMap.getString("cryptoTokenTab.TabConstraints.tabTitle"), cryptoTokenTab); // NOI18N javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(workerTabbedPane, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(workerComboBox, javax.swing.GroupLayout.Alignment.LEADING, 0, 1085, Short.MAX_VALUE)) .addContainerGap())); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap() .addComponent(workerComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(workerTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 784, Short.MAX_VALUE))); jSplitPane1.setRightComponent(jPanel1); javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel); mainPanel.setLayout(mainPanelLayout); mainPanelLayout.setHorizontalGroup(mainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1364, Short.MAX_VALUE) .addContainerGap())); mainPanelLayout.setVerticalGroup(mainPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 857, Short.MAX_VALUE) .addContainerGap())); jTabbedPane1.addTab(resourceMap.getString("mainPanel.TabConstraints.tabTitle"), mainPanel); // NOI18N auditPanel.setName("auditPanel"); // NOI18N jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); jSplitPane2.setName("jSplitPane2"); // NOI18N jPanel2.setMinimumSize(new java.awt.Dimension(0, 123)); jPanel2.setName("jPanel2"); // NOI18N jPanel2.setPreferredSize(new java.awt.Dimension(1086, 423)); jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N jLabel3.setName("jLabel3"); // NOI18N jScrollPane3.setName("jScrollPane3"); // NOI18N conditionsTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "Event", "Not equals", "Access Control" } }, new String[] { "Column", "Condition", "Value" }) { boolean[] canEdit = new boolean[] { false, true, true }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); conditionsTable.setName("conditionsTable"); // NOI18N conditionsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane3.setViewportView(conditionsTable); conditionsTable.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("conditionsTable.columnModel.title0")); // NOI18N conditionsTable.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("conditionsTable.columnModel.title1")); // NOI18N conditionsTable.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("conditionsTable.columnModel.title2")); // NOI18N jButtonAuditConditionAdd.setText(resourceMap.getString("jButtonAuditConditionAdd.text")); // NOI18N jButtonAuditConditionAdd.setName("jButtonAuditConditionAdd"); // NOI18N jButtonAuditConditionAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAuditConditionAddActionPerformed(evt); } }); jButtonAuditConditionRemove.setText(resourceMap.getString("jButtonAuditConditionRemove.text")); // NOI18N jButtonAuditConditionRemove.setEnabled(false); jButtonAuditConditionRemove.setName("jButtonAuditConditionRemove"); // NOI18N jButtonAuditConditionRemove.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAuditConditionRemoveActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 775, Short.MAX_VALUE) .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 775, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButtonAuditConditionRemove, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonAuditConditionAdd, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)) .addGap(463, 463, 463))); jPanel2Layout .setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButtonAuditConditionAdd) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonAuditConditionRemove)) .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)) .addContainerGap())); jSplitPane2.setLeftComponent(jPanel2); jPanel3.setName("jPanel3"); // NOI18N auditlogFirstButton.setText(resourceMap.getString("auditlogFirstButton.text")); // NOI18N auditlogFirstButton.setEnabled(false); auditlogFirstButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); auditlogFirstButton.setName("auditlogFirstButton"); // NOI18N auditlogFirstButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); auditlogFirstButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { auditlogFirstButtonActionPerformed(evt); } }); auditlogPreviousButton.setText(resourceMap.getString("auditlogPreviousButton.text")); // NOI18N auditlogPreviousButton.setEnabled(false); auditlogPreviousButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); auditlogPreviousButton.setName("auditlogPreviousButton"); // NOI18N auditlogPreviousButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); auditlogPreviousButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { auditlogPreviousButtonActionPerformed(evt); } }); auditlogReloadButton.setAction(actionMap.get("auditlogReload")); // NOI18N auditlogReloadButton.setText(resourceMap.getString("auditlogReloadButton.text")); // NOI18N auditlogReloadButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); auditlogReloadButton.setName("auditlogReloadButton"); // NOI18N auditlogReloadButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); auditlogNextButton.setText(resourceMap.getString("auditlogNextButton.text")); // NOI18N auditlogNextButton.setEnabled(false); auditlogNextButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); auditlogNextButton.setName("auditlogNextButton"); // NOI18N auditlogNextButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); auditlogNextButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { auditlogNextButtonActionPerformed(evt); } }); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N jLabel6.setName("jLabel6"); // NOI18N auditlogStartIndexTextfield.setText(resourceMap.getString("auditlogStartIndexTextfield.text")); // NOI18N auditlogStartIndexTextfield.setName("auditlogStartIndexTextfield"); // NOI18N auditlogDisplayingToIndex.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); auditlogDisplayingToIndex.setText(resourceMap.getString("auditlogDisplayingToIndex.text")); // NOI18N auditlogDisplayingToIndex.setName("auditlogDisplayingToIndex"); // NOI18N jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N jLabel8.setName("jLabel8"); // NOI18N auditlogMaxEntriesTextfield.setText(resourceMap.getString("auditlogMaxEntriesTextfield.text")); // NOI18N auditlogMaxEntriesTextfield.setName("auditlogMaxEntriesTextfield"); // NOI18N auditlogPanel.setName("auditlogPanel"); // NOI18N auditlogPanel.setLayout(new java.awt.CardLayout()); auditlogTablePanel.setName("auditlogTablePanel"); // NOI18N auditlogTableScrollPane.setEnabled(false); auditlogTableScrollPane.setName("auditlogTableScrollPane"); // NOI18N auditLogTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { "2013-01-19 11:47:52+0100", "EJBCA Node Start", "Success", "StartServicesServlet.init", "Service", null, null, null, "atitudem", "Init, EJBCA 5.0.5 (r14787) startup." } }, new String[] { "Time", "Event", "Outcome", "Administrator", "Module", "Certificate Authority", "Certificate", "Username", "Node", "Details" })); auditLogTable.setEnabled(false); auditLogTable.setName("auditLogTable"); // NOI18N auditLogTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); auditLogTable.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { auditLogTableMouseClicked(evt); } }); auditLogTable.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { auditLogTableKeyReleased(evt); } }); auditlogTableScrollPane.setViewportView(auditLogTable); javax.swing.GroupLayout auditlogTablePanelLayout = new javax.swing.GroupLayout(auditlogTablePanel); auditlogTablePanel.setLayout(auditlogTablePanelLayout); auditlogTablePanelLayout.setHorizontalGroup(auditlogTablePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1340, Short.MAX_VALUE) .addGroup(auditlogTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(auditlogTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1340, Short.MAX_VALUE))); auditlogTablePanelLayout.setVerticalGroup(auditlogTablePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 658, Short.MAX_VALUE) .addGroup(auditlogTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(auditlogTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 658, Short.MAX_VALUE))); auditlogPanel.add(auditlogTablePanel, "auditlogTableCard"); auditlogErrorPanel.setName("auditlogErrorPanel"); // NOI18N jScrollPane5.setName("jScrollPane5"); // NOI18N auditlogErrorEditor.setEditable(false); auditlogErrorEditor.setName("auditlogErrorEditor"); // NOI18N jScrollPane5.setViewportView(auditlogErrorEditor); javax.swing.GroupLayout auditlogErrorPanelLayout = new javax.swing.GroupLayout(auditlogErrorPanel); auditlogErrorPanel.setLayout(auditlogErrorPanelLayout); auditlogErrorPanelLayout.setHorizontalGroup( auditlogErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING)); auditlogErrorPanelLayout.setVerticalGroup( auditlogErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 658, Short.MAX_VALUE)); auditlogPanel.add(auditlogErrorPanel, "auditlogErrorCard"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap() .addComponent(auditlogFirstButton, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogPreviousButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogReloadButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogNextButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogStartIndexTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogDisplayingToIndex, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(auditlogMaxEntriesTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(402, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout .createSequentialGroup().addContainerGap().addComponent(auditlogPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 1340, Short.MAX_VALUE) .addContainerGap()))); jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { auditlogFirstButton, auditlogNextButton, auditlogPreviousButton, auditlogReloadButton }); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(auditlogFirstButton) .addComponent(auditlogPreviousButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(auditlogReloadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(auditlogNextButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(auditlogStartIndexTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(auditlogDisplayingToIndex).addComponent(jLabel8) .addComponent(auditlogMaxEntriesTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(674, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup().addGap(59, 59, 59) .addComponent(auditlogPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()))); jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { auditlogFirstButton, auditlogNextButton, auditlogPreviousButton, auditlogReloadButton, jLabel6 }); jSplitPane2.setRightComponent(jPanel3); javax.swing.GroupLayout auditPanelLayout = new javax.swing.GroupLayout(auditPanel); auditPanel.setLayout(auditPanelLayout); auditPanelLayout.setHorizontalGroup(auditPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(auditPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jSplitPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1364, Short.MAX_VALUE) .addContainerGap())); auditPanelLayout.setVerticalGroup(auditPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(auditPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jSplitPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 857, Short.MAX_VALUE) .addContainerGap())); jTabbedPane1.addTab(resourceMap.getString("auditPanel.TabConstraints.tabTitle"), auditPanel); // NOI18N archivePanel.setName("archivePanel"); // NOI18N jSplitPane3.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); jSplitPane3.setName("jSplitPane3"); // NOI18N jPanel4.setMinimumSize(new java.awt.Dimension(0, 123)); jPanel4.setName("jPanel4"); // NOI18N jPanel4.setPreferredSize(new java.awt.Dimension(1086, 423)); jLabel11.setFont(resourceMap.getFont("jLabel11.font")); // NOI18N jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N jLabel11.setName("jLabel11"); // NOI18N jScrollPane4.setName("jScrollPane4"); // NOI18N archiveConditionsTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Column", "Condition", "Value" }) { boolean[] canEdit = new boolean[] { false, true, true }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); archiveConditionsTable.setName("archiveConditionsTable"); // NOI18N archiveConditionsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane4.setViewportView(archiveConditionsTable); archiveConditionsTable.getColumnModel().getSelectionModel() .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); archiveConditionsTable.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("archiveConditionsTable.columnModel.title0")); // NOI18N archiveConditionsTable.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("archiveConditionsTable.columnModel.title1")); // NOI18N archiveConditionsTable.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("archiveConditionsTable.columnModel.title2")); // NOI18N jButtonArchiveAuditConditionAdd.setText(resourceMap.getString("jButtonArchiveAuditConditionAdd.text")); // NOI18N jButtonArchiveAuditConditionAdd.setName("jButtonArchiveAuditConditionAdd"); // NOI18N jButtonArchiveAuditConditionAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonArchiveConditionAddActionPerformed(evt); } }); jButtonArchiveConditionRemove.setText(resourceMap.getString("jButtonArchiveConditionRemove.text")); // NOI18N jButtonArchiveConditionRemove.setEnabled(false); jButtonArchiveConditionRemove.setName("jButtonArchiveConditionRemove"); // NOI18N jButtonArchiveConditionRemove.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonArchiveConditionRemoveActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 775, Short.MAX_VALUE) .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 775, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButtonArchiveConditionRemove, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonArchiveAuditConditionAdd, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)) .addGap(463, 463, 463))); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jButtonArchiveAuditConditionAdd) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonArchiveConditionRemove)) .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)) .addContainerGap())); jSplitPane3.setLeftComponent(jPanel4); jPanel5.setName("jPanel5"); // NOI18N archiveFirstButton.setText(resourceMap.getString("archiveFirstButton.text")); // NOI18N archiveFirstButton.setEnabled(false); archiveFirstButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); archiveFirstButton.setName("archiveFirstButton"); // NOI18N archiveFirstButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); archiveFirstButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { archiveFirstButtonActionPerformed(evt); } }); archivePreviousButton.setText(resourceMap.getString("archivePreviousButton.text")); // NOI18N archivePreviousButton.setEnabled(false); archivePreviousButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); archivePreviousButton.setName("archivePreviousButton"); // NOI18N archivePreviousButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); archivePreviousButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { archivePreviousButtonActionPerformed(evt); } }); archiveReloadButton.setAction(actionMap.get("archiveReload")); // NOI18N archiveReloadButton.setText(resourceMap.getString("archiveReloadButton.text")); // NOI18N archiveReloadButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); archiveReloadButton.setName("archiveReloadButton"); // NOI18N archiveReloadButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); archiveNextButton.setText(resourceMap.getString("archiveNextButton.text")); // NOI18N archiveNextButton.setEnabled(false); archiveNextButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); archiveNextButton.setName("archiveNextButton"); // NOI18N archiveNextButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); archiveNextButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { archiveNextButtonActionPerformed(evt); } }); jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N jLabel12.setName("jLabel12"); // NOI18N archiveStartIndexTextfield.setText(resourceMap.getString("archiveStartIndexTextfield.text")); // NOI18N archiveStartIndexTextfield.setName("archiveStartIndexTextfield"); // NOI18N archiveDisplayingToIndex.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); archiveDisplayingToIndex.setText(resourceMap.getString("archiveDisplayingToIndex.text")); // NOI18N archiveDisplayingToIndex.setName("archiveDisplayingToIndex"); // NOI18N jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N jLabel13.setName("jLabel13"); // NOI18N archiveMaxEntriesTextfield.setText(resourceMap.getString("archiveMaxEntriesTextfield.text")); // NOI18N archiveMaxEntriesTextfield.setName("archiveMaxEntriesTextfield"); // NOI18N archiveContentPanel.setName("archiveContentPanel"); // NOI18N archiveContentPanel.setLayout(new java.awt.CardLayout()); archiveTablePanel.setName("archiveTablePanel"); // NOI18N archiveTableScrollPane.setEnabled(false); archiveTableScrollPane.setName("archiveTableScrollPane"); // NOI18N archiveTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Archive ID", "Time", "Type", "Signer ID", "Client Cert Serial Number", "Issuer DN", "IP Address" })); archiveTable.setEnabled(false); archiveTable.setName("archiveTable"); // NOI18N archiveTable.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); archiveTableScrollPane.setViewportView(archiveTable); archiveTable.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title0")); // NOI18N archiveTable.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title1")); // NOI18N archiveTable.getColumnModel().getColumn(2) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title2")); // NOI18N archiveTable.getColumnModel().getColumn(3) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title3")); // NOI18N archiveTable.getColumnModel().getColumn(4) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title4")); // NOI18N archiveTable.getColumnModel().getColumn(5) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title5")); // NOI18N archiveTable.getColumnModel().getColumn(6) .setHeaderValue(resourceMap.getString("archiveTable.columnModel.title6")); // NOI18N javax.swing.GroupLayout archiveTablePanelLayout = new javax.swing.GroupLayout(archiveTablePanel); archiveTablePanel.setLayout(archiveTablePanelLayout); archiveTablePanelLayout.setHorizontalGroup( archiveTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( archiveTableScrollPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1340, Short.MAX_VALUE)); archiveTablePanelLayout.setVerticalGroup( archiveTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( archiveTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE)); archiveContentPanel.add(archiveTablePanel, "archiveTableCard"); archiveErrorPanel.setName("archiveErrorPanel"); // NOI18N jScrollPane8.setName("jScrollPane8"); // NOI18N archiveErrorEditor.setEditable(false); archiveErrorEditor.setName("archiveErrorEditor"); // NOI18N jScrollPane8.setViewportView(archiveErrorEditor); javax.swing.GroupLayout archiveErrorPanelLayout = new javax.swing.GroupLayout(archiveErrorPanel); archiveErrorPanel.setLayout(archiveErrorPanelLayout); archiveErrorPanelLayout.setHorizontalGroup( archiveErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.TRAILING)); archiveErrorPanelLayout.setVerticalGroup( archiveErrorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE)); archiveContentPanel.add(archiveErrorPanel, "archiveErrorCard"); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap() .addComponent(archiveFirstButton, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archivePreviousButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archiveReloadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archiveNextButton, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archiveStartIndexTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archiveDisplayingToIndex, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(archiveMaxEntriesTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(402, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout .createSequentialGroup().addContainerGap().addComponent(archiveContentPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 1340, Short.MAX_VALUE) .addContainerGap()))); jPanel5Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { archiveFirstButton, archiveNextButton, archivePreviousButton, archiveReloadButton }); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(archiveNextButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(archiveReloadButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(archiveFirstButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(archiveStartIndexTextfield, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(archiveMaxEntriesTextfield, javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(archiveDisplayingToIndex) .addComponent(jLabel13)) .addComponent(archivePreviousButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(625, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup().addGap(59, 59, 59) .addComponent(archiveContentPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()))); jSplitPane3.setRightComponent(jPanel5); downloadArchiveEntriesButton.setAction(actionMap.get("archiveFetch")); // NOI18N downloadArchiveEntriesButton.setText(resourceMap.getString("downloadArchiveEntriesButton.text")); // NOI18N downloadArchiveEntriesButton.setName("downloadArchiveEntriesButton"); // NOI18N javax.swing.GroupLayout archivePanelLayout = new javax.swing.GroupLayout(archivePanel); archivePanel.setLayout(archivePanelLayout); archivePanelLayout.setHorizontalGroup(archivePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(archivePanelLayout.createSequentialGroup().addContainerGap() .addGroup(archivePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(archivePanelLayout.createSequentialGroup().addGap(12, 12, 12) .addComponent(downloadArchiveEntriesButton)) .addComponent(jSplitPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1364, Short.MAX_VALUE)) .addContainerGap())); archivePanelLayout.setVerticalGroup(archivePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(archivePanelLayout.createSequentialGroup().addContainerGap() .addComponent(jSplitPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 808, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(downloadArchiveEntriesButton).addContainerGap())); jTabbedPane1.addTab(resourceMap.getString("archivePanel.TabConstraints.tabTitle"), archivePanel); // NOI18N removeKeyPanel.setName("removeKeyPanel"); // NOI18N jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N jLabel7.setName("jLabel7"); // NOI18N aliasTextField.setName("aliasTextField"); // NOI18N javax.swing.GroupLayout removeKeyPanelLayout = new javax.swing.GroupLayout(removeKeyPanel); removeKeyPanel.setLayout(removeKeyPanelLayout); removeKeyPanelLayout.setHorizontalGroup( removeKeyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE) .addComponent(aliasTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)); removeKeyPanelLayout.setVerticalGroup(removeKeyPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(removeKeyPanelLayout.createSequentialGroup().addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(aliasTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))); reloadPanel.setName("reloadPanel"); // NOI18N jEditorPane1.setBackground(resourceMap.getColor("jEditorPane1.background")); // NOI18N jEditorPane1.setContentType(resourceMap.getString("jEditorPane1.contentType")); // NOI18N jEditorPane1.setEditable(false); jEditorPane1.setText(resourceMap.getString("jEditorPane1.text")); // NOI18N jEditorPane1.setName("jEditorPane1"); // NOI18N reloadPanelButtonGroup.add(reloadAllWorkersRadioButton); reloadAllWorkersRadioButton.setText(resourceMap.getString("reloadAllWorkersRadioButton.text")); // NOI18N reloadAllWorkersRadioButton.setName("reloadAllWorkersRadioButton"); // NOI18N reloadPanelButtonGroup.add(reloadSelectedWorkersRadioButton); reloadSelectedWorkersRadioButton.setText(resourceMap.getString("reloadSelectedWorkersRadioButton.text")); // NOI18N reloadSelectedWorkersRadioButton.setName("reloadSelectedWorkersRadioButton"); // NOI18N jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N jLabel9.setName("jLabel9"); // NOI18N javax.swing.GroupLayout reloadPanelLayout = new javax.swing.GroupLayout(reloadPanel); reloadPanel.setLayout(reloadPanelLayout); reloadPanelLayout .setHorizontalGroup(reloadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jEditorPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addGroup(reloadPanelLayout.createSequentialGroup().addContainerGap() .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, reloadPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reloadAllWorkersRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 372, Short.MAX_VALUE) .addContainerGap()) .addGroup(reloadPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reloadSelectedWorkersRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE) .addContainerGap())); reloadPanelLayout.setVerticalGroup(reloadPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reloadPanelLayout.createSequentialGroup() .addComponent(jEditorPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(reloadAllWorkersRadioButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reloadSelectedWorkersRadioButton) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); exportPanel.setName("exportPanel"); // NOI18N jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N jLabel10.setName("jLabel10"); // NOI18N exportPanelButtonGroup.add(exportAllRadioButton); exportAllRadioButton.setText(resourceMap.getString("exportAllRadioButton.text")); // NOI18N exportAllRadioButton.setName("exportAllRadioButton"); // NOI18N exportAllRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exportRadioButtonActionPerformed(evt); } }); exportPanelButtonGroup.add(exportSelectedRadioButton); exportSelectedRadioButton.setText(resourceMap.getString("exportSelectedRadioButton.text")); // NOI18N exportSelectedRadioButton.setName("exportSelectedRadioButton"); // NOI18N exportSelectedRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exportRadioButtonActionPerformed(evt); } }); exportPanelButtonGroup.add(exportNoRadioButton); exportNoRadioButton.setText(resourceMap.getString("exportNoRadioButton.text")); // NOI18N exportNoRadioButton.setName("exportNoRadioButton"); // NOI18N exportNoRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exportRadioButtonActionPerformed(evt); } }); exportAllUnrelatedGlobalCheckbox.setText(resourceMap.getString("exportAllUnrelatedGlobalCheckbox.text")); // NOI18N exportAllUnrelatedGlobalCheckbox.setName("exportAllUnrelatedGlobalCheckbox"); // NOI18N javax.swing.GroupLayout exportPanelLayout = new javax.swing.GroupLayout(exportPanel); exportPanel.setLayout(exportPanelLayout); exportPanelLayout.setHorizontalGroup( exportPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 475, Short.MAX_VALUE) .addGroup(exportPanelLayout.createSequentialGroup().addContainerGap() .addComponent(exportSelectedRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE) .addContainerGap()) .addGroup(exportPanelLayout.createSequentialGroup().addContainerGap() .addComponent(exportNoRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE) .addContainerGap()) .addGroup(exportPanelLayout.createSequentialGroup().addContainerGap() .addComponent(exportAllUnrelatedGlobalCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 451, Short.MAX_VALUE) .addContainerGap()) .addGroup(exportPanelLayout .createSequentialGroup().addContainerGap().addComponent(exportAllRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE) .addContainerGap())); exportPanelLayout .setVerticalGroup(exportPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(exportPanelLayout.createSequentialGroup().addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exportAllRadioButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exportSelectedRadioButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exportNoRadioButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(exportAllUnrelatedGlobalCheckbox))); setComponent(jTabbedPane1); setMenuBar(menuBar); setStatusBar(statusPanel); setToolBar(jToolBar1); }
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 ww w. j a v a 2s . 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.stanwood.nwn2.gui.MainWindow.java
private void createMenuBar() { JMenuBar menuBar = new JMenuBar(); JMenu mnuFile = new JMenu("File"); mnuFile.setMnemonic('F'); JMenuItem newAction = new JMenuItem("Add GUI file"); newAction.setMnemonic('A'); newAction.setIcon(IconManager.getInstance().getIcon(IconManager.SIZE_16, IconManager.ICON_LIST_ADD)); newAction.addActionListener(new ActionListener() { @Override//w w w . ja v a2 s . c o m public void actionPerformed(ActionEvent e) { addNewGUIFile(); } }); mnuFile.add(newAction); Action exitAction = StandardActions.getApplicationExit(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { closeWindow(); } }); mnuFile.add(exitAction); JMenu mnuPrefences = new JMenu("Prefences"); mnuPrefences.setMnemonic('P'); JMenuItem pref = new JMenuItem("Options"); pref.setMnemonic('O'); pref.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { showOptionsDialog(); } }); mnuPrefences.add(pref); JMenu mnuHelp = new JMenu("Help"); mnuHelp.setMnemonic('H'); Action helpAction = StandardActions.getAboutAction(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { AboutDialog ad = new AboutDialog(MainWindow.this, APP_TITLE, APP_VERSION); ad.setApplicationWebLink("http://code.google.com/p/nwn2gui/"); ad.setMessage("A NWN2 GUI XML viewer.\n\n (C) 2010, The NWN2 GUI developers"); ad.addAuthor(new Author("John-Paul Stanford", "dev@stanwood.org.uk", "Lead developer and project creator")); ad.setIcon(new ImageIcon(MainWindow.class.getResource("nwn2gui48.png"))); ad.init(); ad.setVisible(true); } }); mnuHelp.add(helpAction); menuBar.add(mnuFile); menuBar.add(mnuPrefences); menuBar.add(mnuHelp); setJMenuBar(menuBar); }
From source file:org.tinymediamanager.ui.MainWindow.java
/** * Create the application./* w w w .j a v a 2s . c om*/ * * @param name * the name */ public MainWindow(String name) { super(name); setName("mainWindow"); setMinimumSize(new Dimension(1000, 700)); instance = this; JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenu mnTmm = new JMenu("tinyMediaManager"); mnTmm.setMnemonic(KeyEvent.VK_T); menuBar.add(mnTmm); if (!Globals.isDonator()) { mnTmm.add(new RegisterDonatorVersionAction()); } mnTmm.add(new SettingsAction()); mnTmm.addSeparator(); mnTmm.add(new LaunchUpdaterAction()); mnTmm.addSeparator(); mnTmm.add(new ExitAction()); initialize(); // tools menu JMenu tools = new JMenu(BUNDLE.getString("tmm.tools")); //$NON-NLS-1$ tools.setMnemonic(KeyEvent.VK_O); tools.add(new ClearDatabaseAction()); JMenu cache = new JMenu(BUNDLE.getString("tmm.cache")); //$NON-NLS-1$ cache.setMnemonic(KeyEvent.VK_C); tools.add(cache); JMenuItem clearImageCache = new JMenuItem(new ClearImageCacheAction()); clearImageCache.setMnemonic(KeyEvent.VK_I); cache.add(clearImageCache); JMenuItem rebuildImageCache = new JMenuItem(new RebuildImageCacheAction()); rebuildImageCache.setMnemonic(KeyEvent.VK_R); cache.add(rebuildImageCache); JMenuItem tmmFolder = new JMenuItem(BUNDLE.getString("tmm.gotoinstalldir")); //$NON-NLS-1$ tmmFolder.setMnemonic(KeyEvent.VK_I); tools.add(tmmFolder); tmmFolder.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { Path path = Paths.get(System.getProperty("user.dir")); try { // check whether this location exists if (Files.exists(path)) { TmmUIHelper.openFile(path); } } catch (Exception ex) { LOGGER.error("open filemanager", ex); MessageManager.instance.pushMessage(new Message(MessageLevel.ERROR, path, "message.erroropenfolder", new String[] { ":", ex.getLocalizedMessage() })); } } }); JMenuItem tmmLogs = new JMenuItem(BUNDLE.getString("tmm.errorlogs")); //$NON-NLS-1$ tmmLogs.setMnemonic(KeyEvent.VK_L); tools.add(tmmLogs); tmmLogs.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { JDialog logDialog = new LogDialog(); logDialog.setLocationRelativeTo(MainWindow.getActiveInstance()); logDialog.setVisible(true); } }); JMenuItem tmmMessages = new JMenuItem(BUNDLE.getString("tmm.messages")); //$NON-NLS-1$ tmmMessages.setMnemonic(KeyEvent.VK_L); tools.add(tmmMessages); tmmMessages.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { JDialog messageDialog = MessageHistoryDialog.getInstance(); messageDialog.setVisible(true); } }); tools.addSeparator(); final JMenu menuWakeOnLan = new JMenu(BUNDLE.getString("tmm.wakeonlan")); //$NON-NLS-1$ menuWakeOnLan.setMnemonic(KeyEvent.VK_W); menuWakeOnLan.addMenuListener(new MenuListener() { @Override public void menuCanceled(MenuEvent arg0) { } @Override public void menuDeselected(MenuEvent arg0) { } @Override public void menuSelected(MenuEvent arg0) { menuWakeOnLan.removeAll(); for (final WolDevice device : Globals.settings.getWolDevices()) { JMenuItem item = new JMenuItem(device.getName()); item.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { Utils.sendWakeOnLanPacket(device.getMacAddress()); } }); menuWakeOnLan.add(item); } } }); tools.add(menuWakeOnLan); // activate/deactivate WakeOnLan menu item tools.addMenuListener(new MenuListener() { @Override public void menuSelected(MenuEvent e) { if (Globals.settings.getWolDevices().size() > 0) { menuWakeOnLan.setEnabled(true); } else { menuWakeOnLan.setEnabled(false); } } @Override public void menuDeselected(MenuEvent e) { } @Override public void menuCanceled(MenuEvent e) { } }); if (Globals.isDebug()) { final JMenu debugMenu = new JMenu("Debug"); //$NON-NLS-1$ JMenuItem trace = new JMenuItem("set Logger to TRACE"); //$NON-NLS-1$ trace.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); lc.getLogger("org.tinymediamanager").setLevel(Level.TRACE); MessageManager.instance.pushMessage(new Message("Trace levels set!", "")); LOGGER.trace("if you see that, we're now on TRACE logging level ;)"); } }); debugMenu.add(trace); tools.add(debugMenu); } menuBar.add(tools); mnTmm = new JMenu(BUNDLE.getString("tmm.contact")); //$NON-NLS-1$ mnTmm.setMnemonic(KeyEvent.VK_C); mnTmm.add(new FeedbackAction()).setMnemonic(KeyEvent.VK_F); mnTmm.add(new BugReportAction()).setMnemonic(KeyEvent.VK_B); menuBar.add(mnTmm); mnTmm = new JMenu(BUNDLE.getString("tmm.help")); //$NON-NLS-1$ mnTmm.setMnemonic(KeyEvent.VK_H); menuBar.add(mnTmm); mnTmm.add(new WikiAction()).setMnemonic(KeyEvent.VK_W); mnTmm.add(new FaqAction()).setMnemonic(KeyEvent.VK_F); mnTmm.add(new ForumAction()).setMnemonic(KeyEvent.VK_O); mnTmm.addSeparator(); mnTmm.add(new AboutAction()).setMnemonic(KeyEvent.VK_A); menuBar.add(Box.createGlue()); if (!Globals.isDonator()) { JButton btnDonate = new JButton(new DonateAction()); btnDonate.setBorderPainted(false); btnDonate.setFocusPainted(false); btnDonate.setContentAreaFilled(false); menuBar.add(btnDonate); } checkForUpdate(); }
From source file:org.tinymediamanager.ui.movies.MoviePanel.java
private void buildMenu() { menu.setMnemonic(KeyEvent.VK_M); // menu items JMenuItem menuItem = menu.add(actionUpdateDataSources2); menuItem.setMnemonic(KeyEvent.VK_U); menuItem.setAccelerator(/*from w w w .j ava 2 s . c o m*/ KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); final JMenu menuUpdateDatasources = new JMenu(BUNDLE.getString("update.datasource")); //$NON-NLS-1$ final JMenu menuFindMissingMovies = new JMenu(BUNDLE.getString("movie.findmissing")); //$NON-NLS-1$ menuUpdateDatasources.addMenuListener(new MenuListener() { @Override public void menuCanceled(MenuEvent arg0) { } @Override public void menuDeselected(MenuEvent arg0) { } @Override public void menuSelected(MenuEvent arg0) { menuUpdateDatasources.removeAll(); menuFindMissingMovies.removeAll(); for (String ds : MovieModuleManager.MOVIE_SETTINGS.getMovieDataSource()) { JMenuItem item = new JMenuItem(new MovieUpdateSingleDatasourceAction(ds)); menuUpdateDatasources.add(item); item = new JMenuItem(new MovieFindMissingAction(ds)); menuFindMissingMovies.add(item); } } }); menu.add(menuUpdateDatasources); menu.add(new MovieFindMissingAction()); menu.add(menuFindMissingMovies); menu.add(new MovieCreateOfflineAction(true)); menu.addSeparator(); JMenu menuScrape = new JMenu(BUNDLE.getString("Button.scrape")); //$NON-NLS-1$ menuScrape.setMnemonic(KeyEvent.VK_S); menuItem = menuScrape.add(actionScrape2); menuItem.setMnemonic(KeyEvent.VK_S); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuScrape.add(actionScrapeSelected); menuItem.setMnemonic(KeyEvent.VK_F); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuScrape.add(actionScrapeUnscraped); menuItem.setMnemonic(KeyEvent.VK_U); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuScrape.add(actionScrapeMetadataSelected); menuItem.setMnemonic(KeyEvent.VK_M); menuScrape.add(actionAssignMovieSets); menu.add(menuScrape); JMenu menuEdit = new JMenu(BUNDLE.getString("Button.edit")); //$NON-NLS-1$ menuEdit.setMnemonic(KeyEvent.VK_E); menuItem = menuEdit.add(actionEditMovie2); menuItem.setMnemonic(KeyEvent.VK_E); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_E, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionBatchEdit); menuItem.setMnemonic(KeyEvent.VK_B); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_B, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionSetWatchedFlag); menuItem.setMnemonic(KeyEvent.VK_W); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_W, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionRename2); menuItem.setMnemonic(KeyEvent.VK_R); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionRenamerPreview); menuItem.setMnemonic(KeyEvent.VK_P); menu.add(menuEdit); menuItem = menu.add(actionRewriteNfo); menuItem.setMnemonic(KeyEvent.VK_N); menuItem = menu.add(actionTrailerDownload); menuItem = menu.add(actionSearchSubtitle); menuItem = menu.add(actionDownloadSubtitle); menu.addSeparator(); menuItem = menu.add(actionMediaInformation2); menuItem.setMnemonic(KeyEvent.VK_M); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menu.add(actionExport); menuItem.setMnemonic(KeyEvent.VK_X); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menu.add(actionRemove2); menuItem.setMnemonic(KeyEvent.VK_R); menuItem.setAccelerator(KeyStroke.getKeyStroke((char) KeyEvent.VK_DELETE)); menuItem = menu.add(actionDelete2); menuItem.setMnemonic(KeyEvent.VK_R); menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, ActionEvent.SHIFT_MASK)); menu.addSeparator(); menuItem = menu.add(actionSyncTrakt); menuItem.setMnemonic(KeyEvent.VK_T); menuItem = menu.add(actionSyncWatchedTrakt); menuItem.setMnemonic(KeyEvent.VK_W); menuItem = menu.add(actionSyncSelectedTrakt); menu.addSeparator(); menuItem = menu.add(actionClearImageCache); menuItem.setMnemonic(KeyEvent.VK_C); // popup menu JPopupMenu popupMenu = new JPopupMenu(); popupMenu.add(actionScrape2); popupMenu.add(actionScrapeSelected); popupMenu.add(actionScrapeUnscraped); popupMenu.add(actionScrapeMetadataSelected); popupMenu.add(actionAssignMovieSets); popupMenu.addSeparator(); popupMenu.add(actionEditMovie2); popupMenu.add(actionBatchEdit); popupMenu.add(actionSetWatchedFlag); popupMenu.add(actionRewriteNfo); popupMenu.add(actionRename2); popupMenu.add(actionRenamerPreview); popupMenu.add(actionMediaInformation2); popupMenu.add(actionExport); popupMenu.add(actionTrailerDownload); popupMenu.add(actionSearchSubtitle); popupMenu.add(actionDownloadSubtitle); popupMenu.addSeparator(); popupMenu.add(actionSyncTrakt); popupMenu.add(actionSyncWatchedTrakt); popupMenu.add(actionSyncSelectedTrakt); popupMenu.addSeparator(); popupMenu.add(actionClearImageCache); popupMenu.addSeparator(); popupMenu.add(actionRemove2); popupMenu.add(actionDelete2); if (Globals.isDebug()) { JMenu menuDebug = new JMenu("Debug"); //$NON-NLS-1$ menuDebug.add(debugDumpMovie); menuDebug.addSeparator(); menuDebug.add(new FakeTmmTaskAction("download", 1, 10)); menuDebug.add(new FakeTmmTaskAction("download", 10, 10)); menuDebug.add(new FakeTmmTaskAction("image", 1, 10)); menuDebug.add(new FakeTmmTaskAction("image", 10, 10)); menuDebug.add(new FakeTmmTaskAction("unnamed", 1, 10)); menuDebug.add(new FakeTmmTaskAction("unnamed", 10, 10)); popupMenu.add(menuDebug); } MouseListener mouseListener = new MovieTableMouseListener(popupMenu, table); table.addMouseListener(mouseListener); }
From source file:org.tinymediamanager.ui.tvshows.TvShowPanel.java
/** * Builds the menu.//from w w w.j a va 2 s .c om */ private void buildMenu() { menu.setMnemonic(KeyEvent.VK_V); // menu items JMenuItem menuItem = menu.add(actionUpdateDatasources2); menuItem.setMnemonic(KeyEvent.VK_U); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menu.addSeparator(); JMenu menuScrape = new JMenu(BUNDLE.getString("Button.scrape")); //$NON-NLS-1$ menuScrape.setMnemonic(KeyEvent.VK_S); menuItem = menuScrape.add(actionScrape2); menuItem.setMnemonic(KeyEvent.VK_S); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuScrape.add(actionScrapeSelected); menuItem.setMnemonic(KeyEvent.VK_F); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuScrape.add(actionScrapeNewItems); menuItem.setMnemonic(KeyEvent.VK_N); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menu.add(menuScrape); JMenu menuEdit = new JMenu(BUNDLE.getString("Button.edit")); //$NON-NLS-1$ menuEdit.setMnemonic(KeyEvent.VK_E); menuItem = menuEdit.add(actionEdit2); menuItem.setMnemonic(KeyEvent.VK_E); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_E, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionBatchEdit); menuItem.setMnemonic(KeyEvent.VK_B); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_B, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionSetWatchedFlag); menuItem.setMnemonic(KeyEvent.VK_W); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_W, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menuEdit.add(actionChangeSeasonPoster2); menuItem.setMnemonic(KeyEvent.VK_S); menuEdit.add(actionChangeToDvdOrder); menuEdit.add(actionChangeToAiredOrder); menu.add(menuEdit); menu.add(actionRewriteTvShowNfo); menu.add(actionRewriteTvShowEpisodeNfo); menuItem = menu.add(actionRename); menuItem.setMnemonic(KeyEvent.VK_R); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menu.add(actionMediaInformation2); menuItem.setMnemonic(KeyEvent.VK_M); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menu.add(actionExport); menuItem.setMnemonic(KeyEvent.VK_X); menuItem.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.CTRL_MASK + ActionEvent.SHIFT_MASK)); menuItem = menu.add(actionClearImageCache); menuItem.setMnemonic(KeyEvent.VK_C); menu.addSeparator(); menuItem = menu.add(actionRemove2); menuItem.setAccelerator(KeyStroke.getKeyStroke((char) KeyEvent.VK_DELETE)); menuItem = menu.add(actionDelete2); menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, ActionEvent.SHIFT_MASK)); menu.addSeparator(); menuItem = menu.add(actionSyncTrakt); menuItem.setMnemonic(KeyEvent.VK_T); menuItem = menu.add(actionSyncWatchedTrakt); menuItem.setMnemonic(KeyEvent.VK_W); menuItem = menu.add(actionSyncSelectedTrakt); // popup menu JPopupMenu popupMenu = new JPopupMenu(); popupMenu.add(actionScrape2); popupMenu.add(actionScrapeSelected); popupMenu.add(actionScrapeEpisodes); popupMenu.add(actionScrapeEpisodes2); popupMenu.add(actionScrapeNewItems); // popupMenu.add(actionScrapeMetadataSelected); popupMenu.addSeparator(); popupMenu.add(actionUpdateTvShow); popupMenu.addSeparator(); popupMenu.add(actionEdit2); popupMenu.add(actionChangeSeasonPoster2); popupMenu.add(actionBatchEdit); popupMenu.add(actionSetWatchedFlag); popupMenu.add(actionChangeToDvdOrder); popupMenu.add(actionChangeToAiredOrder); popupMenu.add(actionRewriteTvShowNfo); popupMenu.add(actionRewriteTvShowEpisodeNfo); // popupMenu.add(actionBatchEdit); popupMenu.add(actionRename); popupMenu.add(actionMediaInformation2); popupMenu.add(actionExport); popupMenu.add(actionClearImageCache); popupMenu.addSeparator(); popupMenu.add(actionDownloadSubtitles); popupMenu.add(actionSearchAndDownloadSubtitles); popupMenu.addSeparator(); popupMenu.add(actionSyncTrakt); popupMenu.add(actionSyncWatchedTrakt); popupMenu.add(actionSyncSelectedTrakt); popupMenu.addSeparator(); popupMenu.add(actionRemove2); popupMenu.add(actionDelete2); popupMenu.addSeparator(); popupMenu.add(new ExpandAllAction()); popupMenu.add(new CollapseAllAction()); if (Globals.isDebug()) { JMenu menuDebug = new JMenu("Debug"); //$NON-NLS-1$ menuDebug.add(debugDumpShow); popupMenu.addSeparator(); popupMenu.add(menuDebug); } MouseListener popupListener = new TreePopupListener(popupMenu, tree); tree.addMouseListener(popupListener); }