/openjdk9/jdk/test/java/awt/TrayIcon/ActionEventTest/ |
H A D | ActionEventTest.java | 52 TrayIcon icon; field in class:ActionEventTest 64 "On Windows 7, by default icon hides behind icon pool\n" + 70 "Java SE tray icon and rerun test."); 86 icon = new TrayIcon( 88 icon.addActionListener(new ActionListener() { 105 SystemTray.getSystemTray().add(icon); 115 SystemTray.getSystemTray().remove(icon); 123 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon); 125 throw new RuntimeException("Unable to find the icon locatio [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/ShowAfterDisposeTest/ |
H A D | ShowAfterDisposeTest.java | 52 "1) When the test starts an icon is added to the SystemTray area.", 54 " right click on this icon (it's important to click before the tooltip is shown).", 55 " The icon should disappear.", 57 " double click on this icon (it's important to click before the tooltip is shown).", 58 " The icon should disappear.", 96 final TrayIcon icon = new TrayIcon(img); 97 icon.setImageAutoSize(true); 98 icon.addActionListener(new ActionListener() 102 tray.remove(icon); 108 tray.add(icon); [all...] |
/openjdk9/hotspot/src/jdk.hotspot.agent/share/classes/com/sun/java/swing/action/ |
H A D | StateChangeAction.java | 45 public StateChangeAction(String name, Icon icon) argument 47 super(name, icon);
|
/openjdk9/jdk/test/java/awt/image/MultiResolutionImage/ |
H A D | NSImageToMultiResolutionImageTest.java | 48 String icon = "NSImage://NSApplicationIcon"; 49 final Image image = Toolkit.getDefaultToolkit().getImage(icon);
|
/openjdk9/jdk/test/sun/awt/shell/ |
H A D | BadHiDPIIcon.java | 41 // the error icon is round and in all four corner transparent 43 Image icon = (Image) ShellFolder.get("optionPaneIcon Error"); 44 final BufferedImage image = getBufferedImage(icon); 50 throw new RuntimeException("optionPaneIcon Error is not a round icon with transparent background.");
|
/openjdk9/jdk/src/java.desktop/macosx/classes/com/apple/laf/ |
H A D | ScreenMenuPropertyHandler.java | 37 public void setIcon(Icon icon); argument
|
H A D | AquaFileView.java | 103 Icon icon; field in class:AquaFileView.FileInfo 186 if (info.icon != null) return info.icon; 189 info.icon = AquaIcon.SystemIcon.getDocumentIconUIResource(); 191 // Look for the document's icon 193 info.icon = fileIcon; 198 info.icon = AquaIcon.SystemIcon.getComputerIconUIResource(); 200 info.icon = AquaIcon.SystemIcon.getHardDriveIconUIResource(); 202 info.icon = AquaIcon.SystemIcon.getFolderIconUIResource(); 205 info.icon [all...] |
H A D | AquaInternalFrameBorder.java | 316 Icon icon = frame.getFrameIcon(); 317 if (icon == null) { 318 icon = UIManager.getIcon("InternalFrame.icon"); 321 if (icon == null) { 325 if (icon.getIconWidth() > sMaxIconWidth 326 || icon.getIconHeight() > sMaxIconHeight) { 329 double xScaleFactor = (double) sMaxIconWidth / icon.getIconWidth(); 330 double yScaleFactor = (double) sMaxIconHeight / icon.getIconHeight(); 341 icon [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/ |
H A D | SynthGraphicsUtils.java | 124 * Lays out text and an icon returning, by reference, the location to 125 * place the icon and text. 130 * @param icon Icon to layout 135 * @param viewR Rectangle to layout text and icon in. 136 * @param iconR Rectangle to place icon bounds in 138 * @param iconTextGap gap between icon and text 141 * place the icon and text. 144 String text, Icon icon, int hAlign, 148 if (icon instanceof SynthIcon) { 149 SynthIconWrapper wrapper = SynthIconWrapper.get((SynthIcon)icon, 143 layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) argument 197 getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument 230 getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument 277 getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument 372 paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset) argument 433 getIconWidth(Icon icon, SynthContext context) argument 451 getIconHeight(Icon icon, SynthContext context) argument 473 paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height) argument 683 get(SynthIcon icon, SynthContext context) argument 702 SynthIconWrapper(SynthIcon icon, SynthContext context) argument 706 reset(SynthIcon icon, SynthContext context) argument [all...] |
H A D | SynthLabelUI.java | 130 // layout the text and icon 201 Icon icon = (label.isEnabled()) ? label.getIcon() : 208 context, g, label.getText(), icon, 229 Icon icon = (label.isEnabled()) ? label.getIcon() : 235 icon, label.getHorizontalAlignment(), 249 Icon icon = (label.isEnabled()) ? label.getIcon() : 255 icon, label.getHorizontalAlignment(), 269 Icon icon = (label.isEnabled()) ? label.getIcon() : 275 icon, label.getHorizontalAlignment(),
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/ |
H A D | JButton.java | 82 * Creates a button with no set text or icon. 89 * Creates a button with an icon. 91 * @param icon the Icon image to display on the button 93 public JButton(Icon icon) { argument 94 this(null, icon); 121 * Creates a button with initial text and an icon. 124 * @param icon the Icon image to display on the button 126 public JButton(String text, Icon icon) { argument 131 init(text, icon);
|
H A D | JOptionPane.java | 117 * <td style="background-color:#FFe0d0" rowspan=2>icon</td> 171 * will often provide a default icon. The possible values are: 202 * <dt>icon<dd>A decorative icon to be placed in the dialog box. A default 364 // Message types. Used by the UI to determine what icon to display, 375 /** No icon is used. */ 378 /** Bound property name for <code>icon</code>. */ 379 public static final String ICON_PROPERTY = "icon"; 402 protected transient Icon icon; field in class:JOptionPane 562 * @param icon th 575 showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) argument 674 showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) argument 803 showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) argument 865 showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) argument 1107 showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) argument 1228 showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) argument 1283 showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) argument 1419 showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) argument 1757 JOptionPane(Object message, int messageType, int optionType, Icon icon) argument 1789 JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options) argument 1817 JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue) argument [all...] |
H A D | JToggleButton.java | 99 * @param icon the image that the button should display 101 public JToggleButton(Icon icon) { argument 102 this(null, icon, false); 109 * @param icon the image that the button should display 113 public JToggleButton(Icon icon, boolean selected) { argument 114 this(null, icon, selected); 155 * @param icon the image that the button should display 157 public JToggleButton(String text, Icon icon) { argument 158 this(text, icon, false); 166 * @param icon th 170 JToggleButton(String text, Icon icon, boolean selected) argument [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/SecurityCheck/PermissionTest/ |
H A D | PermissionTest.java | 47 TrayIcon icon = new TrayIcon(im, "Caption");
|
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifDesktopPaneUI.java | 175 JInternalFrame.JDesktopIcon icon = f.getDesktopIcon(); 176 Point p = icon.getLocation(); 177 adjustBoundsForIcon(icon, p.x, p.y); 186 // We need to know Motif icon size 187 JInternalFrame.JDesktopIcon icon = new JInternalFrame.JDesktopIcon( 189 Dimension iconSize = icon.getPreferredSize(); 195 icon = frames[i].getDesktopIcon(); 196 Point ip = icon.getLocation(); 197 adjustBoundsForIcon(icon, ip.x, ip.y); 202 * Change positions of icon s 205 adjustBoundsForIcon(JInternalFrame.JDesktopIcon icon, int x, int y) argument 249 getIconAt(JDesktopPane desktop, JInternalFrame.JDesktopIcon icon, int x, int y) argument [all...] |
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/scrollpane/ |
H A D | ScrollPaneDemo.java | 91 public ImageScroller(Icon icon) { argument 94 // Panel to hold the icon image 96 p.add(new JLabel(icon), BorderLayout.CENTER); 127 vsb.setValue(icon.getIconHeight()); 128 hsb.setValue(icon.getIconWidth() / 10);
|
/openjdk9/jdk/test/javax/swing/AbstractButton/AnimatedIcon/ |
H A D | AnimatedIcon.java | 36 * @summary Animated icon should animate when the JButton is pressed. 44 final ImageIcon icon = new ImageIcon(bi); 45 final JButton button = new JButton(icon); 46 // Default icon is set => imageUpdate should return true for it 61 // Default icon is not set => imageUpdate should return true for 64 button.setPressedIcon(icon);
|
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tabbedpane/ |
H A D | TabbedPaneDemo.java | 175 private final ImageIcon[] icon = new ImageIcon[6]; field in class:TabbedPaneDemo.HeadSpin 191 icon[0] = resourceManager.createImageIcon("ewan.gif", resourceManager.getString("TabbedPaneDemo.ewan")); 192 icon[1] = resourceManager.createImageIcon("stephen.gif", resourceManager.getString("TabbedPaneDemo.stephen")); 193 icon[2] = resourceManager.createImageIcon("david.gif", resourceManager.getString("TabbedPaneDemo.david")); 194 icon[3] = resourceManager.createImageIcon("matthew.gif", resourceManager.getString("TabbedPaneDemo.matthew")); 195 icon[4] = resourceManager.createImageIcon("blake.gif", resourceManager.getString("TabbedPaneDemo.blake")); 196 icon[5] = resourceManager.createImageIcon("brooke.gif", resourceManager.getString("TabbedPaneDemo.brooke")); 221 squish(g, icon[i], xh[i], yh[i], scale[i]); 240 public void squish(Graphics g, ImageIcon icon, int x, int y, double scale) { argument 242 g.drawImage(icon [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconPopup/ |
H A D | TrayIconPopupTest.java | 42 TrayIcon icon; field in class:TrayIconPopupTest 58 System.err.println("Test can fail if the icon hides to a tray icons pool " + 63 "tray icon."); 101 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Sample Icon"); 102 icon.addMouseListener(new MouseAdapter() { 116 tray.add(icon); 124 Point iconPosition = SystemTrayIconHelper.getTrayIconLocation(icon); 126 throw new RuntimeException("Unable to find the icon location!");
|
/openjdk9/jdk/test/java/awt/TrayIcon/ModalityTest/ |
H A D | ModalityTest.java | 42 TrayIcon icon; field in class:ModalityTest 81 System.err.println("Test can fail if the icon hides to a tray icons pool " + 86 "icon and rerun test."); 99 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Sample Icon"); 100 icon.addActionListener(event -> { 109 icon.addMouseListener(new MouseAdapter() { 118 if (! icon.equals(event.getSource())) 138 if (! icon.equals(event.getSource())) 158 if (! icon.equals(event.getSource())) 171 icon [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/SecurityCheck/FunctionalityCheck/ |
H A D | FunctionalityCheck.java | 42 TrayIcon icon; field in class:FunctionalityCheck 88 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), caption); 89 icon.addActionListener(event -> { 98 icon.addMouseListener(new MouseAdapter() { 107 if (! icon.equals(event.getSource())) 127 if (! icon.equals(event.getSource())) 147 if (! icon.equals(event.getSource())) 160 icon.addMouseMotionListener(new MouseMotionAdapter() { 169 if (! icon.equals(event.getSource())) 183 tray.add(icon); [all...] |
/openjdk9/jdk/test/java/awt/TrayIcon/TrayIconEvents/ |
H A D | TrayIconEventsTest.java | 44 TrayIcon icon; field in class:TrayIconEventsTest 78 System.err.println("Test can fail if the icon hides to a tray icons pool " + 83 "tray icon."); 96 icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), caption); 97 icon.addActionListener(event -> { 107 icon.addMouseListener(new MouseAdapter() { 116 if (! icon.equals(event.getSource())) 136 if (! icon.equals(event.getSource())) 156 if (! icon.equals(event.getSource())) 169 icon [all...] |
/openjdk9/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/ |
H A D | XMBean.java | 39 private Icon icon; field in class:XMBean 54 icon = IconManager.MBEANSERVERDELEGATE; 56 icon = IconManager.MBEAN; 175 return icon; 178 public void setIcon(Icon icon) { argument 179 this.icon = icon;
|
/openjdk9/jdk/src/java.desktop/windows/native/libawt/windows/ |
H A D | awt_Taskbar.cpp | 129 HICON icon = CreateIconFromRaster(env, buf, w, h); local 130 m_Taskbar->SetOverlayIcon((HWND)window, icon, NULL); 131 ::DestroyIcon(icon);
|
/openjdk9/jdk/test/java/awt/TrayIcon/SecurityCheck/NoPermissionTest/ |
H A D | NoPermissionTest.java | 55 TrayIcon icon = new TrayIcon(im, "Caption");
|