Results 1 to 3 of 3
  1. #1
    nit_go is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default how to make graphic 'painted' on a button visible after disabling??

    I want to "paint" a graphic on a button.

    This is how I did it in actionPerformed() :
    repaint();
    remove(b);

    The prob is..i hv more thn one button..when the next button is clicked, the graphic on the prev. button is turning black(I earlier set it to blue)..
    how cn I correct this??

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    You may get lucky, and someone may be able to help you, but if not, consider posting more information regarding your problem, because myself, I don't have any idea what is wrong given the information you've provided. Please have a look here for useful tips on how to ask answerable questions: How To Ask Questions The Smart Way

  3. #3
    nit_go is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default thanx

    Thanx for the advice...!!!:)
    I shud hv defined my problem more clearly...but anyway..my doubt hs been solved..

Similar Threads

  1. tooltip should be visible when button disabled
    By Sureshgurram in forum SWT / JFace
    Replies: 1
    Last Post: 11-23-2010, 09:58 AM
  2. Replies: 9
    Last Post: 11-01-2009, 05:45 AM
  3. Disabling a button at EOF
    By dbashby in forum New To Java
    Replies: 1
    Last Post: 03-10-2009, 02:37 PM
  4. Make java applet a button
    By hervey in forum New To Java
    Replies: 31
    Last Post: 10-30-2008, 05:44 AM
  5. [SOLVED] Disabling a button not working
    By Leprechaun in forum New To Java
    Replies: 2
    Last Post: 04-24-2008, 04:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •