bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/24740] New: JTextArea create with 0 rows and 0 columns no


From: langel at redhat dot com
Subject: [Bug classpath/24740] New: JTextArea create with 0 rows and 0 columns not right.
Date: 8 Nov 2005 18:48:25 -0000

A JTextArea that is initialized with 0 columns, 0 rows and some text does not
show up right. With the JDK, there appears to be a minimum number of rows and
columns initialized, so the text shows up in some decent manner.

Test Case **********************************

import javax.swing.*;
public class test {
   public static void main(String[] args) {
      new test();
   }

   public test() {
      JFrame frame = new JFrame();
      frame.getContentPane().add(new        
        MultilineLabel("helllllllllllllo\n
          hellllllllllllllllllooooooo\n", 0, 0));
      frame.pack();
      frame.show();
   }

   protected class MultilineLabel extends JTextArea {
      public MultilineLabel(String text, int rows, int columns) {
         super(text, rows, columns);
         getCaret().setVisible(false);
         setEditable(false);
         setOpaque(false);
         setLineWrap(true);
         setWrapStyleWord(true);
      }
   }
}


-- 
           Summary: JTextArea create with 0 rows and 0 columns not right.
           Product: classpath
           Version: 0.19
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: langel at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24740





reply via email to

[Prev in Thread] Current Thread [Next in Thread]