Search in sources :

Example 16 with JMenuItem

use of javax.swing.JMenuItem in project ACS by ACS-Community.

the class LogMenuBar method getLoadMenuItem.

/**
	 * Returns the LoadMenuItem property value.
	 * @return javax.swing.JMenuItem
	 */
public JMenuItem getLoadMenuItem() {
    if (loadMenuItem == null) {
        ImageIcon icon = new ImageIcon(LogTypeHelper.class.getResource("/load.png"));
        loadMenuItem = new JMenuItem("Load from File", icon);
        loadMenuItem.setName("LoadMenuItem");
    }
    return loadMenuItem;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogTypeHelper(com.cosylab.logging.engine.log.LogTypeHelper) JMenuItem(javax.swing.JMenuItem)

Example 17 with JMenuItem

use of javax.swing.JMenuItem in project ACS by ACS-Community.

the class LogMenuBar method getExitMenuItem.

/**
	 * Returns the ExitMenuItem property value.
	 * @return javax.swing.JMenuItem
	 */
public JMenuItem getExitMenuItem() {
    if (exitMenuItem == null) {
        ImageIcon icon = new ImageIcon(LogTypeHelper.class.getResource("/exit.png"));
        exitMenuItem = new JMenuItem("Exit", icon);
        exitMenuItem.setName("ExitMenuItem");
    }
    return exitMenuItem;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogTypeHelper(com.cosylab.logging.engine.log.LogTypeHelper) JMenuItem(javax.swing.JMenuItem)

Example 18 with JMenuItem

use of javax.swing.JMenuItem in project ACS by ACS-Community.

the class LogMenuBar method getViewErrorLogMenuItem.

/**
	 * Getter 
	 * 
	 * @return The menu item
	 */
public JMenuItem getViewErrorLogMenuItem() {
    if (viewErrorLogMI == null) {
        ImageIcon errorLogIcon = new ImageIcon(LogTypeHelper.class.getResource("/errorLogIcon.png"));
        viewErrorLogMI = new JMenuItem("jlog error log", errorLogIcon);
    }
    return viewErrorLogMI;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogTypeHelper(com.cosylab.logging.engine.log.LogTypeHelper) JMenuItem(javax.swing.JMenuItem)

Example 19 with JMenuItem

use of javax.swing.JMenuItem in project ACS by ACS-Community.

the class LogMenuBar method getLoadURLMenuItem.

/**
	 * Return the LoadURL menu item
	 * 
	 * @return The LoadURL menu item
	 */
public JMenuItem getLoadURLMenuItem() {
    if (loadURLMenuItem == null) {
        ImageIcon icon = new ImageIcon(LogTypeHelper.class.getResource("/loadURL.png"));
        loadURLMenuItem = new JMenuItem("Load from URL", icon);
        loadURLMenuItem.setName("LoadURLMenuItem");
    }
    return loadURLMenuItem;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogTypeHelper(com.cosylab.logging.engine.log.LogTypeHelper) JMenuItem(javax.swing.JMenuItem)

Example 20 with JMenuItem

use of javax.swing.JMenuItem in project ACS by ACS-Community.

the class LogMenuBar method getSearchNextMenuItem.

public JMenuItem getSearchNextMenuItem() {
    if (searchNextMenuItem == null) {
        searchNextMenuItem = new JMenuItem("Search Next");
        searchNextMenuItem.setAccelerator(KeyStroke.getKeyStroke('N', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        searchNextMenuItem.setEnabled(false);
        searchNextMenuItem.setName("SearchNextMenuItem");
    }
    return searchNextMenuItem;
}
Also used : JMenuItem(javax.swing.JMenuItem)

Aggregations

JMenuItem (javax.swing.JMenuItem)1138 ActionEvent (java.awt.event.ActionEvent)559 ActionListener (java.awt.event.ActionListener)463 JMenu (javax.swing.JMenu)373 JPopupMenu (javax.swing.JPopupMenu)229 JMenuBar (javax.swing.JMenuBar)104 AbstractAction (javax.swing.AbstractAction)90 JCheckBoxMenuItem (javax.swing.JCheckBoxMenuItem)76 ArrayList (java.util.ArrayList)72 JPanel (javax.swing.JPanel)70 Point (java.awt.Point)65 JSeparator (javax.swing.JSeparator)63 File (java.io.File)61 JLabel (javax.swing.JLabel)61 BorderLayout (java.awt.BorderLayout)57 JButton (javax.swing.JButton)54 Component (java.awt.Component)53 ButtonGroup (javax.swing.ButtonGroup)50 Dimension (java.awt.Dimension)46 MouseEvent (java.awt.event.MouseEvent)45