• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add images

 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls suggest me what we can use to add images to panels and display them in an application.
It would be helpful if somebody could provide the names of the widgets.
Gaurav
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3817
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not difficult. Lot of components like JLabel even provide straight forward constructors that take an image.
Check out the API and use the relevant constructors and methods.
Also, if you look at the Swing tutorial, they've explained how to use images in a component.

-Paul.
------------------
SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com
Get Certified, Guaranteed!
JQPlus - For SCJP2
JWebPlus - For SCWCD
JDevPlus - For SCJD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic