• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

where to contain image

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to keep the image reference in a variable
What will be the type of variable where i can keep the IMAGE like "abc.gif" or "xyz.jpg"
for eg
if want to keep the color i use
Color changingColor= Color.light;
but how i can keep the image as i want to make the program which keep on changing images on click of a button
thanx in advance
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Choose one type as you need. java.awt.Image(subclass: BufferedImage); javax.swing.ImageIcon.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!