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.
The moose likes Swing / AWT / SWT and the fly likes detect a line in a jtextarea 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
Reply Bookmark "detect a line in a jtextarea" Watch "detect a line in a jtextarea" New topic
Author

detect a line in a jtextarea

Gizzmo Zeuzere
Ranch Hand

Joined: May 11, 2001
Posts: 45
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
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