Example usage for javax.swing ImageIcon toString

List of usage examples for javax.swing ImageIcon toString

Introduction

In this page you can find the example usage for javax.swing ImageIcon toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of this image.

Usage

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());
}