Lines Matching refs:icon
43 TrayIcon icon;
57 System.err.println("Test can fail if the icon hides to a tray icons pool " +
61 "avoid this problem. Or change behavior only for Java SE tray icon " +
79 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Sample Icon");
80 icon.addActionListener((event) -> {
91 if (icon.getActionCommand() != null)
93 "when no action command set " + icon.getActionCommand());
95 icon.setActionCommand("Sample Command");
97 if (! "Sample Command".equals(icon.getActionCommand()))
99 icon.getActionCommand() + " Expected: Sample Command");
102 tray.add(icon);
110 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon);
112 throw new RuntimeException("Unable to find the icon location!");
135 icon.setActionCommand(null);
136 if (icon.getActionCommand() != null) {
138 "not return null " + icon.getActionCommand());