Hi,
I am trying to use a class which extends JFrame to build a GUI.
ex : class Deck extends JFrame
The GUI is built in its constructor.
Now when I extend Deck from another class,
ex : class Pile extends Deck
New windows are being created whenever an instance of the subclass (Pile) is started.
Is this happening because the subclass is inheriting the superclass constructor and therefore creating another window?
Can this be avoided without modifying the Deck superclass?
Thanks.