How to "grey out" a JButton?

Discussion in 'Java' started by Anony!, Aug 15, 2004.

  1. Anony!

    Anony! Guest

    Hi

    I have a JButton that I would like to grey out after the user has clicked on
    it once. This will prevent further clicking until a user clicks on another
    JButton to restart it. I have been scrambling through the Java API and could
    not find any methods that implement this.

    Any help appreciated.

    AAA
     
    Anony!, Aug 15, 2004
    #1
    1. Advertisements

  2. Anony!

    Tony Morris Guest

    1. Advertisements

  3. Anony!

    Anony! Guest

    Anony!, Aug 15, 2004
    #3
  4. Anony!

    zoopy Guest

    zoopy, Aug 16, 2004
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bao

    Help JButton

    Bao, Jul 18, 2003, in forum: Java
    Replies:
    2
    Views:
    542
    Kevin Pors
    Jul 19, 2003
  2. Brian J. Sayatovic
    Replies:
    1
    Views:
    740
    Karsten Lentzsch
    Aug 13, 2003
  3. Ike

    JButton Insets

    Ike, Aug 29, 2003, in forum: Java
    Replies:
    0
    Views:
    2,316
  4. James
    Replies:
    2
    Views:
    616
    Moshe Sayag
    Nov 11, 2003
  5. kevinc

    Jbutton and text

    kevinc, Nov 24, 2003, in forum: Java
    Replies:
    5
    Views:
    996
    Nosnos
    Nov 26, 2003
  6. Karl

    Javascript grey out

    Karl, Feb 15, 2009, in forum: HTML
    Replies:
    2
    Views:
    1,314
    Harlan Messinger
    Feb 15, 2009
  7. J Belly

    Grey out or disable form?

    J Belly, Feb 4, 2005, in forum: Javascript
    Replies:
    1
    Views:
    289
    Joakim Braun
    Feb 6, 2005
  8. acord

    grey-out/disabled item in listbox

    acord, Mar 11, 2006, in forum: Javascript
    Replies:
    3
    Views:
    399
    acord
    Mar 11, 2006
Loading...