
-----------------------------------
S_Grimm
Mon Nov 10, 2008 12:02 pm

Drawing Lines, boxes and crazy images Without HSA Console
-----------------------------------
Our Teacher decided that we have now "graduated" on to advanced java (yeah right), so now we get to draw stuff (sarcastic yes!) What our problem is, he only knows how to draw in RTP, not with JDK and notepad. SO.... what i need :

1) The code outline on how to create a paint area, canvas and graphics enviroment.
2) The Explination on how to use those to draw stuff.

And one other thing, I do not want you to post a block of code that already draws lines, rectanges or whatever. What i would like is just the shell. ie:

import what you need here

public class here

whatever is needed to be initalized here

main here



Thanks for any help. If there is another site that anyone knows that EXPLAINS this, i would approciate it. Thanks.

A\V

-----------------------------------
S_Grimm
Mon Nov 10, 2008 12:14 pm

Re: Drawing Lines, boxes and crazy images Without HSA Console
-----------------------------------
If a mod could lock this thread, I went to my teacher and voiced my opinons, and he gave me a website already. thanks anyway.

-----------------------------------
Dan
Mon Nov 10, 2008 2:02 pm

RE:Drawing Lines, boxes and crazy images Without HSA Console
-----------------------------------
We noramly don't lock topics just becues the OP has found a soultion. The idea is that other peoleops questions and help topics can help others looking for awnsers to the same question.


For such peoleop you can find a tutorial on graphics in java here: http://www.cs.clemson.edu/~cs428/resources/java/tutorial/JTGraphics.html

and one using a canavas here: http://home.cogeco.ca/~ve3ll/jatutorg.htm


And a post by rizzix witch links to some Java2D tutorials by sun here: http://compsci.ca/v3/viewtopic.php?t=10098


The javadoc is also very usefull when looking up how to paint shapes in 2d: http://java.sun.com/j2se/1.5.0/docs/api/ and graphics: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html

-----------------------------------
rto
Thu Dec 04, 2008 10:18 am

RE:Drawing Lines, boxes and crazy images Without HSA Console
-----------------------------------
perhaps you should mark this thread as answered AV ? :)

-----------------------------------
S_Grimm
Thu Dec 04, 2008 11:33 am

RE:Drawing Lines, boxes and crazy images Without HSA Console
-----------------------------------
maybe, but then I would gve you the satisfaction of being right.

(To everyone else. rto and I are in the same class. Ignore this part.)
