aspose file tools*
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
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: 10361
    
    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: 10361
    
    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: 38793
    
  23
You mean you want to parse the text as if it were program code?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10361
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to so the error in textarea