This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to so the error in textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to so the error in textarea" Watch "how to so the error in textarea" New topic
Author

how to so the error in textarea

gowtham cow
Greenhorn

Joined: Oct 01, 2010
Posts: 4
while typing user missing ) at the time i want to show error

ex:

set (aa,bb --> here i wnt to show error
set (aa,bb)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172
    
    8

gowtham [surl='http://www.coderanch.com/how-to/java/RanchCows' class='api' title='Ranch Cows wrote:cow[/surl]]

Please check your private messages for an important administrative matter.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172
    
    8

What have you got so far, and where are you stuck?
Check out http://faq.javaranch.com/java/NumericTextField for an idea on how it can be done.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

gowtham [surl='http://www.coderanch.com/how-to/java/RanchCows' class='api' title='Ranch Cows wrote:cow[/surl]]while typing user missing ) at the time i want to show error

ex:

set (aa,bb --> here i wnt to show error
set (aa,bb)


As hard as your explanation is to understand, I will try. You might want to improve your communication skills.

My understanding is that you have a text box and a user types something into it. When the user misses a close bracket symbol ')' you would like to raise an error. So...

Is this a web page ? Swing ? Eclipse RCP ?
How do you want to display the error ?
What did you do so far and why did it not work ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
gowtham cow
Greenhorn

Joined: Oct 01, 2010
Posts: 4
like netbean i want to show error if close bracket missing ..

ex:
set (aa,bb here i want to so ) expected in my text area editor


please reply if no the solution
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38046
    
  22
You mean you want to parse the text as if it were program code?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172
    
    8

gowtham [surl='http://www.coderanch.com/how-to/java/RanchCows' class='api' title='Ranch Cows wrote:cow[/surl]]like netbean i want to show error if close bracket missing ..
ex:
set (aa,bb here i want to so ) expected in my text area editor
please reply if no the solution


Maneesh Godbole wrote:
gowtham [surl='http://www.coderanch.com/how-to/java/RanchCows' class='api' title='Ranch Cows wrote:cow[/surl]]

Please check your private messages for an important administrative matter.


Goutham,
You really need to check your private messages. Please not it is not optional
 
Don't get me started about those stupid light bulbs.
 
subject: how to so the error in textarea
 
Similar Threads
instanceof Comparison
inheritance and class casting question
static methods and NULL
generate xml to java Bean
Multiple repeat insert