Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4231307

JTabbedPane switching panel focus

    XMLWordPrintable

Details

    • Fix Understood
    • x86
    • windows_nt

    Description



      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)
      ======================================================================

      Attachments

        Activity

          People

            Unassigned Unassigned
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: