Button doesn't allow pressing

I have a couple of JButtons that don't visually change to the pressed state when I click them. They're both enabled. Anyone know why?
thx

Anyone else?
Here's the code for my button if it helps any:
public class ImageButton extends JButton {
   private ImageIcon icon;
   public ImageButton(String path, Color bgColor) {
      icon = new ImageIcon(path);
      this.setSize(icon.getIconWidth(), icon.getIconHeight());
      //this.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
      this.setBackground(bgColor);
      this.setIcon(icon);
      this.setHorizontalAlignment(SwingConstants.CENTER);
}

Similar Messages

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

  • My iPod touch 4th gen white's home button doesn't work the first time I press it, but the second time.

    My home button doesn't work the first time I press it, but the second time.  This is very annoying.  Why is it doing this?

    - Try a reset. It cures many ills and nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -If a hardware problem see:
    fix for Home button

  • When I am on a call and I come to hang up, the phone which when to my ear has a black screen, starts to light up then blacks out intermittently and in the brief moments it is lit up, the hang up button doesn't work unless I press home or lock buttons firs

    When I am on a call and I come to hang up, the phone which when to my ear has a black screen, starts to light up so I can see and click the hang up button, but it then blacks out intermittently and in the brief moments it is lit up, the hang up button doesn't work unless I press the home or lock buttons first

    Wow- thanks Jim! I removed the case and voila... it worked. Knock on wood that you solved my problem with such an incredibly simple solution. I'll find out where this proximity sensor is and make sure my case does not interfere with it.
    Thanks so much.
    Annick

  • Help. My home button doesn't work. I've to press it several times to get it to function. The phone has 4 months. I've already update software, restarted and calibrated it. I was thinking to go to the service. Has 1 year hardware warranty. Suggestions?

    Help. My home button doesn't work. I've to press it several times to get it to function. The phone has 4 months. I've already update software, restarted and calibrated it. I was thinking to go to the service. Has 1 year hardware warranty. Suggestions?

    There's another thread with similar problems.
    https://discussions.apple.com/thread/2595841?start=510&tstart=0
    I wouldn't suggest it though, since it may void your warrantee. Apple will replace it if you bring it in. The genius bar guys aren't too bright, well most of them. But they'll go through the usual diagnosis steps then issue you a replacement if they have them in stock.
    I have to admit, Apple has one of the best replacement services that I've ever experience. If you're familiar with costco, the return/exchange process is very quick and painless.

