aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes scalable layout for a desktop application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "scalable layout for a desktop application" Watch "scalable layout for a desktop application" New topic
Author

scalable layout for a desktop application

Ramona Andreea
Greenhorn

Joined: Nov 22, 2008
Posts: 14
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

Joined: Sep 29, 2008
Posts: 12617

Moving to Swing forum.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ramona Andreea
Greenhorn

Joined: Nov 22, 2008
Posts: 14
Thanks Rob. I'll read about this...hope that will work.
Michael Schnell
Greenhorn

Joined: Aug 31, 2009
Posts: 2
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scalable layout for a desktop application