This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in component refreshing

 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic