Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use repaint() with Swing?

Status
Not open for further replies.

trungx

Programmer
Sep 20, 2001
28
VN
When I use repaint() with AWT: it's OK, but have problem with Swing: Textbox and Button not appears? Help me!
 
hmmm, are you using JApplet?
try using either just paint()

or paintComponent()

sometimes it is also necessary to call the same methods above but for the super class of your class e.g.

super.paintComponent();

but it really depends on how you have written the code. If these don't work for you put the code here and let us have a look.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top