Skip to content
Advertisement

Tag: paintcomponent

Painting method paints things from other components

I am trying to make a simple Java program with GUI using Java Swing. I have painting panel (gPanel) in the center of the screen, panel with buttons (buttonSet) in the west and panel with labels (labelPanel) in the east. To paint over gPanel I use paintComponent method and since I have two buttons, which are supposed to draw different

How do I print a shape in a loop? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 12 months ago. Improve this question I am trying to print shapes in a loop, but when I run the program nothing shows up. I am using shapes from a custom class I

Advertisement