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

ToolTip is not showing up properly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.3.0
    • client-libs
    • beta
    • x86, sparc
    • solaris_2.6, windows_nt
    • Verified

      This bug seemed to start on 1.3-H build. I tried the following program on G build and it works fine, but on H and subsequent builds the tool tip is just a flicker where you can see it for a very brief moment and then it disappears.

      Here is a simple program to re-create it:


      --------------------------------- Cut Here -----------------------------------

      import javax.swing.*;

      public class TestToolTip extends JFrame {
          JPanel testPanel;
          JButton button;

          public static void main(String[] args) {
              new TestToolTip();
          }

          public TestToolTip() {
              testPanel = new JPanel();
              button = new JButton("Hello");
              button.setToolTipText("Hello There");

              testPanel.add(button);
              setContentPane(testPanel);

              setSize(300, 300);
              setVisible(true);
          }
      }

      ---------------------------------- Cut Here -----------------------------------

      Note: Be sure to use Kestrel 1.3-H build or up.


      -- Edmund Lou
      JFC SQE

            gsaab Georges Saab
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: