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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations