-
Bug
-
Resolution: Fixed
-
P4
-
1.4.1
-
mantis
-
x86
-
windows_2000, windows_xp
-
Verified
Name: kaR10181 Date: 03/06/2002
JDK version : jdk1.4.1-b03
Platform[s] : Windows 2000,Windows XP professional
switch/Mode : -client -Xfuture -Xmixed
Java 2 Platform SE v1.4 specification reads about the class TextArea:
"
The following image shows the appearance of a text area:
[picture of TextArea]
This text area could be created by the following line of code:
--------------------------------------------------------------------------------
new TextArea("Hello", 5, 40);
"
We should see both scrollbars as pictured, but really we see only
vertical scrollbar. Same behavior we have then we try to set
SCROLLBARS_BOTH flag. We can read from specification pages,"field detail"
section,in description of SCROLLBARS_BOTH flag the next phrase:"Create and
display both vertical and horizontal scrollbars", but we can see only
vertical.
------------------------TextAreaTest1.java---------------------------------------
import java.awt.*;
public class TextAreaTests1 extends Frame {
TextArea tArea;
public void TextAreaTest0001() {
tArea = new TextArea("TextAreaTests1", 5, 60, TextArea.SCROLLBARS_BOTH);
add(tArea,null);
}
public static void main(String argv []) {
TextAreaTests1 test = new TextAreaTests1();
test.setVisible(true);
test.TextAreaTest0001();
test.setBounds(new Rectangle(0, 0, 200, 100));
test.setVisible(true);
}
}
Specific Machine Info:
======================
Hostname: linux-16
Os: Window XP professional
======================================================================