• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updation of Applet using Swing

 
Annapurna B
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created an applet using java swing components.The applet loads fine but the updation is not proper. When the panels in the applet are supposed to change they are not changing until we do some updation in the applet(like moving the applet manually etc). I think this is some refresh or threading problem.Can anyone help....
Thanks in advance
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Annapurna B",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Daniel Searson
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using the revalidate() method on the JApplet, or use:
invalidate();
validate();
[This message has been edited by Daniel Searson (edited May 26, 2001).]
 
prashant pachouri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are u extending from JApplet?
Make sure u instanciate and construct most of ur UI in the init() method itself.
Delete browser cache. Browser settings will have to be javaenabled.
Also revalidate() should preceed repaint().
Originally posted by Annapurna B:
I have created an applet using java swing components.The applet loads fine but the updation is not proper. When the panels in the applet are supposed to change they are not changing until we do some updation in the applet(like moving the applet manually etc). I think this is some refresh or threading problem.Can anyone help....
Thanks in advance

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic