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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -