Event doesn't switch context after switching jpane & class

Hi,
I have (almost) managed the concept (tight) coupling. I switch panels on the display by invoking a method in the parent. However something strange occurs:
I have a first panel with an actionListener, getting a user name.
I have a second panel showing a simple list of choices 1 .. 2.. 3 .. also with an actionListener.
When I switch the panels from the usernamepanel to the choicespanel I see the choicespanel,
but making a choice and pressing <enter> tells me to put in a userID (I cleaned that field on the first panel).
So the actionListener defined with the choicespanel is not 'in control'.
And the actionListener with the username still is.
Explicitly removing the actionListener from the first panel does not help (?!)
Would you know what it is that I do not understand about this situation?
     public void checkUsername () {
          JPanel sign_in_pnl = new Sign_in(this);
          this.add(sign_in_pnl, "0,0,0,0");
          Sign_in.User.requestFocus();          
     public void switchComponent () {
          this.remove(1);          
          JPanel choose00 = new Choose00();
          this.add(choose, "0,0,0,0");
          Choose00.Selection.requestFocus();          
     }     

You might get an answer, but I think you may have missed the message at the top of this forum:
Thank you for any participation in this forum. Due to a lack of relevant activity, we have decided to archive this forum on June 16, 2006. For future posts on this topic, we suggest you use the Enterprise JavaBeans forum.
Thank you for using Sun Forums.

Similar Messages

  • Mobile data doesn't switch on automatically when wifi is switched off after 5.1.1 upgrade

    after upfating to 5.1.1 if i disable the wifi, mobile data doesn't switch on it doesn't happen everytime but most of the time. on previous updates it was fine.  Here is a video of the problem  

     Reinstall 5.1.1 with PCC > do NOT install any app nor update any app, don't enter any google account > test it and report back PC Companion (PCC)  Bridge (for Mac)   Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355 

  • Screen alert, "This iPhone hasn't been backed up in 2 weeks. Backups happen when this iPhone is plugged in, locked, and connected to Wi-Fi." doesn't go away after tapping on "OK" button. Can't even switch iPad off

    Screen alert, "This iPhone hasn’t been backed up in 2 weeks. Backups happen when this iPhone is plugged in, locked, and connected to Wi-Fi." doesn't go away after tapping on "OK" button. Can't even switch iPad off.

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • My accelerometer not working so screen doesn't switch when u turn it round what can I do?

    Screen doesn't switch around when I turn my iPad.is it broke?

    Is there a lock symbol at the top of the screen next to the battery indicator ? If there is, then depending on what you've got Settings > General > Use Side Switch To set to (rotation lock or mute notifications), then you can lock/unlock the rotation by the switch on the right hand side of the iPad above the volume switch, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If there isn't a lock symbol then try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Ipod doesn't switch off on its own

    Hello,
    I have a black Ipod 60GB and it doesn't switch off on its own. I know that the old Ipods will switch off on their own if you are not using it for more than a couple of minutes. So I thought the 5th generation would do that as well but mine doesn't and it's really annoying. Does anyone know if 5th generation Ipod should do that? And if yes, in which part of the menu can I set that option?
    Thanks.
    Alexandra

    Hello, Welcome to Apple Discussions
    The iPod will turn off after 1 minute if there is a song on pause, or if there is nothng playing.
    xmartinx

  • "Not desturb" mode doesn't Switch Off

    "Not desturb" mode (Moon sign in Front of Time) doesn't Switch Off on set off time since 2013.
    Same Problem with iPhone 5 and iPad Mini. Both iOS 6.0.2

    Do Not Disturb scheduling feature will resume normal functionality after January 7, 2013. Before this date, you should manually turn the Do Not Disturb feature on or off.
    To turn off the scheduling feature, tap Settings > Notifications > Do Not Disturb and switch Scheduled to Off.
    http://support.apple.com/kb/HT5467

  • KT3 Ultra2 doesn't switch off

    When I press on/off button computer doesn't switch off and reboot. I tried another memory, cpu and PSU, but with the same result. I measured voltage 12V, it falls down for a moment, but then rise again. This doesn't depend of Windows98 or DOS, because I had the same effect without hard disk.

    Same problem for me too, but it's somewhat erratic. Sometimes it will shutdown, other times it will 'reboot' (It's not a normal reboot. You can hear the hard drives click into their shutdown state for about 0.25 seconds, then the whole system powers back on again).
    I thought it must be to do with some kind of wakeup event, but nothing that I tried seem to change it. I just accept the fact now that when I say 'Shut Down', I have to sit by my computer until it either shuts down, or reboots itself (At which point I press the power button and it shuts off).
    Stupid thing :\
    I'm using an Enermax 410w PSU - I doubt that's the problem.

  • IPhone 4s doesn't switch on

    Hi!
    My iphone 4s suicided   after some problems with recharging process (it restarted few times by itself as soon as I plugged its USB cable) it began to recharge last night. So I went to bed but this morning when i woke up, it was incredibly hot and the battery indicator was red as the battery was low. Low battery after a whole night?
    I tried to recharge with a different cable but there's nothing to do. It becomes HOT, it doesn't start, the boot apple appears and stucks at the boot session. The last time it restarted two or three times, it was HOT HOT HOT, the apple logo disappeared , my phone became cold as it has  never been used before and now it doesn't switch on...  I tried to switch it on pressing HOME+POWER etc etc, but without success.
    Is it dead?
    If I take it to an apple store, would they replace my iphone 4s 16gb with another 4s 16gb or not? 16gb models are not available anymore. 8gb only...
    thanks in advance

    Hi mvimp!
    Fortunately on Monday I took a look at the receipt (just in time!!), discovering that warranty service was available until 03/04/2014, today! So i went at store and I gave the man who was there my phone. Now I've to wait about 20gg to have my phone back, repaired or replaced.
    Thanks for having answered me
    Bye!

  • In Firefox 5, when I open a new tab, Firefox doesn't switch to it immediately (unlike previous versions). How can I restore this setting?

    When opening a new tab Firefox stays on the old tab and doesn't switch to the new one. I couldn't fing where to fix this (in the tools)

    Just found out that FoxTab 1.4.2b is causing this problem. Solution? Disable it.

  • Version 33, problems when moving tab to new window, then if you open a new tab in that window it doesn't switch to it unless you use Ctrl-Tab?

    Version 33, problems when moving tab to new window, then if you open a new tab in that window it doesn't switch to it unless you use Ctrl-Tab.

    Type '''about:preferences'''<enter> in the address bar.
    Select '''General.''' Look for '''Tabs.'''
    Turn on '''When I open a link in a new tab, switch to it immediately'''

  • Command tab - window doesn't switch

    I use Command+tab to switch between windows. But many a times the window doesn't switch to, rather I get the options at the toolbar.
    This is exactly the problem reported here: https://discussions.apple.com/thread/3458920?start=0&tstart=0
    How can I resolve this issue?

    Just found out that FoxTab 1.4.2b is causing this problem. Solution? Disable it.

  • G580 Lenovo doesn't switch on !

    I received my G580 Lenovo a year ago. It has work fine but now appear a problem and doesn't switch on.
    I try to switch it on, lights come on, it makes noises, the webcam light, power light and battery all come on and stay on, but nothing happens, just a black screen.
    At the beggining of time when this problem appeared when i tried several times to turn on, sometimes it turn on and the most of cases it doesn't turn on. Now always doesn't switch on.
    Please help me

    If not successful, try the remaining items of:
    iOS: Not responding or does not turn on
    If not successful time for an appointment at the Genius Bar of an Apple store.

  • I downloaded this free music downloader app in the App Store and I downloaded music but, every time a song ends it doesn't switch to the next song!!Whys that??

    I downloaded this free music downloader app in the App Store and I downloaded music but, every time a song ends it doesn't switch to the next song!!Whys that??

    Go back to the App Store app and find the app you're having problems with. Then look in the description for the contact info for the developer. You might also find an email link within the settings of the app. Contact the developer to find out if they are working on this issue.

  • I have Iphone 3g but I'm facing a huge trouble with it once it's discharged it doesn't switch on again even with it's own cable

    hii i have iphone 3g but i am facing a huge trouble with it.Once it's discharged it doesn't switch on again even if i connect it with electricity . what should i do?? please answer me.

    Hello manal1994,
    You may want to try resetting and, if necessary, restoring your iPhone.
    iPhone, iPad or iPod touch: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    If the device remains unresponsive or does not turn on (or power on), try resetting
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds.
    If there is no video, verify that the device has enough charge to turn on
    If you are using an iPad, ensure that it's connected to the 10W USB Power Adapter.
    Let charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Home button to attempt to wake the device.
    If the screen displays a red battery icon, let the device to continue to charge until it turns on.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more about restoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode.
    All the best,
    Allen

  • Recently updated 5G iPod to 1.2 doesn't switch off

    Yesterday I'd updated my 5G 60GB iPod with the new iPod update from iTunes 7. Now, it doesn't switch off anymore, even if I make a hard reset. I also tried restoring it from iTunes and the problem stays. Neither can I get into diagnostic mode.
    I'll never make an update so soon anymore. Please, anyone could help me?
    Thanks a lot.

    with that set of symptoms, it's probably worth checking on the possibility from the following document:
    iTunes for Windows: iTunes 7 doesn't recognize iPod

Maybe you are looking for

  • Executing batch file from Java stored procedure hang

    Dears, I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4. public static String runFile(String drive) String result = ""; String content = "echo off\n" + "vol " + dri

  • Configuration not possible for materi Reason 1 -- Help

    Dear Experts, Please suggest your valuable points for the above subjected issue. Im facing the issue while creating the sale order in va01 t-code. regards, Vimal

  • How to have a creative p5800 working in 5.1 mode and microphone at the same time

    pls, can somebody advise, how can i use my creative p5800 in 5.1 mode and at the same time to have microphone working properly. for the moment i have installed my creative as stereo speakers and the mic is plugged into the sound card, which is not ve

  • PO confirmation creates PO change message

    Hi. I have setup a SRM -> XI ->SUS -> XI -> SRM scenario. Everything is working fine accept that when the vendor confirms the PO and Sends the SUS PO confirmation the SRM automatically creates a PO change message back to the SUS system. This causes t

  • Cannot embed flash

    hopefully someone can help me out. i was out for one day and when i get back to work seems like someone poked around and messed something up. I'm running Dreamweaver CS5 V11 Build 4993 on my iMac. until yesterday i was able to embed flash by doing th