JDK-1261842 : awt TextComponents have decorations that cannot be removed
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5
  • CPU: sparc
  • Submitted: 1996-08-01
  • Updated: 1999-12-14
  • Resolved: 1999-12-14
Related Reports
Duplicate :  
Description
The awt TextComponents TextField and TextArea give editable text areas with automatic border decoration.  On motif/X systems, this decoration is a border shadow surrounded by a text focus indicator.  I don't know what it is for Windows or MacOS, but I suspect that the versions for those window systems also have decorations.  There's no way to make a text area without these decorations.

There are several instances where text areas without the default decorations are desirable:  when an entire window is a text area; when many text areas are presented in an array like a spreadsheet; when it is desirable for a label to be "Copy"-able without it being editable or necessarily having a cursor or gaining the keyboard focus; and when the programmer wishes to provide his own border decoration.

All three of the Window systems (Motif/X, Windows, and MacOS) support text areas without decoration in a fundamental form.  In fact, on Windows and MacOS I believe these are easier to implement than decorated text areas.  So there's no "portability" reason why this should not be implemented.

Comments
SUGGESTED FIX Add methods to TextComponent or TextArea and TextField allowing the programmer to specify whether or not the text areas have border decorations.
11-06-2004

PUBLIC COMMENTS awt TextComponents (TextArea and TextField) have border decorations that cannot be removed.
10-06-2004

EVALUATION Many of the uses the submitter requested are provided by Swing. The others can generally be provided by lightweight components. There is a project under development to provide Undecorated or client-decorated top-level frames, which should address the remaining cases. I am closing this bug as a duplicate of that one. eric.hawkes@eng 1999-12-13
13-12-1999