• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic