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

cool java swing application

 
paul wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Who know how to generate such toolbar at the left side of this java swing application?and what's more, how to set the backend image of jdesktopPane?
With best regards
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The toolbar is a custom component... probably built using buttons connected to Panels that are setVisible( true/false ) when the button is pressed...

As for setting the Icon of a JDesktop, here is some code that I have that does the same thing...





-Nate
 
paul wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot, but can you give me one example code for that toolbar? your help is appreciated.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a quick example of how to do the toolbar... it still needs a little work, but it shows generally how to do this...

 
paul wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perfect,you are really so nice and i can continue my work, thanks again for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic