-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.1.6
-
Fix Understood
-
x86
-
windows_nt
Name: skT88420 Date: 04/20/99
This bug report is similar to bug #4145758 which was (incorrectly, I believe)
classified as a non-bug.
I would like JTabbedPane to provide something similar to a vetoablePropertyChangeListener.
One could imagine a JTabbedPane with multiple panes for user entry/edit.
One could also imagine a developer wanting to check the validity of these panes when a user
switches between panes. With a vetoablePropertyChange, a developer could present the user with
a JOptionPane alerting the user to save/discard/cancel changes which have been made, prior to the
panel losing focus.
The reason bug #4145758 was not classified as a bug is that someone believes we can replicate this
functionality by attaching a ChangeListener to the JTabbedPane, however this only signals a statedChange*d*
after the panel switch. This is actually a little late to be doing any input validation, no? If it
is possible to replicate the desired functionality via a ChangeListener, I'd be very happy to accept a pointer
to some such example.
Thanks,
Marcel.
(Review ID: 39421)
======================================================================