File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

controls not visible in small frame

 
Nirmal JeyaChandra
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1078
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic