wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes controls not visible in small frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "controls not visible in small frame" Watch "controls not visible in small frame" New topic
Author

controls not visible in small frame

Nirmal JeyaChandra
Greenhorn

Joined: Aug 31, 2005
Posts: 25
If I set the frame size as say setSize(400, 250) the controls are not visible initially with this size.

After if I maximize it once and then bring it back to 400 x 250 it becomes visible.

How to make it visible without maximizing and then shortening it.


Please help me. Thanks in advance.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Posting some code would help so we can see what's happening. It's probably a layout issue, have you tried using pack() before making it visible?
Nirmal JeyaChandra
Greenhorn

Joined: Aug 31, 2005
Posts: 25
Thank You very much. It is working well by using pack().

It will be nice if you can help me to create an exe file of a Java class which can run in any system or platform where java or JRE is not installed.

Please help me if you can since I am struggling with it for the last 3 days of my project.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Nirmal JeyaChandra:
... It will be nice if you can help me to create an exe file of a Java class which can run in any system or platform where java or JRE is not installed...

That would be nice. :roll:

An exe is specific to Windows, and it's the JRE that makes Java "platform independent."

You may want to read this for more information.
[ January 04, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: controls not visible in small frame