Some Object dont work after restoring it from the filesystem

Hi !
I have a JFrame and in this I have a JPanel.
In the JPanel I have a JTabbedPane.
If I store the JTabbedPane to the filesystem using ObjectOutputStream and than restore it by using the ObjectInputStream some JTextFields in the JTabbedPane dont work correct. The most Objects work okay.
Do I have some problems with the pointer or is the reference lost ? I have 40 Objects and 2 or 3 are frozen after loading the JTabbedPane. Hmm...
Some lines of the code:
<code>
// WRITE OBJECT
if (e.getSource() == jMenuPosSpeichern)
{ try
{ ObjectOutputStream stream = new ObjectOutputStream(new FileOutputStream("c:\\test.dat"));
stream.writeObject(jTabbedPane);
stream.flush();
stream.close();
catch (IOException e9) {e9.printStackTrace();}
// READ OBJECT
if (e.getSource() == jMenuPosOeffnen)
{ try
{ ObjectInputStream stream = new ObjectInputStream(new FileInputStream("c:\\test.dat"));
contentPane.remove(jTabbedPane);
contentPane.repaint();
jTabbedPane=(JTabbedPane)stream.readObject();
stream.close();
contentPane.add(jTabbedPane);
catch (Exception e8) {e8.printStackTrace();}
</code>

No they are not different.
On the first register of the JTabbedPane I have 2 JTextFields an one JComboBox. The first JTextField is frozen. After trying sometimes the second field is frozen.
Is my way to store an object the correct way or is there a better way available ?
The relevant fields have this line in the source.
(code)
....class...
JTextField name = new JTextField(30);
....constructor....
jTabbedPane.addTab("register1",reg1);
reg1.add(name);
name.setBounds(170,100,200,20);
(/code)
All my fields I add to a Tab of a JTabbedPane and all the Field have setBounds. No difference to the other objects.
Thx Wolfgang

Similar Messages

  • Some songs dont work after a few weeks

    I use listentoyoutube.com to dwnload my songs. a few weeks after i dwnload them, some songs stop working. i select the song on my ipod and it plays the next song that works. wen i redwnload the songs, it works fine. my sister's shuffle works fine, my other sister's nano has the same problem too, but different songs don't work on hers. i have tried restoring and resetting my ipod but it hasnt worked.

    iPod nano (5th generation) - User Guide will tell you which type of audio files will play correctly on the iPod Nano 5th Gen with Video.

  • Firefox history not working after restoring profile from backup

    Hi,
    My Firefox profile was inadvertently deleted when I uninstalled Waterfox. I had a backup of all profile data from the day before, and restored that. Am running Windows 7, so restored Users > Username > AppData > Local > Mozilla and Users > Username > AppData > Roaming > Mozilla.
    Since the restore, Firefox history no longer works - all past history is gone, and worse, no history of new browsing is created. Cookies and saved passwords were restored and are working correctly.
    Any idea on how I can get Firefox history to work again?
    Thanks!

    Sounds that the copy of places.sqlite that you restored is corrupted.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Some photos dont work after importing from iPhoto 4?

    Hello,
    I recently upgraded from iPhoto 4 to iPhoto 6. I updated my library by copying the iLife 04 photo library to my new iMac. When I opened up iPhoto 6, it updated the library, and everything worked fine, or it seemed. All the pictures and thumbnails were there, but on around 1/3 of the pictures, I only have a thumbnail. If I click on the thumbnail, the picture never loads. On ones with a picture it loads very fast.
    Any ideas?
    I have the library backed up on DVD, so im not worried about losing the data, just want it to work.
    Thanks,
    Adam

    Adam:
    It may be an ownership/access problem. Manually set the ownership and access on the iPhoto Library folder as follows:
    Setting Permissions for iPhoto Library Folder
    1 - Select the iPhoto Library folder and type Command-I.
    2 - When the Info window comes up go to the Ownership and Permissions section and make sure You have Read & Write permission and that the Owner and Group have Read & Write also. Others - Read Only.
    3 - Then click on the "Apply to enclosed items..." button.
    See if that may help. If not try selecting one of the files in the Original folder and type Command-I to bring up the Info window. In that window set Preview as the default application and click on the Apply to all button. Good luck.

  • After restoring 5S from 5, notifications from many news APPs don't work (no problem with my iphone 5 running iOS 7.0.2)

    I used iphone 5 and have updated it to iOS 7.0.2. Everything worked with it. I can receive all the notification from news APPs.
    After receiving iphone 5s, I set it up by restoring the backup from iphone 5. However, not all APPs were synced. Also, many notifications are not working especially with the news APPs I was using.
    The notification of those APPs affected are turned on in the notification center.
    I have restored iphone 5S to factory setting and set up again, but still not all the notifications are working.
    What should I do?

    A workaround is to reinstall lazy apps, mostly for those that were restored but don't appear on notification center, eg. Whatsapp. In my case I have more than 500 apps installed.
    We need a correct solution for this problem.
    I also had this problem on the past moving from 4s to 5.
    And now from 5 to 5s.
    The only notifications working after restore in my iPhone are those from Facebook.

  • Error 150:30 after restoring CS4 from Time Machine backup

    I just got myself a new Imac with OS X Maverick and set it up using a time-machine-backup. My Adobe CS4 now has a Problem with the license and shows me error: 150:30?
    Do I need to uninstall CS4 and reinstall? Is there any easier solution to this problem?
    Thank you anyone for some help.
    chris

    Thanks a lot for your help......everything back to normal after reeinstallation.
    chris
    Am 29.09.2014 um 23:28 schrieb John Waller <[email protected]>:
    Error 150:30 after restoring CS4 from Time Machine backup
    created by John Waller in Adobe Creative Cloud - View the full discussion
    Do I need to uninstall CS4 and reinstall?
    Unfortunately yes.
    Also run the Cleaner Tool prior to reinstalling
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Restoring from Time Machine backups invariably breaks the activation mechanism (Error 150:30) and there's no easy way to fix a 150:30 error other than via re-installing.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6775090#6775090
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • HT201401 I had restored my iPhone 4 but after restore my camera can't function well after take picture from the camera it's didn't display in the Photo Gallery even can't take a video record,how to solve this?and i had tried to restore again,still the sam

    I had restored my iPhone 4 but after restore my camera can't function well after take picture from the camera it's didn't display in the Photo Gallery even can't take a video record,how to solve this?and i had tried to restore again,still the same
    kindly reply and fix this for me
    reply to my email,tq

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • HT5621 i buy a second hand IPAD and after restoring is shows the previous user apple ID and even i dont know the person that have the ID and now i want to use with my apple ID

    i buy a second hand IPAD and after restoring is shows the previous user apple ID and even i dont know the person that have the ID and now i want to use with my apple ID

    Without the previous owner's Apple ID and Password, you will not be able to activate the iPad.

  • What is error 150:30, and why won't CS4 work after moving it from old mac to new?

    What is error 150:30, and why won't CS4 work after moving it from old mac to new?

    Reinstall the software properly
    Mylenium

  • I bought an app for my iphone version 3.1.3 and it is written in the requirements that it is compatible with IOS 3 or later and after installing it doesn't work.i bought it from the apple store.

    i bought an app for my iphone version 3.1.3 and it is written in the requirements that it is compatible with IOS 3 or later and after installing it doesn't work.i bought it from the apple store

    You could try reporting the problem to iTunes store support here: http://support.apple.com/kb/HT1933.

  • After restore backup from time machine, all thumbnails in photos are blank. How to fix ?

    After restore backup from time machine, all thumbnails in photos are blank. How to fix ?
    I'm using Yosemite 10.10.3 and Photos. i have tried repair database, but no success .

    Try these for the first attempt:
    First be sure to have a backup copy of the library if you already don't have one.
    OT

  • I can't read acsm files on my e-reader after transferring them from the pc with ADE. it seems to work, but then when I try to open the files on the e-reader it says "open failure". what's wrong?

    I can't read acsm files on my e-reader after transferring them from the pc with ADE. it seems to work, but then when I try to open the files on the e-reader it says "open failure". what's wrong?

    The acsm file is not the book, it is a ticket to get the book.  I sometimes get library books online, here is what I do.
    1. Start ADE on the computer
    2. Go to library website and find the book I want to download.
    3. Click on the download link
    4. In windows 7 a box opens asking whether I want to open( or run) or save the acsm file
    5. Click open/run and ADE downloads the book into the "Library"
    6. Transfer the book (epub file) to the reader.

  • Can't send and receive SMS/MMS/iMessages after restoring iPhone from a backup

    I can't receive and send any type of messages with my iPhone 3GS (iOS 6.1.6) after restoring it from my old backup (also 6.1.6).
    Messages that I'm sending are disappearing immediately after the moment they are sent and they are never delivered. The first time I restored my iPhone I could send and receive messages for 1 day, and I couldn't do it on the next day. This time I was able to send and receive messages for 10 minutes.
    I have used the methods Apple recommends for problems like this, but it doesn't help.

    Hello StepanyanMuradyan,
    Thanks for using Apple Support Communities.
    To troubleshoot issues with not being able to send or receive messages on your iPhone, I'd like you to please follow the troubleshooting outlined below.
    To resolve issues with sending and receiving iMessages, follow these steps
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you registered iMessage with your phone number or Apple ID and that you selected iMessage for use. If the phone number or Apple ID isn't available for use, troubleshoot iMessage registration.
    Open Safari and navigate to www.apple.com to verify data connectivity. If a data connection isn't available, troubleshoot cellular data or a Wi-Fi connection.
    iMessage over cellular data might not be available while you're on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn which network your phone supports. If your network doesn't support simultaneous data and voice calls, go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while you're on a call.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you still can't send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Make sure that the contact you're trying to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    iOS: Troubleshooting Messages - Apple Support
    Take care,
    Alex H.

  • I deleted photos cause the capacity is so big but i backup first on itunes then when i was to restore some of those i cannot find photos from the last backup that i 've done. What to do?

    I deleted photos cause the capacity is so big but i backup first on itunes then when i was to restore some of those i cannot find photos from the last backup that i 've done. What to do?

    As far as i know, you can use a third party iPad photos recovery software to have a try. If i remember correctly, this software has two methods to restore your photos. One is recovering from your iTunes backup, another is recovering from your iPad directly.
    http://easy-iphone-recovery.blogspot.com/iphone-recovery-resource.html
    It is worth to try if your photos are important.

  • Touchscreen stops working after waking up from sleep

    Touchscreen stops working after waking up from sleep sometime it not working at all.
    IT encore2 WT8-B32CNM

    If you can't solve your issue and no one in the community can help, contact support to speak with a tech support agent at (800) 457-7777.
    - Peter

Maybe you are looking for

  • "Open VI Reference" slowly in development system

    Hello, One of our programs has a plugin structure. We open more than 50 VIs over VI Server. This is fast in runtime system, but slowly in the development system. The problem is the function "Open VI Reference". If you try to open an Ref to a very s

  • Item renderer concept in Grid - Grid ITem

    Hi All,      I am using grid, grid items in my app to generate a view. I can not attain that view using datagrid control. So i want to speed up processing in my layout. When i give data to my layout (using grid - grid item) it takes enarmous time to

  • WRT160NL - reset/reboot through web interface

    Hello there, Is it possible to reboot / reset the router remotely by using the web interface? On SMC routers that option is available and is of great value. I'm using my WRT160NL with a usb hub (powered) so I can connect 2 hard drives at the same tim

  • Bonjour website not seen in Mobile Safari

    My own personal iPod (4.2.1) device can't see my website on my devbox machine. As a result I am unable to test my website for mobile on my localnet. The wesite is loaded normally on other machines, including another iPod running the exact same versio

  • Jvm option "-d64" does not recognized by app. server

    Product: SunOne App Server v.7 Platform Edition It seems app. server does not respect jvm option -d64. I've set this option manually in server.xml file and also from management console. None worked. When I debug System properties from my web applicat