This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
detect a line in a jtextarea
Gizzmo Zeuzere
Ranch Hand
Joined: May 11, 2001
Posts: 45
posted
Jun 04, 2002 09:06:00
0
when i find a "{" i want to know the line where it appears. But i don't know how to do. Help please !!!
Angela Lamb
Ranch Hand
Joined: Feb 22, 2001
Posts: 156
posted
Jun 04, 2002 13:20:00
0
Use the getLineOfOffset(int�offset) function. The offset parameter will be the position of the '{' within your text.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: detect a line in a jtextarea
Similar Threads
Decode the Mnemonic
travel agent java -- problem when i put the input prompt it does not go to the next promp
java line
Question on EJB 3 transaction
Can't find out the error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter