List of usage examples for javax.swing ImageIcon ImageIcon
public ImageIcon(byte[] imageData)
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.getDescription()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.getIconHeight()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.getImageObserver()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.toString()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.getIconWidth()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { ImageIcon icon = new ImageIcon("image.gif"); icon.setDescription("Description of Image"); System.out.println(icon.getImageLoadStatus()); }
From source file:Main.java
public static void main(String[] a) { ImageIcon imageIcon = new ImageIcon("yourFile.gif"); Image image = imageIcon.getImage(); }
From source file:Main.java
public static void main(String[] args) throws Exception { final ImageIcon icon = new ImageIcon("C:/folder/location.png"); JOptionPane.showMessageDialog(null, "Blah blah blah", "About", JOptionPane.INFORMATION_MESSAGE, icon); }
From source file:Main.java
public static void main(String[] argv) throws Exception { JButton button = new JButton(new ImageIcon("image.gif")); button.setToolTipText("Button Name"); button.getAccessibleContext().setAccessibleName("Button Name"); }