| Share this post! | Vote this! |
|
You can draw strings, lines, rectangles, ovals, arcs, polygons, and polylines, using the methods in the Graphics class.
paintComponent Example:
In order to draw things on a component, you need to define a class that extends JPanel and overrides its paintComponent method to specify what to draw more...
paintComponent Example:
In order to draw things on a component, you need to define a class that extends JPanel and overrides its paintComponent method to specify what to draw more...





0 comments:
Post a Comment