java - Minimum code for graphics? -
what absolutism minimum code can use gave jframe
graphics
? ,so example can rid of paint()
method ? , need call super.update(g)
?
you should not override paint(). awt.
you should not touch update(). again awt.
in swing override paintcomponent()
method of jpanel
(or jcomponent
) , add panel frame.
you don't touch jframe
@ all.
read swing tutorial on custom painting more information , examples.
Comments
Post a Comment