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

Mnemonic shortcut not displaying on tool tip

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.7.0_60"
      Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 64 bit

      A DESCRIPTION OF THE PROBLEM :
      I have configured a set toolTip to a button in Swing, there i have also configured a setMnemonic short cut to the same button,
      in java 5 it was working fine but in java 7 the short cut is not display on tool tip in java 7 64 bit.


      This was working fine in java 5 but not working in java 7 64 bit

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_60"
      Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      In swing
      JButton jbx=new JButton();
      jbx.setMnemonic(KeyEvent.VK_A);
      jbx.setToolTip("it is button")

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the mnemonic shortcut should display when cursor moving on to the button

      ACTUAL -
      the mnemonic shortcut should display when cursor moving on to the button
      it displays only the tool top text

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      no error message

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      In swing
      JButton jbx=new JButton();
      jbx.setMnemonic(KeyEvent.VK_A);
      jbx.setToolTip("it is button")
      ---------- END SOURCE ----------

      SUPPORT :
      YES

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: