Name three Component subclasses that support painting.

The Canvas, Frame, Panel, and Applet classes support painting.

In Core Java, three Component subclasses that support painting are:

  1. javax.swing.JPanel: JPanel is a lightweight container that is often used to group other components and provide a space for custom painting.
  2. java.awt.Canvas: Canvas is a component that allows for custom graphics drawing. You can subclass Canvas and override its paint method to perform custom painting.
  3. javax.swing.JComponent: JComponent is the base class for all Swing components that can be customized. It extends Container and provides support for painting through methods like paintComponent.

These classes provide a way to perform custom painting by overriding their respective painting methods, such as paintComponent for JPanel or paint for Canvas.