All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.WATextArea

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextArea
                           |
                           +----tea.awt.WATextArea

public class WATextArea
extends TextArea

This class is an extension of TextArea with a workaround for a bug of JDK 1.1.1 (this bug gives an incorrect value for getSelectionStart() and getSelectionEnd() in Windows 95). I have checked the Java version in the constructor so that the workaround is active for the 1.1.1 Windows95 version only. I hope that in JDK 1.1.2 this will be fixed.

Version:
1.0 beta - 31 May 1997
Author:
Leonardo Boselli

Constructor Index

 o WATextArea()
Constructor for the WorkAround TextArea
 o WATextArea(String)
Constructor for the WorkAround TextArea

Method Index

 o getSelectionEnd()
Overloaded getSelectionEnd() with the bug correction (it's active with Windows 95 and JDK 1.1.1 only)
 o getSelectionStart()
Overloaded getSelectionStart() with the bug correction (it's active with Windows 95 and JDK 1.1.1 only)

Constructors

 o WATextArea
 public WATextArea()
Constructor for the WorkAround TextArea

 o WATextArea
 public WATextArea(String s)
Constructor for the WorkAround TextArea

Methods

 o getSelectionStart
 public int getSelectionStart()
Overloaded getSelectionStart() with the bug correction (it's active with Windows 95 and JDK 1.1.1 only)

Overrides:
getSelectionStart in class TextComponent
 o getSelectionEnd
 public int getSelectionEnd()
Overloaded getSelectionEnd() with the bug correction (it's active with Windows 95 and JDK 1.1.1 only)

Overrides:
getSelectionEnd in class TextComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index