Help...Button action can't remove a panel and bring a new panel

I have a Search_panel in a frame within that Search_panel when you press continue button, it should remove the old Search_panel and bring a complete new tab_panel. but the funny part if i put the code inside jini() works fine, but if i put it inside the press button action it removes the Search_panel as I want but it doesnt paint the new tab_panel.
Does someone know why?
Thanks
void jContinueButton_actionPerformed(ActionEvent e)
BringTabs();
private void BringTabs()
jPanel1.remove(mySearchPanel);
jPanel1.add(myTabPanel, BorderLayout.CENTER);
contentPane.repaint();
jContainerPanel.repaint();
jPanel1.repaint();
System.out.println("something");
}

I've had a similar problem, and the best way to handle it is as follows:
void jContinueButton_actionPerformed(ActionEvent e)
   BringTabs()
private void BringTabs()
   Thread replace = new Thread()
      public void run()
         jPanel1.remove(mySearchPanel);
         jPanel1.add(myTabPanel, BorderLayout.CENTER);
         jPanel1.revalidate();
         jPanel1.repaint();
         //Might need these as well (or other hierarchial component)
         jContainerPanel.revalidate();
         jContainerPanel.repaint();
   replace.start();
}Let me know if this works

Similar Messages

  • Help! How can i remove the lock sign on my ipad3? it can't open, rotate or turn to next page because there is a lock sign at the bottom?

    Help! How can I remove the lock sign on my ipad3? it cannot rotate, turn to next page, or even open when it's on standby mode, even when i press the home button it cant open..thanks

    I'm not sure exactly what you are seeing but .....
    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that doesn't do it, double tap the home button and swipe to the right and look for the lock icon all the way to the left.
    If the iPad is not responsive and you cannot slid to unlock the screen - try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I'm trying to loack a document with mac os x 10.6.8  They only have infor. on how to lock it with lion 7.0 on the help button.  Can I lock it with snow leopard?

    I'm trying to lock a document with mac os x 10.6.8  I only found infor. on how to lock a document with os x lion 7.0 on the help button.  Can I lock it with 10.6.8 operating system?

    Thank you.  I did what you suggested and it worked. 

  • How can i remove the terms and conditions from my app store on iphone 5s ?

    How can i remove the terms and conditions from my app store icon on iphone 5s

    Hello mrh1962,
    Thank you for providing the details of the issue you are experiencing with accepting Terms & Conditions on your iPhone 5s.
    First, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If you can access your home screen, I also recommend verifying that cookies are not blocked and private browsing is turned off in Settings>Safari:
    iPhone User Guide - Safari settings
    http://help.apple.com/iphone/7/#/iph3d7aa74dc
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I remove Firefox successfully and allow hyperlinks to work?

    I need to clear space on my PC and wish to remove Firefox. I tried this but then could not open any hyperlinks from e-mails in Outlook. I tried various options suggested on the Outlook help page but to no avail. How can I remove Firefox successfully and allow hyperlinks to work?

    Have you tried resetting your Default Browser back to IE, thru the Control Panel > Add / Remove Programs?

  • How can I remove all photos and directories from iPhoto?

    How can I remove all photos and directories from iPhoto as if it was a brand new install?
    I am new to iPhoto and was unaware of how it works, honestly I still am a little confused as to when pics I am using 1/2 the time, some from iPhoto and some from MyPics.
    Anyhow, I am looking to remove all photos from iPhoto because during the migration of all my photos from PC to MAC, somehow my timeline became messed up and all my photos that have been logged my dates since 1998 are now all messed up.
    Although all my year folders are still in tact, IE 1998-2006, the subfolders and like pics are all intertwined somehow.
    And when I search iPhoto for a given year, photos from 2,4, 8 yrs back show up in 2006.
    Anyhow, I have selected and deleted all photos and folders within iPhoto, and then import the desired photos from MyPics, only to have the photos double up in the library. ( The old ones that should be deleted and the new imports)
    I simply don't get it, they fill the trash and disappear when it's emptied, then reappear when iPhoto re-opens!
    Can someone help????
    I have completely reworked all my photos so that they are all in the correct folders outside of iPhoto, and now I want to import those and only those pics with that file structure.
    IE Structure = YEAR > MONTH > DAY ( or if needed) > DAY/EVENT

    Do you want to remove the existing full sized image files also? If so then just drag the iPhoto Library folder from the Pictures folder to the Trash and empty it. But be warned you'll lose all of your image files.
    You are dragging the files to the iPhoto Trash bin and then using the iPhoto->Empty Trash menu, right?
    In copying your photos to myspace and then back the original capture date may not be retained and then either the created date or modified date will be used by iPhoto. If the files in the current library are the originals from your camera then those have the best chance of retaining the correct Captured Date. You can check that out by dragging the Originals folder from your iPhoto Library folder to the desktop and then trash what remains of the iPhoto Library folder. Then launch iPhoto and it will ask you to create an new library. Then import that Originals folder and it's subfolders by dragging it into iPhoto's open window. You'll keep the same rolls that was. The roll dates may change but you can check the captured date of the files by using the calendar in the Source pane.
    You won't be able to keep your folder structure within iPhoto. Each outside folder will result in a roll with the same title as the folder. You'll be able to create folders in the Source pane to put albums inside. You can create a smart album to include all photos in a certain date range, line one month.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.7)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • Hello  i have installed above CC   and without my knowledge the machine has now adobe cc and cc 2014  how can i remove the CC and move the lug ins to the new CC 2014

    Hello
    i have installed above CC
    and without my knowledge the machine has now adobe cc and cc 2014
    how can i remove the CC and move the lug ins to the new CC 2014

    Hi
    well could you confirm me, the plug-ins you have installed in Photoshop cc, are you able to use the same in the Photoshop cc 2014
    you just have to remove the Photoshop cc from the add or remove program in the control panel
    and you can go to this link and copy all the plugins to the Photoshop cc 2014
    http://glyndewis.com/plug-ins-adobe-photoshop-cc-2014/

  • Can I remove Mail.app and retain Thunderbird functionality?

    MacBook Pro 15" Retina, 500g drive, 8g ram. VM with Parallels 8/Win7 and Bootcamp with the identical Win 7 installation.
    Nearly two months after receiving my lovely MacBook in October last year, my Mail app quit receiving mail. I could send, but nothing came in. Pop3 accounts on digital cable service.
    I asked about it here and was answered with the recommendation to use Thunderbird. No looking back, it's great. I have used it before on Win XP long ago, but didn't have server based e-mail accounts then so I used it as the prime client on a Toshiba machine. Since then, I have started a website and am allowed ten e-mail accounts so I just go to the server or use Thunderbird. Thunderbird out of convenience, and the server if I am not at home on my network. I won't go into it here. A Charter Communications issue.
    So, here is the question, and the subject asks the same thing. Can I remove Mail.app from my machine and retain functionality in Thunderbird? Additionally, can I remove Mail.app and reinstall it from here if I desire to test it or end up with issues if I do remove it?
    The reason I want to do this is due to clicking on e-mail links and having Mail open and ask me to set it up. I have no desire or need to use it. I have been copy/pasting the link, but I am really tired of it. I want to click and see Thunderbird go to work for me.
    So, another question, how do I get all xxxx@xxxxx,com/net/org links to open Thunderbird instead of Mail if that is a better solution?
    Thanks gang,
    Kelly J.
    BTW, I looked around the boards and found nothing even close to this. I posted to this board because it seems to be the right place for this issue since it is a system app.

    Trying that now. I'll post my address here and try it. Back in a minute.
    Yes sir. That's the ticket. Thanks for the help. I had to create an account to get mail to open fully, but I can delete it.
    Thanks again.
    Kelly J.
    Message was edited by: kellyjdrummer
    P.S. It still works after deleting the account. Thunderbird takes the command.
    Thanks.
    <Email Edited by Host>

  • Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Welcome to Apple Support Communities
    You can install the new hard disk yourself if you want to. You just need a 2'5" SATA II hard drive, which is compatible with your MacBook Pro. You can buy one at OWC > http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ You can filter hard drives by computer, so press a "Click to view all...", choose your computer in the sidebar and it will give you the compatible hard drives.
    There are different brands for the MacBook Pro. The most recommended are HGST and Seagate, which have good reputation. A 7200 rpm hard drive will give you extra performance

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    Add another e-mail account to your messages, so people could reach you on that e-mail from messages. As soon as you are online (if you have wifi only iPad) you are able to send and receive messages. i.e. your son can send you a messages from his iPhone addressing it to your (that additional) e-mail address.

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • Can you remove a date and time stamp off a photo that has already been taken?

    Can you remove a date and time stamp off a photo that has already been taken?

    only with Photoshop or similar software that offer some clone/heal feature.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • I have PS 4,5,and 6 installed on my Macbook Pro as well as Lightroom 4 and 5. Can I remove PS 4 and 5 and LR 4?  PS 4 is the total install and PS 5 and 6 are upgrades. LR 4 is the full package with LR an upgrade.

    I have PS 4,5,and 6 installed on my Macbook Pro as well as Lightroom 4 and 5. Can I remove PS 4 and 5 and LR 4? PS 4 is the total install and PS 5 and 6 are upgrades. LR 4 is the full package with LR an upgrade.
    I need space!

    First let me disabuse of a misconception:  All Adobe upgrades are FULL installers.  Whether you buy them as upgrades or new versions does not make an iota of difference.  The upgrade installers do not need to find a prior version installed, they just prompt you for the old serial number as well as the old one, and they do not rely on the old version in the least.
    Second, the time to uninstall an older version is BEFORE upgrading to a newer one.  Otherwise, the uninstaller from the older versions will mess up with your new install.  There are a gazillion files that are named the same and in the same locations as the new one.
    Your best bet now is to uninstall ALL the Photoshop versions you have installed, including the newest one, one by one, then run the Adobe CS Cleaner Tool, then run Repair Permissions from Apple's Desk Utility, and finally re-install the latest version.
    The other alternative, if your boot HD is large enough (very doubtful in case of a laptop like a Mac Book), is to leave all versions on it.
    Your choice.

  • How can i remove windows 7 and reinstall a fresh copy of windows 7

    how can i remove windows 7 and reinstall a fresh copy of windows 7

    Assuming you installed Windows in a Boot Camp partition, start up Boot Camp Assistant and select the menu item to remove Windows and return the drive to a single partition. Then run Boot Camp Assistant and select the menu item to install Windows 7.

