/openjdk9/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/ |
H A D | XObject.java | 41 public XObject (Object object, Icon icon) { argument 43 setIcon(icon); 81 // use default icon
|
/openjdk9/jdk/test/java/awt/TrayIcon/InterJVMTest/ |
H A D | InterJVM.java | 75 TrayIcon icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB)); 76 tray.add(icon);
|
/openjdk9/jdk/test/java/awt/TrayIcon/8072769/ |
H A D | bug8072769.java | 26 @summary System tray icon title freezes java 60 final TrayIcon trayIcon = new TrayIcon(icon.getImage()); 100 private static ImageIcon icon = new ImageIcon( field in class:bug8072769 148 "try icon");
|
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconEventModifiers/ |
H A D | TrayIconEventModifiersTest.java | 54 TrayIcon icon; field in class:TrayIconEventModifiersTest 104 System.err.println("Test can fail if the icon hides to a tray icons pool" + 109 "icon and rerun test."); 150 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), caption); 151 icon.addMouseListener(new MouseAdapter() { 153 if (!icon.equals(event.getSource())) 169 if (!icon.equals(event.getSource())) 185 if (!icon.equals(event.getSource())) 202 tray.add(icon); 210 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon); [all...] |
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/ |
H A D | JHyperlink.java | 109 public JHyperlink(String text, Icon icon) { argument 111 setIcon(icon); 114 public JHyperlink(Icon icon, String targetURI) throws URISyntaxException { argument 115 this(null, icon, targetURI); 118 public JHyperlink(String text, Icon icon, String targetURI) throws URISyntaxException { argument 120 setIcon(icon); 123 public JHyperlink(String text, Icon icon, URI target) { argument 125 setIcon(icon);
|
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconMouseTest/ |
H A D | TrayIconMouseTest.java | 47 TrayIcon icon; field in class:TrayIconMouseTest 90 icon = new TrayIcon( 92 icon.addActionListener(event -> { 102 tray.add(icon); 109 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon); 111 throw new RuntimeException("Unable to find the icon location!");
|
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsTableHeaderUI.java | 216 private final Icon icon; field in class:WindowsTableHeaderUI.IconBorder 223 * @param icon - icon to paint for this border 226 public IconBorder(Icon icon, int top, int left, argument 228 this.icon = icon; 235 return new Insets(icon.getIconHeight() + top, left, bottom, right); 242 icon.paintIcon(c, g, 243 x + left + (width - left - right - icon.getIconWidth()) / 2,
|
H A D | WindowsCheckBoxUI.java | 85 icon = UIManager.getIcon(getPropertyPrefix() + "icon");
|
/openjdk9/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/ |
H A D | CTrayIcon.java | 125 * We display tray icon message as a small dialog with OK button. 287 // obtain icon to show along the message 288 Icon icon = getIconForMessageType(messageType); 289 if (icon != null) { 290 icon = new ImageIcon(scaleIcon(icon, 0.75)); 300 messageDialog = createMessageDialog(caption, text, textWidth, icon); 310 int textWidth, Icon icon) { 342 op.setIcon(icon); 429 * Scales an icon usin 309 createMessageDialog(String caption, String text, int textWidth, Icon icon) argument 435 scaleIcon(Icon icon, double scaleFactor) argument [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/ |
H A D | JTabbedPane.java | 46 * clicking on a tab with a given title and/or icon. 80 * will not render any text or icon you have specified for the tab. 232 Icon icon = pages.get(i).disabledIcon; 233 if (icon instanceof UIResource) { 689 * represented by the given title and/or icon, either of which may 693 * @param icon the icon to be displayed on the tab 705 public void insertTab(String title, Icon icon, Component component, String tip, int index) { argument 726 new Page(this, title != null? title : "", icon, null, component, tip)); 760 * represented by a <code>title</code> and/or <code>icon</cod 772 addTab(String title, Icon icon, Component component, String tip) argument 788 addTab(String title, Icon icon, Component component) argument 1364 setIconAt(int index, Icon icon) argument 1688 indexOfTab(Icon icon) argument 2041 Icon icon; field in class:JTabbedPane.Page 2052 Page(JTabbedPane parent, String title, Icon icon, Icon disabledIcon, Component component, String tip) argument [all...] |
H A D | JMenuItem.java | 103 * Creates a <code>JMenuItem</code> with no set text or icon. 110 * Creates a <code>JMenuItem</code> with the specified icon. 112 * @param icon the icon of the <code>JMenuItem</code> 114 public JMenuItem(Icon icon) { argument 115 this(null, icon); 140 * Creates a <code>JMenuItem</code> with the specified text and icon. 143 * @param icon the icon of the <code>JMenuItem</code> 145 public JMenuItem(String text, Icon icon) { argument 193 init(String text, Icon icon) argument [all...] |
H A D | LookAndFeel.java | 543 * <code>icon</code> this method returns {@code null}. 550 * @param icon {@code Icon} to generate the disabled icon from 555 public Icon getDisabledIcon(JComponent component, Icon icon) { argument 556 if (icon instanceof ImageIcon) { 558 createDisabledImage(((ImageIcon)icon).getImage())); 571 * <code>Icon</code>. If {@code null} is passed as <code>icon</code> this 579 * @param icon {@code Icon} to generate disabled and selected icon from 580 * @return disabled and selected icon, o 584 getDisabledSelectedIcon(JComponent component, Icon icon) argument [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/ |
H A D | MetalCheckBoxUI.java | 98 icon = UIManager.getIcon(getPropertyPrefix() + "icon");
|
H A D | MetalInternalFrameUI.java | 232 Icon icon = frame.getFrameIcon(); 233 if ( icon != null ) { 235 xOffset -= icon.getIconWidth(); 237 int iconY = ((titlePane.getHeight() / 2) - (icon.getIconHeight() /2)); 239 icon.getIconWidth(), icon.getIconHeight());
|
H A D | MetalInternalFrameTitlePane.java | 55 * The palette close icon. 159 // The palette close icon isn't opaque while the regular close icon is. 267 Icon icon = frame.getFrameIcon(); 269 if (icon != null) { 270 // SystemMenuBar forces the icon to be 16x16 or less. 271 iconHeight = Math.min(icon.getIconHeight(), 16); 438 Icon icon = frame.getFrameIcon(); 439 if ( icon != null ) { 441 xOffset -= icon [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/ |
H A D | BasicInternalFrameTitlePane.java | 105 * The maximize icon. 109 * The minimize icon. 113 * The iconify icon. 117 * The close icon. 663 Icon icon = frame.getFrameIcon(); 667 if (icon != null) { 668 // SystemMenuBar forces the icon to be 16x16 or less. 669 iconHeight = Math.min(icon.getIconHeight(), 16); 695 Icon icon = frame.getFrameIcon(); 697 if (icon ! [all...] |
H A D | BasicLabelUI.java | 86 * @param icon an icon 88 * @param iconR a bounding rectangle to lay out icon 97 Icon icon, 106 icon, 175 Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon(); 177 if ((icon == null) && (text == null)) { 184 if (icon != null) { 185 icon.paintIcon(c, g, paintIconR.x, paintIconR.y); 210 Icon icon 93 layoutCL( JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) argument [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifCheckBoxUI.java | 81 icon = UIManager.getIcon(getPropertyPrefix() + "icon");
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/tree/ |
H A D | DefaultTreeCellRenderer.java | 123 /** True if draws focus border around icon as well. */ 242 * Returns the default icon, for the current laf, that is used to 245 * @return the default icon, for the current laf, that is used to 253 * Returns the default icon, for the current laf, that is used to 256 * @return the default icon, for the current laf, that is used to 264 * Returns the default icon, for the current laf, that is used to 267 * @return the default icon, for the current laf, that is used to 275 * Sets the icon used to represent non-leaf nodes that are expanded. 277 * @param newIcon the icon to be used for expanded non-leaf nodes 284 * Returns the icon use [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/sun/swing/ |
H A D | DefaultLayoutStyle.java | 185 Icon icon = getIcon(button); 188 return insets.left + icon.getIconWidth() + gap; 190 return insets.right + icon.getIconWidth() + gap; 197 Icon icon = button.getIcon(); 198 if (icon != null) { 199 return icon; 203 key = "CheckBox.icon"; 205 key = "RadioButton.icon";
|
/openjdk9/jdk/test/java/awt/image/multiresolution/ |
H A D | MultiresolutionIconTest.java | 86 Icon icon = new ImageIcon(mri); 88 // hardcoded icon size for OS X (Mac OS X L&F) - see JDK-8151060 104 JButton btn = new JButton(icon); 107 JToggleButton tbn = new JToggleButton(icon); 110 JRadioButton rbn = new JRadioButton(icon); 114 JCheckBox cbx = new JCheckBox(icon); 118 lbl = new JLabel(icon); 140 // check the icon's color hasn't changed 160 return false; // didn't find the icon 186 // check icon colo [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/ActionEventMask/ |
H A D | ActionEventMask.java | 48 TrayIcon icon; field in class:ActionEventMask 87 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Sample Icon"); 92 if (! icon.equals(event.getSource())) { 93 throw new RuntimeException("FAIL: ActionEvent not triggered for icon"); 106 tray.add(icon); 137 icon.addActionListener(listeners[i]); 163 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon); 165 throw new RuntimeException("Unable to find the icon location!");
|
/openjdk9/jdk/test/java/awt/TrayIcon/ |
H A D | SystemTrayIconHelper.java | 35 * @summary This is a helper class to find the location of a system tray icon, 45 * Call this method if the tray icon need to be followed in an automated manner 48 static Point getTrayIconLocation(TrayIcon icon) throws Exception { argument 49 if (icon == null) { 77 Dimension iconSize = icon.getSize(); 91 if (imagesEquals(((BufferedImage)icon.getImage()).getSubimage(0, 0, width, height), screen.getSubimage(x, y, width, height))) { 111 Object peer = f_peer.get(icon); 139 Object peer = f_peer.get(icon);
|
/openjdk9/jdk/test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/ |
H A D | AbstractButtonOperator.java | 903 public void setDisabledIcon(final Icon icon) { argument 907 ((AbstractButton) getSource()).setDisabledIcon(icon); 915 public void setDisabledSelectedIcon(final Icon icon) { argument 919 ((AbstractButton) getSource()).setDisabledSelectedIcon(icon); 963 public void setIcon(final Icon icon) { argument 967 ((AbstractButton) getSource()).setIcon(icon); 1023 public void setPressedIcon(final Icon icon) { argument 1027 ((AbstractButton) getSource()).setPressedIcon(icon); 1047 public void setRolloverIcon(final Icon icon) { argument 1051 ((AbstractButton) getSource()).setRolloverIcon(icon); 1059 setRolloverSelectedIcon(final Icon icon) argument 1083 setSelectedIcon(final Icon icon) argument [all...] |
/openjdk9/jdk/test/java/awt/image/multiresolution/MultiResolutionTrayIconTest/ |
H A D | MultiResolutionTrayIconTest.java | 29 * @summary Check if correct resolution variant is used for tray icon. 55 private static TrayIcon icon; field in class:MultiResolutionTrayIconTest 79 icon = new TrayIcon(createIcon(d.width, d.height)); 80 icon.setImageAutoSize(true); 88 + "Press start button to add icon to system tray.<br><br>" 186 tray.add(icon); 194 tray.remove(icon);
|