How can i update my Jpanel with the labels from another class in certain intervals?
47pirates
9
Junior Poster in Training
Recommended Answers
Jump to PostUse a javax,swing.Timer to run the necessary code at the appropriate intervals?
Jump to PostJust Google - there's enough examples on the web, you don't need me to write another one!
Jump to PostNull pointer means an uninitialized variable. The Exception tells you which line of your program it was, and that's often enough to know which variable. If not print all the vars to see which it is. Then trace your logic backwards to find out why it's uninitialized. At a guess …
Jump to PostI did explain the two better ways when I replied to your other post. Did you read that?
Anyway, here's a new complete answer:
Synchronizing data between 2 classes
You have some data in object1 (an instance of Class1) that changes from time to time. You want object2 …
All 14 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
47pirates
9
Junior Poster in Training
47pirates
9
Junior Poster in Training
47pirates
9
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.