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

JTextField displays multiple Line

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_7, windows_95, windows_98, windows_nt



      Name: el35337 Date: 06/03/98


      Swing 1.0.2 - JDK 1.1.6 - Win 95/NT

      I'll try again. It is quite simple and does
      not need example code. You can try it with
      SwingSet.

      Select some text containing multiple lines.
      For examples the following two lines:

      This is line one
      This is line two

      Copy the text to the System-Clipboard (CTRL+C).

      Open SwingSet and select the "Labels" Tab.
      Select one of the JTextField.
      Paste the text from the clipboard into the
      TextField (using CTRL+V).

      You will see: Two lines displayed in a one
       line JTextField !

      I think that the bug is in the default model
      of JTextField (PlainDocument).
      (Review ID: 32901)
      ======================================================================

            tprinzing Tim Prinzing (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: