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

JToolTip is shown partially when placed very close to screen boundaries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0_01
    • 1.4.0
    • client-libs
    • None
    • 01
    • x86
    • solaris_2

        When tool tip location is very close to the screen edges, then it shows only partially. Tool tip does not get adjusted it-self to show its full length of
        text. This happens on windows with Merlin.

        This is similar to bug# 4425878 which involves popup menu.

        Test case:
        public class MyTestW extends Object {
            public static void main (String args[]) {
                javax.swing.JFrame f = new javax.swing.JFrame();
                javax.swing.JButton b = new javax.swing.JButton("whooo");
                b.setToolTipText("Somthing really long 1234567890 1234567890 1234567890
        1234567890 1234567890 1234567890 1234567890 1234567890");
                f.getContentPane().add(b);
                f.pack();
                //f.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
                f.show();
            }
        }

              hgodugusunw Harsha Godugu (Inactive)
              hgodugusunw Harsha Godugu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: