Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MVC - new frames  RSS feed

 
Besjamain Greenaway
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Campbell Ritchie
Marshal
Posts: 55768
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread would sit better in the Swing forum. Moving.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!