• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method call not working  RSS feed

 
Alice Hampton
Ranch Hand
Posts: 217
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two comboBoxes - one in main and another in my 'windows' class. The code below is in main and references the comboBox in main but I need to use the comboBoxEnv out of my 'windows' class. How can I do that so it says ComboBoxEnv rather than comboBox?




*Edit*
I've gotten access to it by changing my code and making a method of it but I'm not sure of what I do now
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically two views would work thru a shared model - in Swing commonly implemted with the Observer pattern - to avoid this sort of coupling, but I can't really tell if that applies here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!