-
Bug
-
Resolution: Fixed
-
P4
-
1.1.5
-
swing1.1
-
generic
-
generic
Name: rk38400 Date: 04/13/98
This code outputs "Lines on empty: 1", which is
not what I expected.
import com.sun.java.swing.*;
public class Test{
public static void main( String[] args ) {
JTextArea textArea = new JTextArea();
int lines = textArea.getLineCount();
System.out.println("Lines on empty: " + Integer.toString( lines ) );
}
}
How many bug reports do I need to get a T-shirt?
(Review ID: 26646)
======================================================================
- relates to
-
JDK-4418504 JTextArea.getLineCount() behaviour should be modified
-
- Resolved
-
-
JDK-4186749 getLineCount() and line wrap: does not return current no of lines in JTextArea
-
- Closed
-