• Welcome to Valhalla Legends Archive.
 

Graphics question

Started by touchstone, March 03, 2004, 07:28 AM

Previous topic - Next topic

touchstone

hi, i  have a question on Graphics.
i found two  Graphics class namely,  Graphics 2D and the old Graphics(AWT)

which one i should use for programming ? i simply want to know when i should use Graphics 2D  and when Graphics only?


another question:

there is already a Color class which can give us different  colors. so why  there is SystemColor class ? what exactly it gives ?i am curious about SystemColor class. how does it dofferent from Color class. i want an explanatory answer for understanding , not the  syntactical.

thanks




iago

I can only tell you one thing, really: the difference between Swing and AWT.  AWT is older and the implementation on different platforms is inconsistant, so this should never be used.

Swing is newer, and more consistant, use that.  

Beyond that I know nothing.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


touchstone


Nova1313

Quote from: touchstone on March 04, 2004, 06:33 AM
ok.   thanks

swing and awt are for graphics interfaces normally...

the graphics 2d can be used for drawing sprites and stuff I believe o'reily has a good book on it i have it it was like 7 bucks used from amazon. Called java 2d graphics...

There is also one The guide to swing. you can mix and match swing and awt if you like.