This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

components being shown only on maximising

 
Vidur Koushik
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont why this is happening..but..
the components that i added to a jframe are only being shown if i maximised the window..
here is a small code that i wrote...



only the frame is being shown....
not the text field that i added...

But when i maximize the window ..
i can view the textfield that i added..


This is happening with all GUI programs..
Please help me out..
 
Campbell Ritchie
Sheriff
Pie
Posts: 47258
52
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The setVisible() call should be last. Otherwise try validate() or revalidate() after the adding calls.
 
Vidur Koushik
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect..sir..that worked..
thanks for the quick reply...!!
The setVisible() should indeed be the last...!!!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic