Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-40

Interaction issues with Pivot and native modal dialogs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.3
    • wtk
    • None
    • All

    Description

      What steps will reproduce the problem?
      1. Create a PushButton with a tooltip
      2. Wire up a Swing file chooser dialog to the button (see code below)
      3. Click the button

      {{{!
      pivot.wtk.PushButton button = (pivot.wtk.PushButton)serializer.getObjectByName("button");
      button.getButtonPressListeners().add(new pivot.wtk.ButtonPressListener() {
      @SuppressWarnings("deprecation")
      public void buttonPressed(pivot.wtk.Button button)

      { java.awt.Container displayHost = button.getDisplay().getDisplayHost(); javax.swing.JFileChooser fileChooser = new javax.swing.JFileChooser(); fileChooser.showSaveDialog(displayHost); }

      });
      }}}

      What is the expected output? What do you see instead?
      The display host does not see any mouse activity after the [modal] file
      dialog is opened, and as such, the tool-tip timer activates the tool-tip
      incorrectly. The button also does not repaint itself as it should.

      See attached screen shot.

      We don't want to cater to deprecated use cases, but I'm wondering if there
      isn't a native event we could listen for in DisplayHost (like
      enabledChanged) that could allow us to easily solve this problem.

      Attachments

        1. screenshot.png
          40 kB
          Todd Volkert

        Activity

          People

            tvolkert Todd Volkert
            tvolkert Todd Volkert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: