Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Cancel button ..??

  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    30
    My Mood
    Nerdy
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cancel button ..??

    Hi guys ,
    I'm so happy that I found this nice forum ..
    I just started programming so this site going to be so helpful for me..

    Please guys I need this as soon as possible

    How can I set a cancel button ?

    Ive two buttons ..

    One of them the cancel button .. If the user click the cancel button I want to show message ( you have clicked the cancel button) and exit the program ..

    How can I write this code?

    Thank you


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Cancel button ..??

    See the posts on the thread in the other forum where you posted this same question.

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    10
    My Mood
    Cheerful
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Cancel button ..??

    Are you used IDE like Netbeans..?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Cancel button ..??

    No, I do not use any of the big IDEs. I have a small one with a few, simple features.

Similar Threads

  1. Repressable button in GUI
    By Fermen in forum Object Oriented Programming
    Replies: 2
    Last Post: March 1st, 2011, 05:39 PM
  2. Trying to add a close button
    By coyboss in forum Java Theory & Questions
    Replies: 5
    Last Post: February 12th, 2011, 03:28 PM
  3. Replies: 4
    Last Post: February 8th, 2011, 06:02 AM
  4. Run Or Cancel Java Thread !
    By byrodi in forum The Cafe
    Replies: 11
    Last Post: November 3rd, 2010, 09:04 AM
  5. Action button HELP?
    By utoptas in forum Java Theory & Questions
    Replies: 8
    Last Post: August 27th, 2010, 03:32 PM