[1207] in java-interest

home help back first fref pref prev next nref lref last post

Coding UI in windows (sources!)/req info on text-based objects in Java

daemon@ATHENA.MIT.EDU (java guru)
Fri Aug 25 20:53:30 1995

Date: Fri, 25 Aug 95 14:15:19 -0700
From: java guru <devjava@gscorp.com>
To: java-interest@java.sun.com

Firstly... there's a sample applet on http://www.cs.sonoma.edu/Java  
that demonstrates a simple UI with UI-related objects that talk to  
each other.  Big deal, right?  Well for some it is.  The sources are  
available there as well as the executable versions.  Hopefully I'll  
get to keep putting cute applets with sources there as I find the  
time.

I'd like to ask a question about the AWT.TextArea object.  Is there a  
way of erasing text in a TextArea.  I'd like to know the same for a  
AWT.TextField object.

The API only covers the following in the TextArea API (for example):

- cursorPos:
- dispose:
- endPos:
- getPreferredSize:
- getText:
- insertText:

These are nice but...
How about adding the following: 

- setSel: (setSelection)
- cut: (cut text)
- delete: (delete text)
- paste: (paste text)

Or are these handled in the superclasses somewhere?
Am I missing something?  This seems like pretty obvious stuff in any  
text-based object.

--thomas--
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post