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

TextArea cursor over scrollbars should not be the I-bar

XMLWordPrintable

    • 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();
      }

      }

      ----------------------------------------------------------------------





            xdengsunw Xianfa Deng (Inactive)
            mhmccart Mary Mccarthy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: