-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.2
-
other, sparc
-
other, solaris_9
The cursor is an I-bar cursor even when it is over the scroll bars.
It is also an I-bar when the TextArea is not editable. Only editable
TextAreas should have the I-bar cursor.
Here is a test case. It includes two files: "Makefile" and
"Main.java". To build it, run 'make build'. To run it, run 'make run'.
The Makefile is designed so that only the first line needs to be
modified in order to use a different JDK.
------------------------------ Makefile ------------------------------
JAVA_HOME = /usr/java
CLASSPATH = .:$(JAVA_HOME)/lib/classes.zip
JAVAC = $(JAVA_HOME)/bin/javac -classpath $(CLASSPATH)
JAVA = $(JAVA_HOME)/bin/java
JAR = $(JAVA_HOME)/bin/jar
RM = /usr/bin/rm -f
build:
$(JAVAC) Main.java
run:
@JAVA_HOME=$(JAVA_HOME); export JAVA_HOME; CLASSPATH=$(CLASSPATH); export CLASSPATH; $(JAVA) Main
clean:
$(RM) Main.class
----------------------------- Main.java ------------------------------
import java.awt.*;
class Main
extends Frame
{
TextArea ta = new TextArea(10, 40);
Main() {
super("TextArea Example");
add("Center", ta);
pack();
setVisible(true);
}
static public void main(String[] args) {
new Main();
}
}
----------------------------------------------------------------------
It is also an I-bar when the TextArea is not editable. Only editable
TextAreas should have the I-bar cursor.
Here is a test case. It includes two files: "Makefile" and
"Main.java". To build it, run 'make build'. To run it, run 'make run'.
The Makefile is designed so that only the first line needs to be
modified in order to use a different JDK.
------------------------------ Makefile ------------------------------
JAVA_HOME = /usr/java
CLASSPATH = .:$(JAVA_HOME)/lib/classes.zip
JAVAC = $(JAVA_HOME)/bin/javac -classpath $(CLASSPATH)
JAVA = $(JAVA_HOME)/bin/java
JAR = $(JAVA_HOME)/bin/jar
RM = /usr/bin/rm -f
build:
$(JAVAC) Main.java
run:
@JAVA_HOME=$(JAVA_HOME); export JAVA_HOME; CLASSPATH=$(CLASSPATH); export CLASSPATH; $(JAVA) Main
clean:
$(RM) Main.class
----------------------------- Main.java ------------------------------
import java.awt.*;
class Main
extends Frame
{
TextArea ta = new TextArea(10, 40);
Main() {
super("TextArea Example");
add("Center", ta);
pack();
setVisible(true);
}
static public void main(String[] args) {
new Main();
}
}
----------------------------------------------------------------------
- duplicates
-
JDK-4054768 TextArea widget: cursor doesn't change to arrow over scrollbar
- Closed