Tania Bento wrote:
Hey,

This patch fixes two minor bugs in JTabbedPane.java.
The first is that when a new tab is added/inserted, if there is no tab
currently selected, then this one automatically is.  The problem was
that this change was not being notified to the ChangeListeners, when it
should be.

The second bug was that in the setModel method, a new ChangeListener was
being created if the current one was not null.  This obviously shouldn't
be the case.  A new ChangeListener should only be created if there does
not exist one.

Because of these changes, tab switching now works properly in the
Java2DDemo.

Can someone kindly approve/comment on this patch.

Please commit.  For obvious patches like this, an FYI message is sufficient.

Tom

Reply via email to