posted 20 years ago
Hello everyone,
I've got a class that extends JFrame with 2 panels inside it. I'd like to draw rectangles of varying heights in the right panel, however, everything that I have tried so far has failed. The rectangle is declared globally, and its properties are defined in a method as such:
paintComponet looks like this:
At present, nothing shows up on screen. What I'd like to do is specify the rectangle to paint inside the right panel.
Any pointers would be appreciated.
Thank you all.
[ November 23, 2003: Message edited by: Malcolm White ]