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

[Win LAF]The tooltip doesn't display correctly in Win LAF

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • tbd
    • client-libs
    • None
    • source
    • medium
    • getAcceleratorString() was deprecated in MetalToolTipUI class. The same method has been moved to its parent class. Anyhow the deprecated method which was used has been replaced ( getKeyModifiersText() replaced with getModifiersExText() ).
    • Java API
    • Implementation

      Accelerated string feature which was implemented only in MetalToolTip class has been moved to ToolTipUI class, which is its super-super class. The feature can be used by other Look and Feels as it has been used in BasicToolTipUI class to show the Accelerated String when ToolTip is show. Methods which has been moved are 1. isAcceleratorHidden() 2. getAcceleratorString(JToolTip tip) 3. calcAcceleratorSpacing(JComponent c, FontMetrics fm, String accel)

      Member variables that has been moved are 1. private String acceleratorDelimiter; 2. public static final int padSpaceBetweenStrings = 12;

            tr Tejesh R
            tmeng Tina Meng (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: