This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net  RSS feed

 
kelly devon
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
must u import java.net when u are dealing with the image icon Object?
that is when you have ImageIcon()?
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how it goes:

java.awt.Image
javax.swing.Icon
javax.swing.ImageIcon

One reason you may need java.net here is because of java.net.URL:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!