Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.ImageIcon;

public class Main {
    public static void main(String[] argv) throws Exception {

        ImageIcon icon = new ImageIcon("image.gif");
        icon.setDescription("Description of Image");

        System.out.println(icon.toString());
    }
}