*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in component refreshing" Watch "problem in component refreshing" New topic
Author

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.
cheers
nr konjeti


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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in component refreshing
 
Similar Threads
deadlocks
Moving frome one GUI to the Next
retreiving request parameter of second frame in first
How do you "delete" a JLabel before adding a JLabel on top?
Refresh problem