S
stroker_ace
Hi,
I am new to swing and am writing which consists of a main window
(extended JFrame) and several child windows (Extended JDialog)
Virtually all of my class functionality seems to be contained within
anonymous inner classes.
As a result each (outer) class in my GUI tends to have a large
constructor (crwating components and assigning (anoymous inner class)
listeners) and virtually no methods.
Can anyone comment on whether this is good or bad style?
My approach seems sensible to me because component listeners are highly
tailored to the functionality of the component in question and should
probably not be instantiable by other components.
Cheers
Lawrie
I am new to swing and am writing which consists of a main window
(extended JFrame) and several child windows (Extended JDialog)
Virtually all of my class functionality seems to be contained within
anonymous inner classes.
As a result each (outer) class in my GUI tends to have a large
constructor (crwating components and assigning (anoymous inner class)
listeners) and virtually no methods.
Can anyone comment on whether this is good or bad style?
My approach seems sensible to me because component listeners are highly
tailored to the functionality of the component in question and should
probably not be instantiable by other components.
Cheers
Lawrie