This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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: 9190

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]
I agree. Here's the link:
subject: problem in component refreshing
It's not a secret anymore!