Author | Message | Time |
---|---|---|
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 | March 3, 2004, 1:28 PM |
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. | March 3, 2004, 4:03 PM |
touchstone | ok. thanks | March 4, 2004, 12:33 PM |
Nova1313 | [quote author=touchstone link=board=34;threadid=5557;start=0#msg47406 date=1078403599] ok. thanks [/quote] 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. | March 11, 2004, 4:20 PM |