Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to tie a member variable inside and outside of a changeListener  RSS feed

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Tcr object as a member variable of the JFrame.
But When ChangeListener swings into action, the variable inside it are all nulls.
the TcrPanel is created before the ChangeListener is triggered.
Please help
Thanks
Jack

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CloseButtonTabbedPane pane = (CloseButtonTabbedPane) e.getSource();

Just wondering, if this e.getSource() will retrieve that same tcrPanel object
as the one which lives inside the JFrame class (the member variable just
in the outer class of the ChangeListener)?

Thanks
Jack
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!