Action or Subclass method?  
Author Message
Lobang Trader





PostPosted: 2004-4-2 13:06:00 Top

java-programmer, Action or Subclass method? I need to know which is the PROPER way of handling this situation:

I would like to be able to cascade all the JInternalFrames in a
JDesktopPane.

Should I create a

1) cascade() method in a subclass of JDesktopPane? or

2) create a CascadeAction (a subclass of AbstractAction) and pass a
reference of the JDesktopPane?

Both ways work. HOWEVER, which is the PROPER Object Oriented solution?