Here you can find the source of getImageIcon(final BufferedImage image)
Parameter | Description |
---|---|
image | a parameter |
Parameter | Description |
---|---|
Exception | an exception |
public static ImageIcon getImageIcon(final BufferedImage image) throws Exception
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; import javax.swing.ImageIcon; public class Main { /**//from ww w . j a va 2 s . co m * Converts the image to an imageicon. * @param image * @return * @throws Exception */ public static ImageIcon getImageIcon(final BufferedImage image) throws Exception { return new ImageIcon(image); } }