The JPanel no longer gets a focus event after upgrading java version

I have started looking at an application, which I haven't developed myself. It is a Swing application which runs as a standalone application. It is currently running on JRE 1.4.1, but for many reasons we would like to upgrade (to 1.5.0).
During one of the actions that the users make is that he goes through a number of screens filling in details and then goes to the next screen. This has been done through having a JTabbedPane with six tabs. Each tab is a JPanel with various content.
At each page the user presses a button, which (among other things) sets the selected Index of the JTabbedPane to the next tab. The JPanel that is attached to the tab has a FocusListener, which does various load actions when the JPanel receives focus.
Now to the problem: In version 1.4.1 (up to and including version 1.4.1_07) these actions actually triggered the FocusListener event and ran the focusGained method as intended. Starting from 1.4.2 (and any 1.5 version I have tested) this event does not occur any longer (no code change, simply changing the JRE). My conclusion is that either the JPanel no longer gets focus or the event simply does not get triggered even though it should. What I can't figure out is why, what really happens and finally even more important, how do I solve this.
Any help is appreciated. The code is quite extensive so it does not quite fit in here, but I will provide snippets as requested.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5089436
"Evaluation" section will give you more info.
basically, you have to set a requestFocusInWindow(), but it needs to be
wrapped in a SwingUtilities.invokeLater(..), or, if that fails to work, inside a
timer, setRepeats(false), about 150ms.
From memory, it is only the timer that will work with the JTabbedPane, but
with newer versions, the SwingUtilities.invokelater() might now work

