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 2 of 2

Thread: JButton

  1. #1
    Member
    Join Date
    Feb 2012
    Posts
    39
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default JButton

    I was wondering if anyone could help me with this simple problem.

    How do you set a JButton to start off as false and if another JButton is pressed it is enabled true. For example: a slot machine. If theres no money in the balance then the play button is disabled but if you press add a pound then the play button is enabled

    Thank You


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JButton

    Please don't double post. Your other post was moved to a more appropriate location
    http://www.javaprogrammingforums.com...7-jbutton.html
    Thread locked.

Similar Threads

  1. JButton
    By usherlad in forum AWT / Java Swing
    Replies: 1
    Last Post: August 10th, 2012, 12:02 PM
  2. JButton
    By ranjithfs1 in forum AWT / Java Swing
    Replies: 4
    Last Post: March 17th, 2012, 03:12 AM
  3. Help with jButton
    By ls7897 in forum AWT / Java Swing
    Replies: 6
    Last Post: March 13th, 2011, 03:22 PM
  4. JButton help
    By tabutcher in forum Java Applets
    Replies: 4
    Last Post: March 9th, 2010, 07:04 PM
  5. JButton...
    By chronoz13 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 27th, 2009, 11:39 AM