Welcome to Dream.In.Code
Become a Java Expert!

Join 150,133 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,185 people online right now. Registration is fast and FREE... Join Now!




length in jtextpanes

 
Reply to this topicStart new topic

length in jtextpanes

justindray
5 Aug, 2008 - 12:01 AM
Post #1

New D.I.C Head
*

Joined: 4 Aug, 2008
Posts: 3


My Contributions
How do i find the length of the text entered in a jtextpane object? i cant seem to find information on this.
thanks in advance for your help
User is offlineProfile CardPM
+Quote Post

abgorn
RE: Length In Jtextpanes
5 Aug, 2008 - 02:12 AM
Post #2

Hello Crap for Brains
Group Icon

Joined: 5 Jun, 2008
Posts: 912



Thanked: 5 times
Dream Kudos: 50
My Contributions
You need to use the getLength() method
User is offlineProfile CardPM
+Quote Post

justindray
RE: Length In Jtextpanes
5 Aug, 2008 - 03:29 PM
Post #3

New D.I.C Head
*

Joined: 4 Aug, 2008
Posts: 3


My Contributions
QUOTE(abgorn @ 5 Aug, 2008 - 03:12 AM) *

You need to use the getLength() method



thanks, i will try this smile.gif
User is offlineProfile CardPM
+Quote Post

justindray
RE: Length In Jtextpanes
5 Aug, 2008 - 03:41 PM
Post #4

New D.I.C Head
*

Joined: 4 Aug, 2008
Posts: 3


My Contributions
QUOTE(justindray @ 5 Aug, 2008 - 04:29 PM) *

QUOTE(abgorn @ 5 Aug, 2008 - 03:12 AM) *

You need to use the getLength() method



thanks, i will try this smile.gif



that didn't work. useing textPanes[index].getText().length() works though
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:50AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month