Hey everyone,
I have not been here in a while, but I was going through the Head First Java 2nd Edition book, and I must say I have really enjoyed it.
it has been a lot more easy to understand than the course I done, which was that hard, I took time out from programming, but I want to get back into it.
I have got up to Chapter 12 page 364 with no probs at all, in fact it has been refreshing and I remember most of it, some changes from 1.3 to 1.5
Anyway the part I am stuck with is the code
and any subsequent code on pages 365/6/7
it does not run (i thought it would not) because there is no main method.
but if I was to call the paintComponent method in a main method, how do I get a method with the argument Graphics?
I have racked my brains, and got scaley eyes reading the API
Please help, as I would like to understand what is going on.
Davy
I have not been here in a while, but I was going through the Head First Java 2nd Edition book, and I must say I have really enjoyed it.
it has been a lot more easy to understand than the course I done, which was that hard, I took time out from programming, but I want to get back into it.
I have got up to Chapter 12 page 364 with no probs at all, in fact it has been refreshing and I remember most of it, some changes from 1.3 to 1.5
Anyway the part I am stuck with is the code
and any subsequent code on pages 365/6/7
it does not run (i thought it would not) because there is no main method.
but if I was to call the paintComponent method in a main method, how do I get a method with the argument Graphics?
I have racked my brains, and got scaley eyes reading the API
Please help, as I would like to understand what is going on.
Davy