Similar Messages

  • I get pop ups about updating my Java version but my system says I do have the right version. Which version is the right one?

    I get pop ups about updating my Java version but my system says I do have the right version. Which version of Java is the right one?

    Most likely, you have a web plugin that depends on the Java runtime distributed by Apple, such as the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. If you no longer need the plugin, remove it. Otherwise, install Java.

  • Anyone know when Apple will bring out a patch to fix the volume problem you get on mac mini after downloading OS 10.8.5

    Anyone know when Apple will bring out a patch to fix the volume problem you get on mac mini after downloading OS 10.8.5?

    Only Apple knows the answer to whether or not there is a verified problem and if so when will a fix be released.  As is their custom, Apple does not talk about these things and the rules of these communities prohibit speculation about future udates or upgrades. It is probably safe to say if a fix is deemed necessary it will be called OS X 10.8.6.

  • I am getting this error message after upgrading to iOS5: "iTunes cannot sync apps to the iPad "ray's iPad" because the apps installed on the iPad could not be determined."

    I am getting this error message after upgrading to iOS5: "iTunes cannot sync apps to the iPad "ray's iPad" because the apps installed on the iPad could not be determined."
    I wiped it out and restored from backup but I am still getting the same message.

    I uninstalled and reinstalled iTunes and that fixed it. Here are the specific instructions that I was given.
    ~~~
    Try the following steps:
    1. Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
    2. You should remove all instances of iTunes and the rest of the components listed below:
    it may be necessary to remove all traces of iTunes, QuickTime, and related software components from your computer before reinstalling iTunes.
    Use the Control Panel to uninstall iTunes and related software components in the following order:
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Follow the instructions from Apple article listed here: http://support.apple.com/kb/HT1923 to remove all components
    3. Reboot your computer. Next, download iTunes from here:http://www.apple.com/itunes/download/ and install from scratch
    ~~~
    Good Luck!
    ~R

  • Recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.  Is there any way to get the original song back, or, at least, re-purchase it?... I tried t

    recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.
    Is there any way to get the original song back, or, at least, re-purchase it?... I tried to do the latter, (It's still available in the itunes store) but, when I clicked on the buy link, I was informed that I had already bought it and was only given the option to, either, copy the link or send it to Facebook/Twitter
    I also, inadvertently, deleted a couple of default playlists (Notably recently added) while attempting to get the song back.
    Can someone out there, please, help me out. with the solution(s). (preferably step by step if possible, as I'm a bit of a Homer Simpson when it comes to this sort of thing) .. Doh!! :-(

    Hello, MrKite549. 
    Here is an article that will walk you through download any past purchases that are missing from your iTunes library. 
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Cheers,
    Jason H. 

  • HT1414 if i didnt back up before upgrading the OS, can i get any data back after my last restore date?

    if i didnt back up before upgrading the OS, can i get any data back after my last restore date?

    thanks - thought as much my own fault then - should have backed up before upgrading, you just dont expect it to affect the files stored, rather just the OS itself (bit like a PC if the same happened)

  • My name now appears on the upper right hand corner of my display after upgrading to mountain lion.. is there a way to get rid of that?

    my name now appears on the upper right hand corner of my display after upgrading to mountain lion.. is there a way to get rid of that?

    In System Preferences > Users & Groups > Login Options (below the list) > click the padlock and authenticate > Uncheck Show fast user switching menu as:  or you can change it to icon.

  • Unable to launch the application after upgrading Java to version 1.6.0_26

    After upgrading Java to version 1.6.0_26 in Windows XP my web start throwing Exception. It works fine in Ubuntu with Java 1.6.0_24 and in Windows with older versions of Java 1.6.
    Exception doesn't say anything:
    java.lang.NullPointerException
           at com.sun.javaws.Launcher.executeApplication(Unknown Source)
           at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
           at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
           at com.sun.javaws.Launcher.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)Same as java console ouput
    Java Web Start 1.6.0_26
    Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\esod
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    0-5: set trace level to <n>
    #### Java Web Start Error:
    #### nullMy Jnlp file looks like this
    <jnlp spec="1.0+">
    <information>
       <title>Editor</title>
       <vendor>Comapny name</vendor>
       <homepage href="http://company_urll" />
       <description>Editor/description>
    </information>
    <resources>
       <j2se version="1.6+" />
       <property value="true" name="javaws.cfg.jauthenticator" />
       <jar href="http://192.168.79.33:7070/resources/applet/formeditor.jar" />
    </resources>
    <security>
       <all-permissions />
    </security>
    <application-desc main-class="pl.rdata.formeditor.FormEditor">
       <argument>[email protected]</argument>
       <argument>rLq3347491</argument>
       <argument>17</argument>
       <argument>
       http://192.168.79.33:7070/formeditor/formManagerService.service</argument>
       <argument>
       http://192.168.79.33:7070/formeditor/customDataTypeManager.service</argument>
       <argument>
       http://192.168.79.33:7070/formeditor/authorizationService.service</argument>
       <argument>2</argument>
    </application-desc>
    </jnlp>This application is self signed.
    When I download jar file to disk I can run it with command java -jar and it works fine.
    After downloading jar I made some tests changing line <jar href="http://192.168.79.33:7070/resources/applet/formeditor.jar" /> in Jnlp file.
    When I changed it to <jar href="formeditor.jar" />, and have jar in folder it works.
    When I changed it to <jar href="file:///C:/formeditor.jar"> it is not working (same exception).
    In every case jar is download correctly and it pass verifying.
    can anyone help?
    Regards
    Michal

    867322 wrote:
    When I changed it to <jar href="formeditor.jar" />, and have jar in folder it works.Okay, so you at least have a workaround.
    can anyone help?Search the bugs database to see if someone else already reported this; if not create a new bug entry. Whatever mistake you could make, you should not be getting a NullPointerException as a result so this is at the very least a bug in the error handling of webstart.
    But just some observations to try and see if you can make a difference (which is added input for your bug report). If I check JNLP examples, I see that the url specified is usually without a protocol, so it could be like this:
    <jar href="/resources/applet/formeditor.jar" />The JNLP should be on the host that you service the jar from, so Webstart can fill in the host information for itself.
    Also you provide a main-class; if the jar manifest specifies a main-class (and it should) you don't need to specify it in your JNLP file.

  • On my 2012 MBP I can no longer use dual screens/HDMI after upgrading to 10.8.2. I'm using Moshi Thunderbolt adapter

    On my 2012 MBP I can no longer use dual screens/HDMI after upgrading to 10.8.2. I'm using Moshi Thunderbolt adapter

    I think you are sailing in uncharted waters with those kind of modifications.
    I am only guessing, but if you have not already done so,  do a PRAM reset and then trash your FCP preferences.
    Big Poppa Chris wrote:
    I've also notice when I start the computer up, it stays on the grey screen longer than it did when I had the original card (512 mb).
    My understanding is the Mac is doing a ram/hardware test during the grey screen, if the card you added had additional memory, then it is very likely the test will take longer - but I am no hardware expert.
    MtD

  • Command, Control, and Option keys no longer works with Citrix Receiver after upgrading to OSX 10.9.5

    At first my keyboard did not work with Citrix Receiver after upgrading to OSX 10.9.5 and I found the workaround by using "cmd + tab," however, once my keyboard work within Citrix, the "command, control, and option" keys no longer work.  Does anyone have a remedy for this?

    Keyboard no longer works with Citrix Receiver after upgrading to OSX 10.9.5

  • HT203175 After upgrading to version 11.0.4.4 I get a "Itunes has stopped working" message when I try to start a movie on my PC. I have updated Quick time and previous version of Itunes worked great.

    After upgrading to version 11.0.4.4 I get a "Itunes has stopped working" message when I try to start a movie on my PC. I have updated Quick time and previous version of Itunes worked great.

    One thing is for sure, and that is if the only page i visit is the Google homepage (not logged in) or this site (mozilla forum), the problem does not occur, ever. I can't make it happen.
    If i visit yahoo.com (not logged in) (or ighome.com, logged in), as examples, it happens every time.

  • For five days bought iphone 4s and out of the blue loses the signal on the network and makes it very regularly, I have upgraded to version 5.0.1 if you can help me

    for five days bought ipione 4s and out of the blue loses the signal on the network and makes it very regularly, I have upgraded to version 5.0.1 if you can help me.
    I had the previous model and forced to buy 4s to catch a better signal, the network I have is cosmote and where it is full house is important, I want your help

    Hi ChrisBell,
    my Pixi shows me the missed calls in a list of its own? I don't have many, so maybe I'm missing something. But I agree with your half-ranting to some degree. As a long-time Palm-user (my last phone was a Treo 680, terrible form factor, good UI), I am really disappointed with the standard software on this phone. Memos and Tasks, which AFAIK were there and useful even on the first Newton's, have regressed beyond the point of usefulness now (solution: Toodledo and Done!, at least for now).
    But ChrisBell: if you feel up for it, you could start tinkering. Many people love these phones so much they have started developing patches to solve the obvious problems skimmed over by developers. Try looking up "webosquickinstall" and "preware", and you will find over 300 patches and a lot of free software to help you out. I am not a computer wizard myself, but I am not scared of them either, and I have been able to make good use of all these extras made available by the community.
    just a thought, might help you out on a few of your half-rants

  • How do i get back my ringtones after upgrade

    I downloaded some ringtones after I upgraded my phone to Ios 6 then I restore my contacts using itunes then when i look at my ringtones after restoring it, all my ringtones and photos are lost. Can you help me get back my photos and ringtones please...

    With iPhone connected to computer:
    * In iTunes menu select "Store," then "Deauthorize Computer"
    * Then select "Store," then "Authorize Computer"
    * A message will pop up saying "X out of X Computers are Authorized" or something to that effect.
    * Sync iPhone
    * Restart iPhone, go to settings, sounds, ringtones. Purchased ringtone should be on top.
    Then you can get back your ringtones after upgrade.

  • The Facebook video chat icon is not appear after upgrading to mavericks X

    The Facebook video chat icon is not appear after upgrading to mavericks X. Please help.

    http://support.apple.com/kb/ht5404
    Scroll down to the bottom, read and then perform the troubleshooting steps provided.

  • Getting the class not found error in OAF customization - after upgrade

    Hi All,
    We have recently upgraded from 11.5.10 to 12.1.3
    I have a customization in one of the OAF page, where in I click on a button, the information should be getting passed on to some other system. These customization classes are present in the .jar file xx_cust.jar in the path $JAVA_TOP/xxpo/lib/
    But these classes are not getting referenced when I click on the button in the OAF page and I get an OAF exception saying, java.lang.NoClassDefFoundError with the class name. But the class is present in the .jar file in the above said path.
    After upgrade, I have migrated the OAF related customizations. Is there anything I need to check/change (with regard to the JAVA environment) so that the classes will be correctly referenced
    Any pointers on this will be of much help
    Regards,
    Mohan

    Unix classpath needs ":" as the path separator, not ";". Changing that will make this work.
    For reference, later versions of the deployment template make this configurable, so you'd see (in environment.properties):
    # PATH_SEP_VARNAME: for platform-independence
    PATH_SEP_VARNAME=;
    # Forge needs record store libraries as well as Spring to load record store adapter configuration files
    FORGE_CLASSPATH=./config/lib/java/spring-delegate-adapter-1.0.1.jar${PATH_SEP_VARNAME}./config/lib/java/spring.jar${PATH_SEP_VARNAME}./config/lib/java/eacToolkit.jar${PATH_SEP_VARNAME}./config/script${PATH_SEP_VARNAME}.
    You can then add the following to your <forge /> definition in AppConfig.xml:
    <arg>--javaClasspath</arg>
    <arg>${FORGE_CLASSPATH}</arg>
    Hope this helps.
    Michael

Maybe you are looking for