Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Pie
Posts: 20608
63
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic