forked from dorkbox/SystemTray
Removed commented out/dead code
This commit is contained in:
parent
042bf973c7
commit
3d510e7092
@ -131,14 +131,6 @@ class Menu extends MenuItem {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Adds a swing widget as a menu entry.
|
|
||||||
// *
|
|
||||||
// * @param widget the JComponent that is to be added as an entry
|
|
||||||
// */
|
|
||||||
// TODO: buggy. The menu will **sometimes** stop responding to the "enter" key after this. Mnemonics still work however.
|
|
||||||
// Entry add(JComponent widget);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a menu entry, separator, or sub-menu to this menu
|
* Adds a menu entry, separator, or sub-menu to this menu
|
||||||
*/
|
*/
|
||||||
|
@ -131,20 +131,6 @@ class TestTray {
|
|||||||
submenu.add(disableMenu);
|
submenu.add(disableMenu);
|
||||||
|
|
||||||
|
|
||||||
// TODO: buggy. The menu will **sometimes** stop responding to the "enter" key after this. Mnemonics still work however.
|
|
||||||
// submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
|
||||||
// @Override
|
|
||||||
// public
|
|
||||||
// void actionPerformed(final ActionEvent e) {
|
|
||||||
// MenuItem source = (MenuItem) e.getSource();
|
|
||||||
// JProgressBar progressBar = new JProgressBar(0, 100);
|
|
||||||
// progressBar.setValue(new Random().nextInt(101));
|
|
||||||
// progressBar.setStringPainted(true);
|
|
||||||
// source.getSystemTray().add(progressBar);
|
|
||||||
// }
|
|
||||||
// }));
|
|
||||||
|
|
||||||
|
|
||||||
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
|
@ -189,20 +189,6 @@ class TestTrayJavaFX {
|
|||||||
submenu.add(disableMenu);
|
submenu.add(disableMenu);
|
||||||
|
|
||||||
|
|
||||||
// TODO: buggy. The menu will **sometimes** stop responding to the "enter" key after this. Mnemonics still work however.
|
|
||||||
// submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
|
||||||
// @Override
|
|
||||||
// public
|
|
||||||
// void actionPerformed(final ActionEvent e) {
|
|
||||||
// MenuItem source = (MenuItem) e.getSource();
|
|
||||||
// JProgressBar progressBar = new JProgressBar(0, 100);
|
|
||||||
// progressBar.setValue(new Random().nextInt(101));
|
|
||||||
// progressBar.setStringPainted(true);
|
|
||||||
// source.getSystemTray().add(progressBar);
|
|
||||||
// }
|
|
||||||
// }));
|
|
||||||
|
|
||||||
|
|
||||||
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
|
@ -148,20 +148,6 @@ class TestTraySwt {
|
|||||||
submenu.add(disableMenu);
|
submenu.add(disableMenu);
|
||||||
|
|
||||||
|
|
||||||
// TODO: buggy. The menu will **sometimes** stop responding to the "enter" key after this. Mnemonics still work however.
|
|
||||||
// submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
|
||||||
// @Override
|
|
||||||
// public
|
|
||||||
// void actionPerformed(final ActionEvent e) {
|
|
||||||
// MenuItem source = (MenuItem) e.getSource();
|
|
||||||
// JProgressBar progressBar = new JProgressBar(0, 100);
|
|
||||||
// progressBar.setValue(new Random().nextInt(101));
|
|
||||||
// progressBar.setStringPainted(true);
|
|
||||||
// source.getSystemTray().add(progressBar);
|
|
||||||
// }
|
|
||||||
// }));
|
|
||||||
|
|
||||||
|
|
||||||
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
submenu.add(new MenuItem("Hide tray", LT_GRAY_BUS, new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
|
Loading…
Reference in New Issue
Block a user