954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

using javax.swing.Icon ...

Hi
thanks for comming to this thread...

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

hasan2003
Newbie Poster
8 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

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

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

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);
Ghost
Posting Whiz
352 posts since Aug 2004
Reputation Points: 12
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You