Forums Register Login

MVC - new frames

+Pie Number of slices to send: Send
Hello,

I have an application using MVC. The main frame has a couple of buttons on it. When clicked, an anonymus inner class forwards it to the controller it has a reference to to implement the behavior. But now I would like another frame to pop up when a button is clicked on the main frame. This frame also has a controller. Does this mean the controller class for the main frame has class scope variables for yet another frame and controller? It seems a bit odd to me...
+Pie Number of slices to send: Send
This thread would sit better in the Swing forum. Moving.
A teeny tiny vulgar attempt to get you to buy our stuff
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1083 times.
Similar Threads
Dispose?
Confused with MVC
Create new JSP page dynamically
A main JFrame with a button to open a new JDialog - MVC
MVC pattern again - with one class per view
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:53:17.