  • My iphoto doesn't allow to share the photos to facebook anymore. (publish button doesn't work) does anyone knows what is wrong?

    my iphoto doesn't allow to share the photos '09 (8.1.2)  to facebook anymore. publish button doesn' work. (it used to be OK) anyone has any idea?

    There are a couple of things that could be causing this. Try:
    delete your iPhoto cache
    hold down the option key
    in the Go menu in the Finder, scroll down to Library
    in Library, find Containers/com.apple.iPhoto/Data/Library/Caches/com.apple.iPhotoin that folder, find Cache.db and drag it to the trash.
    delete the iPhoto preference file
    do the same trick with the option key to show ~/Library
    in Library/Preferences, find com.apple.iPhoto.plist, and drag it to the trash
    if there are multiples of any of these files, drag them to the trash too.
    delete the Keychain entries and do Keychain First Aid
    in Applications > Utilities > Keychain Access
    in the column on the left select login and under category, Passwords
    delete all of the entries that include iPhoto or Facebook
    in the Keychain Access menu, scroll down to Keychain First Aid, enter your user password, select repair, and click start.
    Then restart your computer
    new caches and preference files will be generated
    you will need to reenter your iPhoto preferences
    reenter your facebook user name and password in iPhoto
    this should fix it.
    Message was edited by: arthur

  • TS3274 My home button doesn't work. What do I do? Well when I press my home button I don't feel the click like I usally do

      my home button doesn't respond to me! Plz HELP   

      my home button doesn't respond to me! Plz HELP   

  • HT2341 why does my sound icon grey out and doesn't allow me to make changes on the system settings

    why does my sound icon grey out and doesn't allow me to make changes on the system settings

    When you go to System Preferences > Sound what does it say for Output? Have you had headphones plugged in? Sometimes the headphone jack gets stuck thinking it has something plugged in when there isn't anaything there. SMC also has something to do with Sound:
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    The 5 second timing is important to a successful reset.

  • How can I creat a control button that will allow the vi to run?

    Instead of pressing the run button, I want to creat my own run button that will allow my vi to run.
    Any idea?
    Thank you

    First you need to set the VI to Run When Opened (VI Properties>Execution). Then you create a front panel Boolean. On the diagram what you need to do is have some sort of idle state where nothing is done until the Boolean is pressed. It could be a separate while loop that doesn't exit until the Boolean is pressed, an Event Structure, or as part of a state machine. Look at the shippings examples Queued Message Handler, New Event Handler, Using Buttons for Options to name just a few.

  • My screen if frozen and I can't shut off my phone. I already have my assistiave touch button on my screen but it still own't let me shut off my phone. And my lock button doesn't work either

    My screen is frozen on the camera and my phone won't let me shut it off. My lock button doesn't work and my assistance touch button won't let me shut it down either. My phone also takes hours to die and my battery if fully charged so i can't wait for it to die i need to get it back to normal asap! How do I get it to unfreeze?

    A reset is when you press and hold both the home and sleep buttons for 10 seconds or so until the Apple logo appears. You won't lose any data. Give it a try.

  • My iPad mini home button doesn't work all the time

    When I click the home button on my ipad, it doesn't do anything. If I try a few more times then it will work once or twice. But not all the time.

    Calibrate Home button
    1. Open a stock application e.g. Calendar or Youtube
    2. Hold down the power button until the "slide to power off" control appears
    3. as soon as you see it, press the home button and keep it pressed until the red slider disappears and the app is force quit to the home menu

  • Migration Assistant doesn't allow me to choose what drive.

    Well, I got my new computer. I tried to migrate a drive from my old computer using Migration Assistant. and it doesn't allow me to choose what drive.
    In my old computer I have 5 drives. The original HD (was 10GB, was replaced last year by a 40 GB) and on my Hitachi 250 GB drive that I added 2 years ago, there's a partition with 4 drives.
    I wanted to migrate one particular drive from there (called Current work).
    First I did a mistake. I connected both computer via the firewire in the afternoon when there was enough daylight so I don't have to do it later at night (the computers are under the table.) I thought it's OK since I'm not pushing any button yet ("migrate now", "transfer", and such).
    I turned on the new computer and a message appeared: you must restart.
    That's strange, I said to myself. it's a brand new computer. Usually It says that when there's a problem, but OK I restart and when it's back on, I see that my external drive (Neptune from OWC which was still hooked up in the old computer) is on the desktop. And it took just a few seconds. I open it and all the files, etc. are there. It did copy the whole external drive !
    I'm not an computer expert but I believe the Mac Pro did notice that's there's a firewire hooked up and then, without asking me, migrated the external drive and that's why it asked me to restart. I would have prefer if it tells me "restart so migration can begin".
    I don't mind for now that my external drive is on my new computer. I can always erase it if I don't want it. It is still external right ? so it doesn't intrude on the 640 GB of my HD so I just keep it.
    But it also copied/migrate Mac HD 40 GB which is full of OS 9 and I almost never use it anymore. I don't want it coz it has applications and they advise not to migrate applications (certainly not applications with issues).
    They say migrate folders, settings but re-install applications.
    And it migrated also another drive called "Scratch" which has only personal date no system, no software.
    Anyway, I erased everything and re-installed using the Install disk that came with the computer.
    BTW, what they say in the manual (p. 90: Re-installing the software that came with your Mac Pro) is different than what really happens.
    They say insert disk, double- click on Install and then click options in the "Select a destination" pane of the installer. Then click "erase and install" Problem is: there's no "Select a destination" pane. Or any options.
    I had to go to Disk utility and erase, then re-install OS X.
    Then re-install the applications using "Install applications" (the other disc that came with the computer. )
    OK, I did that. Then while everything is empty, new, I used Migration Assistant.
    Now here is the reason why I post this.
    They say hold T key until you see a firewire icon then select a drive. I can't see when there's an icon coz I have only one monitor, so I just hold and hold the T-key and turn on the old computer. The screen shows "waiting for you other computer to restart" 2 min.... 5 min... 7 min. Nothing happens. I stop holding.
    I look at the desktop and I see that the icon of the old 40 GIG Mac HD is there. (and I believe with a firewire logo, but not sure about that.)
    I have the impression that if I kept the T-key longer it would have migrate the other drives as well.
    They say keep the T-key down until you see the firewire (then let go I suppose. As I said I don't see what's going on on the desktop of my old computer so I kept the T-key for a few minutes. I also tried another time to let go after 1-2 min. No difference.
    I shut down the new comp. and the old computer screen appears automatically (both are connected to the monitor; the old with analog port, the new with digital port) and sure enough the firewire icon is moving on the screen.
    I go back to the new computer and put the old 40 GIG Mac HD in the trash. Actually, when it touched the trash, I just saw an eject icon and the drive disappear. Did not go in the trash which is empty. So I guess I ejected, not sure what's the difference but I looked for it to see if it's anywhere in the computer. Could not find it. Not in the HD, not in the desktop. Good, I don't want it there. Is it hidden somewhere ?
    So I tried again but wondering perhaps the old computer should RESTART not turn on (it was off) so now I wait until it's on, then push restart. I hear the gong when it shuts off but that's it, no other gong when it comes back. I keep the T-key. But nothing happened. Just see the message "waiting for your other computer to restart"
    PS: BTW Target mode (which seems to me similar to Migrating with "Migration Assistant") will not work for me because it must be SATA, mine is ATA.
    I didn't try but read that it has to be SATA.
    Is it the same ? In migrating they say hold down the T-key (T for target)
    And how come that my 40GB HD which is ATA did migrate (not that I wanted too but still).
    Also, this drive ("Current Work") that I want to migrate to the new computer is in my external drive. Can't I just drag it ? If it has only personal data, files and folders I know I can, but It has system (OS X) and applications. It's the one I use and boot on, in my old G4 but I want to transfer Files and folders and settings, so the new computer will know what are my Safari preferences, Automatic fill-in, and perhaps it will move my iTunes music Library too ?
    Basically everything except applications. Although I would like my Nikon scanner to be in the new computer as well as the LaCie DVD recorder but I guess I can do that later, separately ?
    What are the settings or info I need ? Because if it's just Safari preferences, automatic fill-in and other such small thing, it might be better to just do it again in the new comp and forget about the hassle of migrating.

    Try getting into Windows and then plugging in the Superdrive. The drive will only be attached to one OS or the other, not both.

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Back Button Doesn't Work on Some Websites

    How come my Back Button Doesn't Work on Some Websites? It just keeps redisplaying the same page over and over. Example:
    http://abclocal.go.com/wabc/front

    Back button behaviour can be pretty wierd. I usually use the keyboard combination, but for some reason it doesn't work on PDF's and I have to end up using the graphical back button.
    There are some websites out there that for some reason or another break the Back button's behaviour. Sometimes I have to hold down the mouse button to get the back button menu in order to work around that problem.
    In another case there was this page in Amazon that wouldn't allow me to go back to. Everytime I went to that page the browser to automatically kick me to the next page. I had to disable javascript to work around that problem.

  • Green "Back" Button Doesn't Work in Internet Browser

    I am using the integrated Internet browser. If I navigate to the Google home page, do a search and select a page from the search results, pressing the green "previous" button doesn't result in the search results page being displayed. Instead the current page is re-loaded. If I keep pressing the green button, I can eventually get back to the search results (because I am jumping back quicker than the page can re-load).Is there another browser app I can try, or is there any setting i can change?The TV is a KDL32W706B.

    Hi Eugbug, 
    You can't install other web browser. Please make sure to install the latest software then try to re-launch the browser.
    If the issue is still presist. We kindly recommend visiting our Sony Global Web site for information on contacting the Sony Support Center in your region at http://www.sony.net/SonyInfo/Support/.
    If my post answers your question, please click the button below "Accept as Solution"

Maybe you are looking for

  • Gasbuddy web site not working properly with firefox, but working fine with explorer

    I've noticed when I load the web site gasbuddy.com, it is not working properly. It does load, just not performing like it should. When I try using gasbuddy.com on explorer 9, it works fine. I've already tried working in safe mode and that didn't solv

  • When to use TestStand

    For simple test flows, what TestStand does is fairly easy to implement with a custom software framework. Is there a rule of thumb as to what kind of application makes sense to use TestStand? I have studied TestStand for about 20 hours now, and I have

  • We05 status 51 error

    Hi all, I have an error in we05. My IDOC was not posted because of this reason: 'Date INSPPH_G period D is not valid' This error is really weird. I checked the text file in the FTP folder and it has the same format as previously transferred text file

  • My iMac (2008) keeps restarting after a system upgrade to OS X ML

    Maybe somebody can have a look at the report and tell me whats going on: Interval Since Last Panic Report:  919607 sec Panics Since Last Report:          6 Anonymous UUID:                    46F4657E-3F69-B810-F297-25FD83D390BE Sun Oct 27 20:08:07 20

  • Cant connect to internet using airport?!!!

    Hi, Suddenly and out of nothing, I just dont seem to be able to get connect to internet using airport. I restarted all devices but it still not working. Though I can connect to my wireless network using airport, I cant use the internet. I can use the