Incompatibility when built in 1.4 and run in 1.3...any ideas???

We used to use the class FocusManager earlier in the code given below. It works fine when compiled and run in JDK 1.3.
When this code is compiled in 1.4 and the client runs it in 1.3 -> it throws a NoClassDefFoundError i.e. java/awt/DefaultKeyboardFocusManager
I understand the FocusManager changed in 1.4 but without backward compatibility where we are using only the abstract base class FocusManager??? Anybody faced this kind of issue. Have any ideas or workaround???
Thanks in Advance
addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent evt) {
editor.repaint();
if (evt.getKeyCode() == KeyEvent.VK_TAB) {
evt.consume();
FocusManager f = FocusManager.getCurrentManager();
if (f != null) {
if (evt.isShiftDown())
f.focusPreviousComponent(editor);
else
f.focusNextComponent(editor);
EXCEPTION -->
Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/DefaultKeyboardFocusManager
at COM.inovie.teamCenter.gui.FixedHeightText.<init>(FixedHeightText.java:36)
---------------------

True. I know... we used only FocusManager which is
present in 1.3. That is why the question. Since there
is no reference to DefaultKeyboardFocusManager in the
code, it should run the same way when we compile it in
1.3 or 1.4 Yes, there is. If you look at FocusManager in 1.4, it extends DefaultKeyboardFocusManager which didn't exist in 1.3. So, it's apparently only there for backward compatibility. If you COMPILE it using 1.3, then it may work in both 1.3 and 1.4, but if you compile it using 1.4, I'd say your out of luck.

Similar Messages

  • HT1386 I did a system restore on my computer.  When I had it up and running I downloaded the latest version of itunes.  Now I can't sync any new apps to my ipods.  What may be the problem?

    I did a system restore on my computer.  When I had it up and running again, I downloaded the latest version of itunes.  Now I can't sync apps to my sons ipod.  What can I do to fix this?

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar and Control+B to show the Menu bar
    To sync to your iPod go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing and follow the instructions.

  • HT2801 my disk drive will start up when i plug it in, and runs for about 30 seconds, but wont get recognized in my computer. It used to show up in the finder but that doesnt happen anymore

    my disk drive will start up when i plug it in, and runs for about 30 seconds, but wont get recognized in my computer. It used to show up in the finder but that doesnt happen anymore

    If you go to Disk Utility, can you see the drive on the left hand side? If not, then the drive is dead. You'll have to buy a new drive.
    Also, this forum is "Older Hardware". We specialise in hardware from the 1980s.

  • Where do I go to stay posted on when Icloud will be up and running with respect to receiving and sending email?

    Where do I go to stay posted on when Icloud will be up and running with respect to receiving and sending email?

    http://www.apple.com/support/icloud/systemstatus/

  • I have Windows XP and when I try to install and run 3.6.13, it says the file is corrupted. I don't have any previous versions.

    I have Windows XP operating system. I have never installed any version of mozilla firefox. When I try to install and run version 3.6.13, it says the file is corrupted. I have tried just running it. It said it was corrupted. Then I saved it to my computer and tried running it and it still said the file was corrupted.

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading and installing work.

  • HT4759 I just updated my iPad to the new ios and now it won't let me use iCloud. I have been in my settings and it says I need to agree to the new t&c's but when I click to do it my device freezes. Any Idea what I can do as I can't download new app either

    I just updated my iPad to the new ios and now it won't let me use iCloud. I have been in my settings and it says I need to agree to the new t&amp;c's but when I click to do it my device freezes. Any Idea what I can do as I can't download new app either

    Sorry. There's nothing anyone can do. The current version of the facebook app will not run on 4.2.1. The iPhone 3G won't run anything higher than 4.2.1. You're stuck.
    Maybe it's time to buy yourself a new iPod Touch.

  • My mac keeps freezing when i try and print anything from preview. any ideas as to what the issue is or how to fix it?

    my mac keeps freezing when i try and print anything from preview. any ideas as to what the issue is or how to fix it?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • TS3694 When I try to update my ipad to IOS6 I get and error 6 message.  Any idea what that means and how to fix it?  I tried updating via Itunes and also normal download.

    When I try to update my ipad to IOS6 I get and error 6 message.  Any idea what that means and how to fix it?  I tried updating via Itunes and also normal download.

    What model iPad and what version of iOS is it currently running?
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom
    Error 2, 4 (or -4), 6, 1000, 9006            
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.
    Message was edited by: Texas Mac Man

  • When synchronizing my iphone4 on the computer it errors out when optimizing the photos and shuts down iTunes.  Any idea what to do to get the synch working?

    When synchronizing my iphone4 on the computer it errors out when optimizing the photos and shuts down iTunes.  Any idea what to do to get the synch working?

    OKay, here is the deal. You cannot change the location of encrypted files nor can you share them with other machines. There is no file server for iTunes so even if you export the movie index from iTunes to an external volume, each time you reboot your computer itunes has to reindex the external drive every time you want to access the files. The second you run your mobile computer without the external drive or try to access the HD movies from another device or another user on the same network, the indexing gets out of synch. The entire process is self defeating regardless. The HD movies are encapsulized by apple to stream to your devices via iCloud and NOT via Cloud. Only your TV can play 1080p. That single file you download from iTunes has mutiple versions of the same video in the capsul, one version for each type of apple device. There are no 1080p apple devices except for the Apple TV. When you buy a movie you are buying a license and not the movie. It's going to get worse with all the new copywrite laws. Already you cant share any apple devices with other itunes accounts. Your airport express just stopped streaming music to all users on the local home sharing Cloud. Only the one user for each device and soon only airplay speakers connected directly to the device. No more passthru via your TV and no more file sharing with other accounts on the same wi-fi. All the ISPs are doing the same thing. And soon everybody will be buying their phones and TV's and iPads from the cabble guy.
    Apple has done a poor job of educating the consumer as to the difference between the Cloud and iCloud. They are not the same at all.
    Message was edited by: ronfromwoodland hills

  • IPhoto 9.4.3 crashes when trying to sync photos from IPAD running 8.1.  Any ideas on why ?

    iPhoto 9.4.3 crashes when trying to sync photos from IPAD running 8.1.  Any ideas on why ?
    iPhoto runs and keeps trying to read the iPad photos cycling thru a lot of times eventually crashing.

    There may be a corrupted video or image file on your iPad.
    Try to download from the iPad using Image Capture instead and save the photos to a folder. If that succeeds, you can check the files for corruption before importing them to iPhoto.

  • My iPod touch is stuck in landscape view.  Even when held vertically if I open facebook or safari is rotates to landscape.  Have tried turning on and off, same results. Any ideas to fix?

    My iPod touch is stuck in landscape view.  Even when held vertically if I open facebook or safari is rotates to landscape.  Have tried turning on and off, same results. Any ideas to fix?

    Try switching it back from landscape to vertical. Or, go to settings and see if you have any special setting turned on that enable only landscape view. Also, try hooking it up to your computer and charging it to see what happens.

  • I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    You need to use the computer's install disks to repair the hard drive or install a new OS.
    (58033)

  • I want to connect my IMAC to TV with HDMI cable. I did it before going to Dispaly and Arrangments and then mirror. Now when I go to display I dont have to option of arrangements. Olny {Display and Color} pops up. Any ideas what happend to arrengements?

    I want to connect my IMAC to TV with HDMI cable. I did it before going to Dispaly and Arrangments and then mirror. Now when I go to display I dont have to option of arrangements. Olny {Display and Color} pops up. Any ideas what happend to arrengements?

    For the "Arangements" option to appear, the external display must be turned on with the correct input selected and connected to the computer.  Then close system prefs, reopen, go to "Display" and "Arrangement" will be along the top. 

  • At odd times I will get a second instance of Firefox startup. I have run avast av, spybot, malwarebytes, both in normal and safe mode and nothing has been found, any ideas?

    at odd times I will get a second instance of Firefox startup. I have run avast av, spybot, malwarebytes, both in normal and safe mode and nothing has been found, any ideas?

    That second one sounds like malware.
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    To change the iCloud ID ("email address") you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

Maybe you are looking for