B
biffta
I am just starting to develop GUIs in java and have been reading "Big
Java" by Cay Horsmann. I believe it to be quite a simple book but this
is exactly what I need right now. One thing he suggests when it comes
to event handlers is to define a separate (inner) class for them. And
he states that implementing the ActionListener interface in the same
class where you define your components is a bad idea.
It seems to make sense in theory, but having looked through loads of
examples on the Sun website they all do the exact opposite! Which leads
me to wonder if this is one of those "good intentions" type ideas that
no one really bothers with?
Answers to this post could potentially shape the rest of my career!!!
Java" by Cay Horsmann. I believe it to be quite a simple book but this
is exactly what I need right now. One thing he suggests when it comes
to event handlers is to define a separate (inner) class for them. And
he states that implementing the ActionListener interface in the same
class where you define your components is a bad idea.
It seems to make sense in theory, but having looked through loads of
examples on the Sun website they all do the exact opposite! Which leads
me to wonder if this is one of those "good intentions" type ideas that
no one really bothers with?
Answers to this post could potentially shape the rest of my career!!!