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

A multiline JTextAre with setLineWrap and setWrapStyleWord can not hold full capacity of lines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 6u1
    • client-libs

      J2SE Version (please include all output from java -version flag):
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      Does this problem occur on J2SE 1.4.x or 5.0.x or 6.0? Yes / No
      6.0 only


      Operating System Configuration Information (be specific):
      Windows XP SP 2


      Hardware Configuration Information (be specific):
      Intel-based System


      Bug Description:
      A multiline JTextArea with setLineWrap(true) and setWrapStyleWord(true)
      cannot
       hold the full capacity of lines, the last line cannot be entered.

      This occurs in Windows L&F only, Metal L&F Works fine.

      The following Message ist displayed:



      Steps to Reproduce (be specific):
      Design a e.g. two line JTextArea with

      JTextArea jtaTest =3D new JTextArea();
      jtaTest.setWrapStyleWord(true);
      jtaTest.setLineWrap(true);
      jtaTest.setLimitTextToVisibleArea(true);
      jtaTest.setBounds(new Rectangle(370, 316, 340, 35));
      jtaTest.setFont(new Font("Courier New", Font.PLAIN, 14));

      and try to enter more than one line of text.

            peterz Peter Zhelezniakov
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: