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

Tool Tip Panel is not Wide Enough to Display All Tool Tip Text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs

      import java.awt.*;
      import javax.swing.*;

      When run with Swing 1.1.1 beta 2, the tool tip panel is not wide enough to contain all of the tool tip text. The last character is truncated.

      Below is a test case:

      public class TruncatedToolTip extends JFrame {

        JButton jb;

        public TruncatedToolTip() {
          super("TruncatedToolTip");
          setSize(500, 500);
          jb = new JButton("Button");
          jb.setToolTipText("Tooltip Text");
          getContentPane().setLayout(new BorderLayout());
          getContentPane().add("Center", jb);
          setVisible(true);
        }

        public static void main(String args[]) {
          try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          } catch (Exception e) {}
          TruncatedToolTip ttt = new TruncatedToolTip();
        }
      }

            gsaab Georges Saab
            nrodinsunw Nick Rodin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: