Class ExampleDrawingPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ExampleDrawingPanel extends JComponent
A GUI component demonstrating how to use Graphics2D to draw shapes and images. The paintComponent method does all of the drawing, and is called automatically by the event system. Never call paintComponent directly. Instead, a call to paintComponent can be triggered by calling the repaint() method (inherited). https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Component.html#repaint() For more information about 2D graphics in Java see: https://docs.oracle.com/javase/tutorial/2d/index.html
See Also:
  • Constructor Details

    • ExampleDrawingPanel

      public ExampleDrawingPanel()
  • Method Details