Basically i want to use this idea shown here
http://javaboutique.in ternet.com/tutorials/Java_by_Example/section6_3.html
I just wasnt sure what was required in the main method. I want it to bring up the window in which to draw in.
As an afterthought i was wondering if you could modify the code so that:
i) You could save what was drawn
ii) The user could select which colour and thickness to draw in.
I tried doing a basic main method but it didnt work. I am very much a novice at this so much help would be appreciated.
i wrote:
http://javaboutique.in ternet.com/tutorials/Java_by_Example/section6_3.html
I just wasnt sure what was required in the main method. I want it to bring up the window in which to draw in.
As an afterthought i was wondering if you could modify the code so that:
i) You could save what was drawn
ii) The user could select which colour and thickness to draw in.
I tried doing a basic main method but it didnt work. I am very much a novice at this so much help would be appreciated.
i wrote:
Code:
public static void main(String[] args) {
Applet gBuffer=new Project29();
gBuffer.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
gBuffer.setSize(350,200);
gBuffer.setVisible(true);
}
Comment