Maybe you are looking for

  • Use self signed certificate

    Hi, I have got a theoretical question: Is it right to use self-signed certificate in production environment? We don't want to use this cert. for authentication but for SSL decryption. Is this a good solution? Thanks! V.

  • ECC6.0 SP upgrade

    Hi, We are trying to do a SP upgrade from SP9 to SP13. Is there any known issues with technical upgrade or is there a place in service market place where I can get info about? Teresa

  • Movies Showing up on iPhone 5S but Not in iTunes on MacBook

    Hi: I purchased a movie bundle (Madagascar 1,2,3) for my daughter and all the movies show up on my iPhone 5S but only Madagascar 1 shows up in my iTunes on my MacBook. Also, Toy Story 3 and The Penguins of Madagascar show up in both places. I have ch

  • Aperture is Exporting but I don't know what its exporting...

    On the bottom the wheel is spinning saying that its Exporting. I didn't instruct any export and when I click to see what its exporting, there is nothing in the activity window and no way to clear the export... anyone have any idea what this is about?

  • MDB listening to an Oracle AQ, holding ADT messages...

    Hi !           I'm trying to set a MDB to listen for incoming messages on an Oracle AQ. When I created the queue, I specified that the queue should contain payload of type ADT. I'm using Bea Weblogic server 8.1sp4 and Oracle 10.2.0. The creation of t