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

Gui Implementation

 
Tahir Abbas
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to everyone,

I need your opinion to know whats the suitable approach to implement gui. How should we make graphics components so that their size dont effect with the change of resolution or monitor of different size.

i am thinking to get screen size then place the components with the help of setbounds method.

Best Regards
 
Gert-Jan den Besten
Ranch Hand
Posts: 56
Java Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your best bet is to utilize the Swing LayoutManagers. It takes some getting used to, but once you get the hang of it, you'll end up with a nice cross-platform GUI. However I did set a preferred and a minimum size of my GUI.

The GUI chapter of Andrew's book was of great help to me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic