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

JToolTip is shown partially when placed very close to screen boundaries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0_01
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      x86
    • OS:
      solaris_2

      Backports

        Description

        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();
            }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: