Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking Swing  RSS feed

 
Ran Mori
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not invoke a swing component from any method of a class I'm working on, the swing component does appear on the screen but plain one, it has no component(buttons,text fields....etc).
I searched the web for Swing/threads examples but nothing worked out.
can anyone help me?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run your program, then drag one of the borders to make the frame taller or wider.
If all the components now appear, you have setVisible(true) in the wrong spot.

If not, you will have to post a sample working program that demonstrates
the problem, so we can see how you are putting it all together.
 
Ran Mori
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The component didn't appear after i made the frame wider and taller.
The programm I'm working on is a simple chat program provided by QuickServer framework as an example, and here is the link to download the framework:
http://www.quickserver.org/download.html
and here is the example:
http://quickserver.cvs.sourceforge.net/quickserver/examples/src/main/chatserver/
I'm trying to invoke a swing component from any method in ClientAuthenticator class.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!