This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes setBounds Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "setBounds Problem" Watch "setBounds Problem" New topic
Author

setBounds Problem

Loganathan Subramani
Greenhorn

Joined: Mar 31, 2009
Posts: 12
hi

I am creating swing application for windows and mac. I am using to develop in windows for mac too.. after completion my app its working good in windows.

But in MAC the alignments were missing.




Actually the JFrame or JPanel size is missing and components are misplaced..

How to solve this issue in using null layout..?

What is the best way of doing swing application for platform independent UI support.?

Thank you for your kind reply.

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
Don't use null layout. Use a LayoutManager. Not sure which is best, but people speak well of MigLayout. You will have to use Google to find it.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8439

Recommended reading
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setBounds Problem
 
Similar Threads
Java on the Mac.
problem with swing GUI in macintosh
Compile and run java program in Macintosh
GUI looks different on Windows and Linux as compared to Mac
Swing application on mac os 9