Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

tab change notification in Swing

Options
  • 11-08-2004 2:40pm
    #1
    Closed Accounts Posts: 47


    Hi there

    I have a JTabbedPane and I would like to add a listener that would be informed when the user changes tabs. I have looked at adding a ChangeListener to the tabbed pane and to the pane's selection model. No luck there. Also tried a PropertyChangeListener on the tabbed pane, but with no more success.

    Any suggestions would be appreciated.

    PHiL

    EDIT: Forget I even mentioned it. The ChangeListener is fired just fine, it's just that my logging level was wrong so I didn't see it show up in the log files I was generating. It's been one of those days....


Comments

  • Registered Users Posts: 2,243 ✭✭✭zoro


    Tell me about it - I have them all the time :(
    On the plus side, me bieng a Java Swing lover, I knew the answer to your question :)


Advertisement