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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -