• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scalable layout for a desktop application

 
Ramona Andreea
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to develop a desktop application to fit on each screen. What is the best method to do that? One solution can be to write an interface for each screen resolution, but this need more time. If you know other solution please tell me. Thank you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing forum.
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html

In the end, you will need to use a combination of layout managers, such that a part of your application will scale (stretch) when the application is resized,while others remain fixed. Usual "victims" of stretching are text components (JTextField only horizontally, JTextArea both horizontally and vertically), tables and trees. Labels and buttons usually have a fixed size that never changes.
 
Ramona Andreea
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob. I'll read about this...hope that will work.
 
Michael Schnell
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this is something of interest for you:

http://fuin.org/utils4swing/examples/scalable-layout.html

It's a scalable layout for Swing applications (like CTRL+ CTRL- in Firefox for zooming the content).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic