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

"postTip" action is not registered in ToolTipManager, when inpu map is empty

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6u10
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_12-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_12-ea-b03)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      "postTip" action is not registered in ToolTipManager, when input map of the registred component is empty, espcecially in JTable.

      It causes difficulty to show the tooltip using "postTip" action.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      JTable table = new JTable();

      Press Ctrl+F1 - no tooltip is shown.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When I have normal JTable in my application and when I have pressed Ctrl+F1, I expect, that thew tooltip will be shown like in some other components.
      ACTUAL -
      No tooltip is shown in JTable, when Ctrl+F1 is pressed.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error message.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      JTable table = new JTable();
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      JTable table = new JTable() {
         @Override
          protected void initializeLocalVars() {
              getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_F1,Event.CTRL_MASK), "postTip");
              super.initializeLocalVars();
          }
      };

      SUPPORT :
      YES

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              igor Igor Nekrestyanov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: