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

JButton title is truncating for some strings irrespective of preferred size.

XMLWordPrintable

    • b72
    • generic, x86
    • generic, windows_xp, windows_vista

        JButton title is truncating for some strings irrespective of preferred size.I have set different titles to JButton and expected the title should appear in the Button.
        But for some strings the title is truncating with three dots.

        I have set a "Probably" string to JButton as title and I would expected the button should show given string as title.But it shows "Proba..." by truncating with dots.

        It works fine with 6ur builds.I could see this issue only with JDK7

        JDK Version
        ===========
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b43)
        Java HotSpot(TM) Client VM (build 14.0-b10, mixed mode)

        Please run the attached code for reproducing the issue.
        Also seen content in the OptionPane Dialogs getting truncated similarly in jdk7 b46

              alexp Alexander Potochkin (Inactive)
              vthotasunw Vinay Thota (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: