[java] textarea

Started by
12 comments, last by Jeremiah 24 years, 2 months ago

>I don''t imagine that there would be any problem with you
>just using the javax.swing.text package and just including
>it in your distribution.

The main reason I dont want to use Java 1.1, 1.2, 2.0, or swing is because it is going to be an applet. I need it to be small and use Java 1.0

I''ll try and see if I can find the appropriate classes
so I can extend textarea to include colored fonts and images.

thanx for all the advice and replies.
http://fakemind.com
Advertisement
If you''re using 1.0 there''s not going to be any API or class that you can use, you''re gonna have to code your own component. Good luck hadling events.
Actually java1.1 is supported by the major browsers. The event handling there is a lot more nicer than it was with java1.0

JoeG
joeG
well, I''m beginning coding it today...

Its going to have a canvas, and a scrollbar.

The part Im trying to figure out is this:
I am going to need to know the total height of the
"textarea" information, so I can deal with the scrollbar.

but this isnt as easy as it sounds. because Im going to be
using different fonts, and each font takes up different amount of space. some are fixed-width, and some arent.
And then if I add in images, I''ll hafta add them into figureing out the hieght.

what should I have the "textarea" contents stored in?
How should I store it, so I can store the color of different words and images and such?
http://fakemind.com

This topic is closed to new replies.

Advertisement