Hi
I am using Jess a language besed on java to program, but I am using the java commands to draw. So I can not post a java example, but if you know the answer in java, I can translate the suntax myself.
I have made a draw funktion, that draws a square on one of the panels in my frame.
I have used the getGraphics method on my panel, and then called graph.fillRect(...)
This funktion has to be called several times, with different coordinates for the rectangle. And this works.
My problem is, that if I use repaint on my frame in the function, my objekt disapear after a split-second. If I don't use repaint, my objekts disapear when I minemize, resize or open anothe frame over the window.
How do I make my objekt stick to the panel so I can mimemize and resize my window?
Thanks for any help in advance
I am using Jess a language besed on java to program, but I am using the java commands to draw. So I can not post a java example, but if you know the answer in java, I can translate the suntax myself.
I have made a draw funktion, that draws a square on one of the panels in my frame.
I have used the getGraphics method on my panel, and then called graph.fillRect(...)
This funktion has to be called several times, with different coordinates for the rectangle. And this works.
My problem is, that if I use repaint on my frame in the function, my objekt disapear after a split-second. If I don't use repaint, my objekts disapear when I minemize, resize or open anothe frame over the window.
How do I make my objekt stick to the panel so I can mimemize and resize my window?
Thanks for any help in advance