• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net

 
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:
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!