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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -