• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invoking Swing

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic