This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 20669
65
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