Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to add image to swing, i dont need the code?  RSS feed

 
Soumya Rout
Ranch Hand
Posts: 49
Java Java ME Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I wanna know how to add image to jframe or jpanel or to any swing component. And i can do it programmatically but i want the steps how to do it in NetBeans IDE 6.5



With regards som

thnx in advance
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This will work for NetBeans or non-NetBeans-generated apps: BackgroundImageOnJPanel
 
Rob Spoor
Sheriff
Posts: 20904
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you already know how to do this in code, this is not a Swing problem but a Netbeans specific problem. Moving to IDEs.
 
Soumya Rout
Ranch Hand
Posts: 49
Java Java ME Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm i knew that its not a swing prob but I dont know how set a picture to a control ....

Can any one please give me the correct steps or is there any properties to set picture to a control???


Regards som
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!