File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes problem in component refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in component refreshing" Watch "problem in component refreshing" New topic

problem in component refreshing

narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
hi, I have two frames. i have refresh the value of Jlabel (belong to first frame) while doing some operation in second frame, i have to refresh the value of jlabel in first frame, how can i do that. jlabel value is static variable.
nr konjeti

"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

This is try number three for this question. Check out this example:

Simple, right? I couldn't make the JLabel static since I was displaying the same frame twice, but the principal is the same. If this doesn't answer your question, you will have to give us some more information about your particular situation (i.e. some source code).

[How To Ask Questions On JavaRanch]
Consider Paul's rocket mass heater.
subject: problem in component refreshing
jQuery in Action, 3rd edition