• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!