Searched refs:icon (Results 1 - 25 of 155) sorted by relevance

1234567

/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconMethodsTest/
H A DTrayIconMethodsTest.java55 TrayIcon icon = new TrayIcon(image, toolTip, pm);
64 icon.addActionListener(al1);
65 icon.addActionListener(al2);
66 icon.addMouseMotionListener(mml1);
67 icon.addMouseMotionListener(mml2);
68 icon.addMouseListener(ml1);
69 icon.addMouseListener(ml2);
70 tray.add(icon);
72 ActionListener[] actionListeners = icon.getActionListeners();
81 MouseListener[] mouseListeners = icon
[all...]
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconSizeTest/
H A DTrayIconSizeTest.java56 TrayIcon icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB));
58 if (! icon.getSize().equals(dim))
62 "TrayIcon.getSize(): " + icon.getSize());
64 tray.add(icon);
66 if (icon.getSize().width <= 5 || icon.getSize().height <= 5)
67 throw new RuntimeException("FAIL: value returned by TrayIcon.getSize is not correct: " + icon.getSize());
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/
H A DJRadioButtonMenuItem.java100 * Creates a <code>JRadioButtonMenuItem</code> with no set text or icon.
107 * Creates a <code>JRadioButtonMenuItem</code> with an icon.
109 * @param icon the <code>Icon</code> to display on the
112 public JRadioButtonMenuItem(Icon icon) { argument
113 this(null, icon, false);
144 * @param icon the icon to display on the <code>JRadioButtonMenuItem</code>
146 public JRadioButtonMenuItem(String text, Icon icon) { argument
147 this(text, icon, false);
166 * @param icon th
170 JRadioButtonMenuItem(Icon icon, boolean selected) argument
184 JRadioButtonMenuItem(String text, Icon icon, boolean selected) argument
[all...]
H A DJRadioButton.java107 * @param icon the image that the button should display
109 public JRadioButton(Icon icon) { argument
110 this(null, icon, false);
129 * @param icon the image that the button should display
133 public JRadioButton(Icon icon, boolean selected) { argument
134 this(null, icon, selected);
163 * @param icon the image that the button should display
165 public JRadioButton(String text, Icon icon) { argument
166 this(text, icon, false);
174 * @param icon th
178 JRadioButton(String text, Icon icon, boolean selected) argument
[all...]
H A DJCheckBoxMenuItem.java40 * icon associated with it, or both.
107 * Creates an initially unselected check box menu item with no set text or icon.
114 * Creates an initially unselected check box menu item with an icon.
116 * @param icon the icon of the {@code JCheckBoxMenuItem}.
118 public JCheckBoxMenuItem(Icon icon) { argument
119 this(null, icon, false);
144 * Creates an initially unselected check box menu item with the specified text and icon.
147 * @param icon the icon o
149 JCheckBoxMenuItem(String text, Icon icon) argument
170 JCheckBoxMenuItem(String text, Icon icon, boolean b) argument
[all...]
H A DJCheckBox.java91 * Creates an initially unselected check box button with no text, no icon.
98 * Creates an initially unselected check box with an icon.
100 * @param icon the Icon image to display
102 public JCheckBox(Icon icon) { argument
103 this(null, icon, false);
107 * Creates a check box with an icon and specifies whether
110 * @param icon the Icon image to display
114 public JCheckBox(Icon icon, boolean selected) { argument
115 this(null, icon, selected);
154 * the specified text and icon
159 JCheckBox(String text, Icon icon) argument
172 JCheckBox(String text, Icon icon, boolean selected) argument
[all...]
/openjdk9/jdk/test/com/sun/java/swing/plaf/windows/8016551/
H A Dbug8016551.java51 Icon icon = UIManager.getIcon("InternalFrame.closeIcon");
52 if (icon == null) {
56 JMenuItem item = new TestMenuItem(icon);
77 TestMenuItem(Icon icon) { argument
78 super(icon);
/openjdk9/jdk/test/java/awt/TrayIcon/ActionCommand/
H A DActionCommand.java43 TrayIcon icon; field in class:ActionCommand
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
[all...]
/openjdk9/jdk/src/java.desktop/macosx/classes/com/apple/laf/
H A DAquaFocus.java79 final Icon icon;
82 public FocusedIcon(final Icon icon, final int slack) {
83 this.icon = icon;
89 return icon.getIconHeight() + slack + slack;
94 return icon.getIconWidth() + slack + slack;
102 icon.paintIcon(c, sg2d, x + slack, y + slack);
106 icon.paintIcon(c, g, x + slack, y + slack);
113 final Icon icon; field in class:AquaFocus.FocusedIcon
116 public FocusedIcon(final Icon icon, fina argument
[all...]
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconAddTest/
H A DTrayIconAddTest.java56 TrayIcon icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB));
58 tray.add(icon);
61 tray.add(icon);
63 System.out.println("IllegalArgumentException rightly thrown when tray icon is added twice");
/openjdk9/jdk/src/java.desktop/share/classes/sun/swing/
H A DMenuItemCheckIconFactory.java37 boolean isCompatible(Object icon, String prefix); argument
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/
H A DSynthButtonUI.java206 // layout the text and icon
310 * Returns the default icon. This should not callback
313 * @param b button the icon is associated with
314 * @return default icon
318 Icon icon = context.getStyle().getIcon(context, getPropertyPrefix() + "icon");
319 return icon;
323 * Returns the Icon to use for painting the button. The icon is chosen with
326 * @param b button the icon is associated with
327 * @return an icon
[all...]
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicToggleButtonUI.java102 // layout the text and icon
138 * Paints an icon in the specified location.
142 * @param iconRect bounds of an icon
146 Icon icon = null;
150 icon = b.getDisabledSelectedIcon();
152 icon = b.getDisabledIcon();
155 icon = b.getPressedIcon();
156 if(icon == null) {
157 // Use selected icon
158 icon
[all...]
/openjdk9/jdk/test/java/awt/TrayIcon/DblClickActionEventTest/
H A DDblClickActionEventTest.java27 @summary Tests that ActionEvent is generated when a tray icon is double-clicked
59 "When the test starts an icon is added to the SystemTray area.",
63 "Then, if your system allows the tray icon to get focus (for",
65 " icon with SPACE button and single-click with RETURN button.",
97 TrayIcon icon = new TrayIcon(img);
98 icon.setImageAutoSize(true);
99 icon.addActionListener(ev -> Sysout.println(ev.toString()));
100 icon.addMouseListener(new MouseAdapter() {
109 tray.add(icon);
/openjdk9/jdk/make/gensrc/
H A DGensrcIcons.gmk46 $(AWT_ICONPATH)/security-icon-bw16.png \
47 $(AWT_ICONPATH)/security-icon-interim16.png \
48 $(AWT_ICONPATH)/security-icon-yellow16.png \
49 $(AWT_ICONPATH)/security-icon-bw24.png \
50 $(AWT_ICONPATH)/security-icon-interim24.png \
51 $(AWT_ICONPATH)/security-icon-yellow24.png \
52 $(AWT_ICONPATH)/security-icon-bw32.png \
53 $(AWT_ICONPATH)/security-icon-interim32.png \
54 $(AWT_ICONPATH)/security-icon-yellow32.png \
55 $(AWT_ICONPATH)/security-icon
[all...]
/openjdk9/jdk/test/java/awt/TrayIcon/MouseMovedTest/
H A DMouseMovedTest.java52 TrayIcon icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Test icon");
53 icon.addMouseMotionListener(new MouseMotionAdapter() {
59 SystemTray.getSystemTray().add(icon);
/openjdk9/hotspot/src/jdk.hotspot.agent/share/classes/com/sun/java/swing/action/
H A DDelegateAction.java36 public DelegateAction(String name, Icon icon) argument
38 super(name, icon);
/openjdk9/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/
H A DIconManager.java46 private static ImageIcon getSmallIcon(ImageIcon icon) { argument
48 icon.getImage().getScaledInstance(16, 16, Image.SCALE_SMOOTH));
/openjdk9/jdk/test/java/awt/TrayIcon/
H A DPropertyChangeListenerTest.java83 TrayIcon icon = new TrayIcon(img);
88 tray.add(icon);
99 throw new RuntimeException("FAIL: property event did not get triggered when tray icon added");
105 if (icons.length != 1 || ! icon.equals(icons[0])) {
108 "icon[] length: " + icons.length);
114 tray.remove(icon);
125 throw new RuntimeException("FAIL: property event did not get triggered when tray icon removed");
134 "icon[] length: " + icons.length);
143 tray.add(icon);
151 tray.remove(icon);
[all...]
/openjdk9/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/ui/table/
H A DSortHeaderCellRenderer.java76 Icon icon = null;
79 icon = ascendingIcon;
81 icon = descendingIcon;
84 setIcon(icon);
/openjdk9/jdk/test/java/awt/TrayIcon/GetTrayIconsTest/
H A DGetTrayIcons.java57 TrayIcon icon = new TrayIcon(image);
58 tray.add(icon);
63 "when one icon present " + icons);
65 icon = new TrayIcon(image);
66 tray.add(icon);
/openjdk9/jdk/test/javax/swing/JLayer/8041982/
H A Dbug8041982.java26 * @summary Use of animated icon in JLayer causes CPU spin
55 private Icon icon = new ImageIcon(bug8041982.class.getResource("cupanim.gif")); field in class:bug8041982.BusyLayer
62 icon.paintIcon(c, g, c.getWidth() / 2 - icon.getIconWidth() /
64 c.getHeight() / 2 - icon.getIconHeight() / 2);
/openjdk9/jdk/src/demo/share/jfc/FileChooserDemo/
H A DExampleFileView.java51 * manages name, icon, traversable, and file type information.
58 * file type, icon, and hidden file inforation, this implementation may
150 * Adds an icon based on the file type "dot" extension
153 public void putIcon(String extension, Icon icon) { argument
154 icons.put(extension, icon);
166 Icon icon = null;
169 icon = icons.get(extension);
171 return icon;
180 * return a special icon for the directory that makes it look like a regular
/openjdk9/jdk/test/javax/swing/plaf/synth/8081411/
H A Dbug8081411.java43 * @summary Add an API for painting an icon with a SynthContext
82 private static void paintAndCheckIcon(Icon icon, SynthContext synthContext, argument
90 SynthGraphicsUtils.paintIcon(icon, synthContext, g, 0, 0, width, height);
116 private final SynthIcon icon; field in class:bug8081411.CenteredSynthIcon
120 public CenteredSynthIcon(SynthIcon icon, int width, int height) { argument
121 this.icon = icon;
129 int dw = icon.getIconWidth(syntContext);
130 int dh = icon.getIconHeight(syntContext);
133 icon
[all...]
/openjdk9/jdk/test/java/awt/TrayIcon/MouseEventMask/
H A DMouseEventMaskTest.java45 TrayIcon icon; field in class:MouseEventMaskTest
71 System.err.println("Test can fail if the icon hides to a tray icons pool " +
76 "icon and rerun test.");
91 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Sample Icon");
96 if (!icon.equals(event.getSource()))
97 throw new RuntimeException("FAIL: MouseEvent not triggered for icon " + event);
112 if (!icon.equals(event.getSource()))
113 throw new RuntimeException("FAIL: MouseMotionEvent not triggered for icon " + event);
127 tray.add(icon);
137 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon);
[all...]

Completed in 225 milliseconds

1234567