Why do I have to click twice?

I'm trying to update the text in a JLabel by clicking a toolbar button. For some reason, I have to double-click or click twice to get it to update. The JLabel is currently part of a class (ClassB) that is constructed in my main application class (ClassA) and placed as a component of a split pane.
If I strip everything out and just have a button and my ClassB in the contentpane of ClassA, it works fine.
Can anyone give my an idea as to why this could be happening?
//Method to update data (ClassB)
     public void updateData() {
     latValue.setText("Help me");
     latDisplay.repaint();
Thanks

Off hand I'd say there is a problem in the code you stripped out. Why don't you post some properly formatted code that demonstrates your problem and then maybe someone will be able to help you.

Similar Messages

  • Why sometimes I have to click twice on a Button?

    Hello All.
    I have a curiosity. Why sometimes I have to click twice on a button to its to run event?
    For example, I have a button that changes the presence of a page for hidden, but I have to click twice on it to run the event.
    Thanks

    Srini.
    Exactly this! My script was with error. Now It´s works very well.
    Thanks you for your correct reply.

  • Why do some have to click twice on floating audio control to start sound?

    We are finding that for some users, a floating audio control within acrobat reader has to be clicked twice to start the audio.  When the audio button "Play Audio" is clicked, the floating audio control is opened and the play button is activated but the sound does not start on some machines.  The pause button is available to click, indicating the play button has been activated.  No sound occurs, and the progress indicator does not move.  However, if I click the pause button and THEN click the play button, the sound starts and the progress indicator begins to move.  So far Adobe support has not been able to answer this issue.  Has anyone else seen this happen?  Problem seems to happen on about half the computers we have tried it on.  Thanks in advance for any ideas and/or solutions.

    Same thing - have to click twice even though default settings.

  • FW CS4 - Why do I have to click twice?

    I've been working my way through the Adobe Classroom in a Book for FW CS4, and it keeps telling me to click once, after I start the import process, to place a graphic on what I'm working on. But if I click once, nothing happens. I need to click *twice* to get the graphic to be placed.
    Why is that? Is the book wrong?
    I'm on a Mac Pro, running Leopard 10.5.8.

    Hi there:
    Thanks for the question. On Windows it seems only a single click is needed for the import function to complete itself. On the Mac, it appears you need to click once to bring the canvas "back in focus" before the import can be completed.
    I'll be sure to to make Peachpit aware of the ommission and have it posted on the Updates page at the Peachpit site.
    http://www.peachpit.com/store/product.aspx?isbn=0321612191

  • Why do I have to click twice?  How can I fix this?

    I am trying to switch to Mac. Easier said than done!
    Anyhow, my complaint is that you must click on a background window (i.e. one that does not have focus) simply to GIVE it focus. My click otherwise does nothing. This is annoying to no end for a long-time Windows user like myself. If I click on a background window, specifically because I want to click a button on that window, then clicking on that button, even while it is in the background, should trigger the button! Yes, it is just a second click once the window has focus to activate the button, but it gets worse!
    Take Firefox for example. Frequently, I will click on a tab to switch to that webpage. But often Firefox does not have focus, usually because I have an IM window off to the side that I have just been using. Often the fact that Firefox has lost focus is not obvious to me. So when I click on the Firefox tab, nothing obvious happens. So I click again to actually select the tab. I use an add-on in Firefox that allows me to close a tab by double-clicking it. I've worked this way for years and it works well for me. So when I click a tab, it does nothing, and then I click again, it actually 1.gives focus to Firefox, and then 2.interprets my second click as the end of a double-click action. It closes my tab! How annoying. Firefox doesn't get the first click, but it gets the second click in the form of a double click. I find that I am slowed down quite a bit by this sort of behavior, because even if I thought it was logical, there is no way to click twice in quick succession in order to mean 1.give the application focus, and 2.click on what's under the cursor, because it gets interpreted as a double click. I find myself purposefully waiting a few seconds after each click to make sure it's not interpreting everything as a double click. I really wish there were a preference to change this behavior. Can anyone help? Thanks...

    Hmmm! Well, you can close, minimize, or resize windows with a single click. Additonally, CMD-click on the title bar reveals its path. Otherwise, that's about it. For the most part, windows in the background are usually mostly covered, so accessing them requires getting their focus and making them the front-most. For switchers, I recommend:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Anatomy of a Mac,
    MacFixIt Tutorials,
    MacTips, and
    Switching to the Mac: The Missing Manual, Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Why do I have to click twice on safari in the dock to activate it??

    ...this is annoing!!, when it doesn´t recognize my first click,(safari, systemprefs. app) it´s similar to multiple clicks on the latest iphone screen(ipad mini too.) in some areas !! What is this??? when click on other apps in dock like skype etc. it takes me directly to that app!
    maybe its my finger!?!

    Hi!
    it flash once in gray!
    it only bounce when starting safari!
    yes it changes to safari in the menubar top left! (but that´s all that happen)
    I use iternal trackpad, apple mouse and the blurtooth trackpad from apple!
    it´s clean! I can do swipes and move course , no problem!
    recent I couldn´t exit dashboard from right low arrow!
    thanks!

  • When I minimize ff with several tabs I can maxamize the one I was on straight away but any other one I have to click twice, why?

    when I minimize my ff with several tabs it goes to my task bar with a number of shadows equal to the tabs I have opened if I mouse over it I get small previews of the tabs open and I can open the one I was on last straight away but if I click on any other I get a beep and then nothing so I have to do the same thing again before it will open to a different tab, why?

    Odd thing when ff is maximized and I go to the preview in the windows task bar I can click on any tab and it will open right away it's only when ff is minimized that I have to click twice. fyi I have tab previews checked and I have tried to unset it the reset it to see if that would help but no go.

  • Firefox 4 constantly can't find Server. Have to click twice on everything.

    I just downgraded from version 4 back to 3 because version 4 would constantly go to Server not found when going from web page to web page. On social networks like facebook, Playing Zynga games I have to click twice on everything for it to take hold. Also going from page to page in a game on FB I'd get the connection timed out constantly.

    Yahoo and Gmail both support POP if you wish.
    All modern email systems are Imap (because it supports multiple and mobile devices)
    I do not recommend POP under any circumstances, it can not be synchronized so unless you do not use Mobile devices at all (iPhones etc) it is useless.
    Yahoo users (search this site) have endless problems and Gmail is highly non-standard. Expect a learning curve for that one.
    Are you short of server space, why do you need to do this rather retrograde step?

  • Why do I have to click the mouse so hard?

    Why do I have to click the mouse so hard? Whether I'm using a Bluetooth or a wired mouse, I find I have to click really hard to make it work when selecting text (in any application). This is not good for my wrist. Is anyone else experiencing this?

    two types: an old and excellent Apple wired mouse (not mighty) and a Bluetooth mouse (not mighty).

  • Why do i have to click emails in, all mail, important, inbox, folders?

    In my thunderbird account I have inbox, important, all mail, and several folders I have created. Why do I have to click on the same email in all folders? If I look at it in my inbox it should clear as read in all categories, but thunderbird makes me click on each folder and then find each email to stop it from showing as un-read.

    I had looked at and thought to do that in the past, but the gmail tab is grey'ed and as such I didn't think I could do that. Your comments made me think it was possible and I needed to find the way and clicked on it. Then out pops the folders under gmail and click, click, click... and no more folders.
    Thanks.

  • Have to click twice to do anything

    I have a macbook pro running OS X and I have to click twice to get it to recognise a single click.

    One possibility to consider is third party software, including - but by no means limited to - mouse software.
    Does this annoying behavior persist for a different user, e.g., Guest?
    Does this annoying behavior persist when starting up in Safe Mode?
    charlie

  • Have to click twice

    I have a Panasonic Toughbook 53 running Win 8.1 and Photoshop CS6. Since upgrading to 8.1 I frequently have to click twice before any given tool is active. So, if I press (v) to activate the move tool, my first click on the workspace is essentially a dead click, then the second click will move my image/layer/object. It happens frequently in Camera RAW as well. It's driving me nuts...any ideas?

    It's under "Change PC Settings" in the Windows 8 shell. Usually the best way to get there is swiping from the right on the touchpad.

  • Why do I have to click everything twice ?

    When is Firefox going to fix this?
    In every version after 3.6, I have had to click twice or "reload" the page. If I close the page and click again or reload the page, it immediately comes up.
    It is not because of problems in my computer. I went into safe mode and disabled all add-ons and got the same result. It happens on 80-90% of the websites. There are a few sites that consistently load immediately but most I have to reload the page or wait for the page to load which can easily take 30 seconds to a minute.
    I have a fast download of 28 and upload of 6. I have a clean computer, plenty of ram memory and have limited programs allowed to activate on start up. I usually have very few tabs open at a time. I've cleared cache and done all the usual things always recommended to do.
    This is very frustrating and it has to have something to do with bugs in changes of versions since 3.6. That version worked perfectly. These latest versions up to the most recent update have been consistently more and more problems.

    I'm with you RJ343, as an ex-software developer from the late 90's, I am appalled at the way Firefox has gone.... i recently upgraded to Windows 7 and Firefox 17 and it is disgusting the number of things that do not work,... and I have to LAUGH MY F**KING HEAD off when I hear geeks and nerds who are barely out of their cyber-nappies moan at me because I prefer 3.6 and they can't understand why i don't love the latest version... SIMPLES > because they are so full of bugs and workarounds and stupid add-ons I have to install just to go "back" to 3.6 and its glorious feature set that has since been ripped apart and hacked to smithereens and replaced with dodgy , sh*te alternatives that I'm supposed to adore ? Same with XP, I am still using it and will continue to use it until MS deliver something of quality that the users want, not what they want to force on me....
    SO back to the topic -- I landed on this page because I have noticed that in FF17 I have to keep clicking everything TWICE, to get the page to load. It happens everywhere, it's as though the focus is not set properly, and the 1st click sets that, and then I have to click again to execute. Certainly I have just registered in order to write this post, I deem it that important, and now that I am , I will have to start replying and posting the myriad of other failures by FF development team in their latest versions,.... what I find the most insulting as I mentioned, is this indoctrination that I HAVE to use the latest versions over the old, tried & tested products like 3.6, because FF will withdraw support or add-ons stop working for the old versions. I wouldn't mind, if the new versions weren't such a croc of shoite and actually worked.
    THIS BUG must be one of the most basic and incompetent of them all. Why do I have to bloody Double-click everything ??? !
    ''"3.6 was almost universally liked by everybody"'' - yes, because it was tried & tested.... obviously the latest generation of developers never heard of the old adage, "If its not broken, don't fix it"... and don't gimme all that crap about security vulnerability,.... that's just an extension of the War on Terror..... Fear is too widely traded for Functionality, and good solid TESTING , which seems to be a thing of the past. The software industry is in a crisis and soon there will be nothing that works and we will all hark back to XP and FF 3.6 as the golden age when software actually worked.

  • After new update, why do I have to click everything twice

    Since the new update, mail is being difficult.  When I try to delete something, it deletes what I click on & 1 to 2 othere messages.
    Plus I have to click on just about everything twice to get it to do what I want.  I rebooted machine but didn't help.  So what now?

    Try repairing your hard drive also your permission with disk utility. http://support.apple.com/kb/HT1782     http://support.apple.com/kb/HT1452

  • Why do I have to click on all of my flash components before I can navigate?

    Without modification to the code...the component is there but
    it needs to be clicked on before I can navigate the site. Should
    Dreaweaver not know how to properly insert the code necessary allow
    the flash component to view properly? What am I missing? I know
    this is a Deramweaver forum....but the problem does not not seem to
    be with Flash, it seems to be in the code that Dreamweaver creates
    when the Flash component is inserted.
    I have been able to find a work around to my problem but
    surely it is not what everyone out there is doing. If
    so...Dreamweaver or Flash has a serious bug!
    I created a site a while back and everthing worked fine. So I
    copied some code from that site to fix the new one. However even
    after copying the code I still have to modify it to make it
    work..(the modifcations are obvious.) This is suely not the way it
    is done all the time.
    I have three questions:
    1. Why did everything work fine with the first site with no
    modifications?
    2. Why do I have to copy the code to the other site after
    inserting the Flash component?
    3. Why does dreamweaver not do it for me? (it did everything
    right the other time, but now it doen't even work in the previous
    site)
    I feel like I must have changed a setting somewwhere that I
    did not realize would effect this...Perhaps it is a Dreamwweaver
    thing.
    PLEASE HELP!

    It's IE-only behaviour as a result of changes Microsoft made
    several
    years ago to their browser, regarding how Active Content
    (Flash, Quicktime
    etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2/CS3, the fix is already
    built into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "South Beach" <[email protected]> wrote in
    message
    news:[email protected]...
    > Without modification to the code...the component is
    there but it needs to
    > be
    > clicked on before I can navigate the site. Should
    Dreaweaver not know how
    > to
    > properly insert the code necessary allow the flash
    component to view
    > properly?
    > What am I missing?
    >
    > I have been able to find a work around to my problem but
    surely it is not
    > what
    > everyone out there is doing. If so...Dreamweaver or
    Flash has a serious
    > bug!
    >
    > I created a site a while back and everthing worked fine.
    So I copied some
    > code from that site to fix the new one. However even
    after copying the
    > code I
    > still have to modify it to make it work..(the
    modifcations are obvious.)
    > This
    > is suely not the way it is done all the time.
    >
    > I have three questions:
    > 1. Why did everything work fine with the first site with
    no
    > modifications?
    > 2. Why do I have to copy the code to the other site
    after inserting the
    > Flash
    > component?
    > 3. Why does dreamweaver not do it for me? (it did
    everything right the
    > other
    > time, but now it doen't even work in the previous site)
    >
    > I feel like I must have changed a setting somewwhere
    that I did not
    > realize
    > would effect this...Perhaps it is a Dreamwweaver thing.
    >
    > PLEASE HELP!
    >

Maybe you are looking for