Hi
thanks for comming to this thread...

can any one give me the idea how to use javax.swing.Icon interface?

Check out the API docs for the interface and its implementing class which contain themselves links to other information.

I'm not sure if this is javax.swing.Icon*; but, i think you just go:

Icon icon1 = new Icon("icon_name.icn");

and then if you want to put it in a JButton,

JButton buttonIcon = new JButton("Whatever you want the button to say", icon1);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.