Refresh Window from Console

Z

zeeb.bastian

Hello,

i have two classes. With class A i can calculate some things on the
console. In class A i create an object of class B. In B a JFrame with a
canvas is designed, where i paint some things. So far all works fine.

Now my problem: After every calculation on the console i want to
refresh the JFrame somehow, in order to repaint the canvas.
myObject.repaint() does not return an error but does not work.

Is there a solution?

Thanks in advance and greetings,
Bastian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top