Forums Register Login

match parenthesis on mouse click

+Pie Number of slices to send: Send
Hi,

I want to create a swing application, in which I can match the parenthis on mouse click(same like any IDE like eclipse). I want to know How can I implement it in swings, I am a beginer in Swings.

Please Help!

Thanks,
Himani
+Pie Number of slices to send: Send
  • A recursive method called whenever you enter a (.
  • A count of ( entered, reduced by 1 whenever you click; if (parenthesisCoutn > 0) builder.append(")");
  • Those any use?
    +Pie Number of slices to send: Send
    Hi,

    Thanks!
    But I want to know how can I show the the text area selected, till the matching parenthis?

    Regards,
    Himani
    Your mother was a hamster and your father was a tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com


    reply
    reply
    This thread has been viewed 842 times.
    Similar Threads
    chat application like facebook
    Desktop Application
    Adding parameters through java to third party tool Business Objects during invocation
    calling a JS function on mouse event
    do click
    More...

    All times above are in ranch (not your local) time.
    The current ranch time is
    Mar 28, 2024 03:49:17.