Adding a Panel to JApplet doesn't work properly

Hi there,
I have a class "Editor" extended from JPanel to edit some data. In my JApplet I added a JMenubar with setJMenubar() and registered an ActionListener to the menu items. Everything works fine except the displaying of the EditorPanel after choosing the menu item.
When I'm adding the Panel in the constructor of the applet it is shown correctly.
public class EditorApplet extends JApplet implements ActionListener
  public void init()
    setJMenuBar(createJMenuBar());
    Editor e = new Editor();
    getContentPane().add(e); // works perfectly
    e.load(2); // load data into editor
  public void actionPerformed(ActionEvent e)
    if (e.getActionCommand().equals("..."))
      Editor e = new Editor();
      e.loadObjects(1);
      getContentPane().removeAll();
      getContentPane().add(e); // nothing happens!?
      getContentPane().repaint(); // ???
      repaint(); // ???
    }What else needs to be done to display the 'new' Editor?

Wait. You're adding an ActionEvent to your panel.
I think you want to do "add(this.e)".

Similar Messages

  • I have several albums in my library that I cannot get onto my device. I have tried manually adding the albums, but it doesn't work. I can view the albums in "Music," but when I click on "iPhone" they are gone. How can I transfer them over?

    Can't add albums in library to iPhone.

    Full question: I have several albums in my library that I cannot get onto my device. I have tried manually adding the albums, but it doesn't work. I can view the albums in "Music," but when I click on "iPhone" they are gone. How can I transfer them over?

  • Sorting albums by year doesn't work properly in new iTunes 11.

    Sorting albums by year doesn't work properly in new iTunes 11.
    See the screenshots below.
    There's a kind of albums. Double CD in one set. Queen "The Works" 1984, for example.
    First CD is the original release and the second one is bonus CD for the original album's reissue in 2011.
    iTunes 10 took year info from track 1 of CD1 for "sort album by year" function.
    But new iTunes 11 takes the highest value of year in the album's track list.
    Same things with additional bonus tracks for the album's reissues.
    See the screenshot of Madonna "Like a Virgin" 1984 album.
    So my collection is in a huge mess after last update to iTunes 11.
    It's a big problem. And must be solved to the next update.

    I noticed this too, and I think it gets even more complicated when you think about the difference between how you want Re-releases to be ordered: based upon the intial release year (like you have described above), and Compilations or Greatest Hits: where you want them to be sorted by when the albums were actually released. iTunes 11 seems to just grab the date of the most recently released song on an album. This worked fine for 2/3 of my Compilation albums, because they just happened to be released the same year as the latest song on each album.
    Compilation example (released: 2003, latest song on album: 1969):
    This is what I submitted to Apple as feedback:
    This issue is actually aimed at  iTunes 11, but 10.6.3 is the most recent version number I could select in the drop-down menu.
    As with normal albums, iTunes 11 puts a release year next to "Various Artists" in Albums > Expanded View (and also in the Songs and Genre Tabs). However, iTunes seems to produce this number by looking for the last released song on the album. This has worked fine for 2/3 of my compilations, but the third one is a 60s compilation released in 2003. It displays "1969" next to "Various Artists" and there are no tags available in Get Info to change this. This also happens to greatest hits collections.
    When selecting View > View Options > "Artist" then "Year" in Album view, and View > View Options > "Year" in Artist and Genre view, the above issue causes compilations, greatest hits collections, and re-releases (Although users may want re-releases to be listed in order of original release) to be sorted in the wrong order.
    Considering iTunes 11 has added this feature (in previous iTunes versions, "Year" would only appear next to individual tracks), it is a shame an "Album Year" or "Sort Album Year" hasn't been added to the Get Info options.
    As is, the only solution I can think of is to change all track years to the release year of the album.
    I imagine this might be a bit of an edge case, and not something the majority of iTunes users would care about, but then again, I could imagine a fair number of musicphiles wanting control over this metadata.
    Message was edited by: folo1988, info added.

  • Frontpanel of X-Fi Fatal1ty doesn't work properly

    Hi!
    My frontpanel doesn't work as it should. It doesn't has any functionality on one of the three buttons. And volumecontrol also does not work there. Neither with original drivers from creative nor with Daniel K.
    Do you have any suggestions? I am running Vista 64 SP2.

    Re: Frontpanel of X-Fi Fatalty doesn't work properly Yes this is what happens with those Front panels/ i-o bays. Sometimes when installing them, people turn the IDE cable that connects the card to the bay the opposite way that it should be. PIN on the bay should go to pin on the sound card, but people reverse that and sometimes the bay partially works. Other times, people do not plug a floppy power connector into their machine, and again, part of the bay works, and part of it doesnt. Please check these connections on both the "IDE style of cable" and your power connector doing to your I/O baby.
    Message Edited by jmacguire on 06-7-2009 02:08 PM

  • Satellite P500-127: microphone or sound doesn't work properly using skype

    Hi Toshiba team,
    Recently bought a new notebook.
    However the microphone or sound driver (connexant pebble high definition ) doesn't work properly when using skype. Also read about this matter in various forums such as the skype forum.
    People encountered similar problems such as:
    We can usually talk for a bit longer than 20 seconds, however the call will drop at a random time between 1 and 15 minutes. The strange part is that sometimes the quality of the call is good, but more than often my friend can only hear *half of what I am saying* while I usually do not have a problem hearing what has been said. The video will work so my friend can see me talking but can simply not really hear what I am saying.
    Before the drop the call will usually freeze for a couple of seconds and then skype sometimes crashes. We have tried talking together without the video, however the problem remains.
    I also found a suggestion by the toshiba service, just to simply increase the volume under control panel etc, but it doesn't work either..
    Can you please help me on this one?
    Cannot use skype at all as it just to annoying for everyone I talk to.. Quality is just to poor!!
    Many many thanks
    +Message was edited: link has been removed - not allowed+

    Hi
    Every day I use Skype with the internal webcam, microphone and speakers but I didnt have any problems as yet.
    In your case I would try updating the drivers. Therefore download the latest sound and webcam driver (microphone is a part of webcam). Both you can get here:
    http://eu.computers.toshiba-europe.com > Support & Downloads > Download Drivers
    If your friend cant hear you, check also the settings for internal microphone. I have activated microphone boost in Windows sound settings so I could improve the microphone quality.
    By the way: Do you use the latest version of Skype? With older Skype version I had also some problems on Windows 7. As far as I know only newest version is fully Windows 7 compatible.

  • My palm m105's touch screen doesn't work properly after a sync.

    I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here.
    Now, I plug it into my old computer which still has the palm software with my apps, and I run the sync operation (from the palm device sync manager, cause I lost my cradle and I'm connected via the serial cable), and it syncs fine BUT, here comes the problem, when it finishes the sync (successfully) the touch screen is all misaligned. I can't go back to the home screen or do anything useful.
    My palm m105's touch screen doesn't work properly after a sync.
    I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here.
    Now, I plug it into my old computer which still has the palm software with my apps, and I run the sync operation (from the palm device sync manager, cause I lost my cradle and I'm connected via the serial cable), and it syncs fine BUT, here comes the problem, when it finishes the sync (successfully) the touch screen is all misaligned. I can't go back to the home screen or do anything useful.
    Thanks in advance!
    Post relates to: Palm m105
    Post relates to: Palm m105

        Maldoman578,
    Let's help solve this mystery together! Is your screen freezing after every reboot? Is there any physical/liquid damage on the device? When did this issue begin? Did you notice this after a recent update or application download?
    EfrainM_VZW
    Follow us on Twitter @VZWSupport

  • My Safari doesn't work properly after installing Lion.  Don't like it, how can I uninstall? (Cloud not worth it)?

    I upgraded ti Lion 10.7.2 for icloud but it's causing other problems with my mac.  My Safari doesn't work properly anymore.  Wishing I didn't upgrade, anyone know how to fix this or do i just have to uninstall?  Thanks,

    Wipe the drive clean and install Snow Leopard from your install disk.
    Might be less work fixing Safari. Try Resetting Safari.

  • I have an iphone 3GS and I have upgraded it to iOS 6. Since then it doesn't work properly. Every now and then it has been restarting by itself and requiring restore. When I connect it to itunes it restarts again and again. Is there any solution?

    I have an iphone 3GS and I have upgraded it to iOS 6. Since then it doesn't work properly.
    Every now and then it has been restarting by itself and requiring restore. When I connect it to itunes it restarts again and again without letting me take any action. Is there any solution?

    Hey, There are afew things you can try.
    - Simply turn your phone off and back on again
    - Hold down your home button and your lock button and let goes as soon as the screen goes black (Phone will power down) - Then turn on your phone and hey presto!
    - Back up your iPhone to your PC, then restore it..
    this ones last cause I think you may have tried it already..
    - Close all open applications
    Hope this helps!
       Kieran.

  • HT1923 The sync function on my iPod Touch 3rd generation doesn't work properly.  My OS is up to date, but some of my podcasts won't transfer onto the iPod, and it won't delete ones I've already listened to.

    The sync function on my 3rd gen iPod Touch doesn't work properly.  It won't sync all the podcasts I've downloaded, and it won't delete ones I've listened to and deleted on iTunes.

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • What can I do if my CD or DVD drive doesn't work properly in Windows 8?

    QuestionWhat can I do when if my laptop CD or DVD drive doesn't work properly in Windows 8?
    AnswerNote: For help with this issue in Windows 7, please see this article.
    To get your CD or DVD drive working correctly, try these suggestions in the order listed.
    Reinstall the Driver
    Hold the Windows key and press the 'x' key to open a menu in the lower-left. In this menu, select "Device Manager." Expand "DVD/CD-ROM drives." Right-click the entry for the CD/DVD drive nested under "DVD/CD-ROM drives," then select "Uninstall." Finally, restart the computer. The computer will reinstall the drivers for the drive.
    Power Cycle
    Even when your laptop is off and unplugged, residual power can still be held in some components. While this is normal, clearing it can help with some hardware problems. Perform these steps to complete what’s called a power cycle.
    Ensure the laptop is turned off.
    Unplug the laptop's AC power cable.
    Unplug all wires and peripherals. This includes CDs, DVDs, USB sticks, mice, printers, and any other accessories.
    Remove the battery (if the model has a removable battery). If the model does not have a removable battery, check your user's guide to determine if you have a pinhole reset on the bottom. If you do, press this.
    Hold down the power button for thirty seconds.
    Reattach the battery if removed.
    Connect the AC adaptor to the power socket that was confirmed to be working in the first step.
    Connect the other end of the AC adaptor to your computer.
    Start the computer and test the drive
    Microsoft Fix-it
    Your computer may exhibit one or more of the following symptoms:
    Your CD or DVD drive no longer appears in Windows
    Your CD or DVD drive does not read or write and is shown as disabled
    The media in your CD or DVD drive cannot be read
    The media cannot be written to a CD or DVD inserted into the drive
    You receive an error message about your CD or DVD drive
    If any of these symptoms apply to your computer, use Microsoft Fix-it troubleshooter available here.
    System Restore
    Try using System Restore to restore to the most restore point from before the problem arose.
    How To: Understanding System Restore, Refresh, Reset, and, Recovery options in Windows 8 + Video
    System Recovery
    If the System Restore doesn't solve the issue, you could try a System Reset. Resetting your laptop to its original, out-of-the-box state is a great way to eliminate software as a possible cause of the problem. Note that doing a system reset will return the laptop to its default conditions, completely wiping your data. Information on how to perform a system recovery can be found in your user's guide.
    For more information on performing a recovery, see the following article:
    How To: Understanding System Restore, Refresh, Reset, and, Recovery options in Windows 8 + Video
    Contact Customer Support
    If the drive doesn't work after performing a recovery, it may be due to hardware failure. Please call customer support or seek servicing.

    See this Microsoft article - http://support.microsoft.com/kb/314060/en-us  For ways to fix manually
    and/or use the proper microsoft fixit 8.1 and 8 or the other one for Windows 7, Vista, and XP listed below.
    (these are from the Microsoft article)
    Resolution 2: Use the CD/DVD Fix it troubleshooter
    To automatically fix common issues with CD or DVD drives, click Run now, and then follow the on-screen instructions. Windows 8.1 and Windows 8   
    The Automatically diagnose and fix common problems with CD or DVD drives troubleshooter may automatically fix the problem described in this article.
                                    This troubleshooter fixes many problems. learn more
    Run now
    Windows 7, Windows Vista and Windows XP
    The Automatically diagnose and fix common problems with CD or DVD drives troubleshooter may automatically fix the problem described in this article.
                                    This troubleshooter fixes many problems. learn more
    Run now
    If your problem is not solved, try the next
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • Satellite Pro L20 doesn't work properly with USB Fast Track audio i.f.

    Hello!
    I have used my Fast Track USB on new Toshiba Satellite L40 and I never had problems with it. I could set low latency and I did few songs with it.
    Yesterday I bought another notebook, thinking of home recording studio. It's used Toshiba Satellite Pro L20. It doesn't work properly with my interface. When I listen music on Winamp or do anything on Fruity Loops I hear loud clicks, pops, noises. They introduce samples, or they appear during playback or after a sample is stopped.
    I noticed, drivers for Satellite Pro L20 are a problem. Its not supported by Toshiba anymore?! The only drivers for chipset are very old and you can download em only from Toshiba website. The chipset is ATI Xpress 200M. Its drivers are with graphic card. Recently I noticed you can download "ATI Catalyst Legacy Display Driver for Windows XP - Motherboard/IGP Drivers 9.11" and CRACK IT to make it possible to install on mobile unit such as L20. Yep its funny but its impossible to do otherwise!
    things I have tried and they still not help:
    # drivers replacement, original were released in 2004. I installed recent version.
    # driver settings, low latency, high latency
    # asio and different settings
    # pluging the interface to another usb socket.
    # trying what happens when I use battery and when I use adapter
    # updated bios
    # turned off onboard units such as wifi card, sound card
    # checked IRQ list
    pops still appear.
    my config:
    Toshiba Satellite Pro L20
    Win XP Home SP3
    Celeron M 1,5GHz
    896Mb ram
    M-Audio Fast Track USB, drivers: 6.0.2
    Kind regards

    Thanks for answer. I still have L40 but I try to run my homerecording on L20. The L40 is now used by whole my family. It's possible to swap them but there's a problem - L20 has Norway keyboard and I'm the only person at home who doesn't often look down while typing. In Poland, we use standard ms keyboard. I'd buy special stickers, it's about only to make special chars get back to their places.
    I installed Windows on this computer end set it to best performance possible.
    Since I created this thread, guys from M-Audio support tried to solve my problem - nothing helped. I think potential solutions are exhausted.
    Message was edited by: lidia.pochron

  • Hp laserjet P1006 doesn't work properly

    my Hp laserjet P1006 doesn't work properly on my windows 7(64-bit) and whenever I try to print a page the orange light just flashes and then the green light flashes and then it doesn't print at all.I've tryed everyway including reinstalling the software or even turning it off and then turning it on.Pleaseeeee.............help!!!!!!!!!!!

    Hello
    I understand you are no longer able to print with the P1006 on Win8.1.
    Did you uninstall the P1006 first?
    If not uninstall and reinstall the printer software again.
    Both drivers are the same if you look at the version on the website and should still work with the Win8.1.
    If you need more assistance just let me know.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Lightroom 5: start button in the presentation module doesn't work properly

    Hi. I purchased LR 5 last week but the start button in the presentation mudule doesn't work properly. I get a black screen and nothing happens. I have to press the esc button several times to return to LR.Can you help me please
    Regards Eugene

    start button in the presentation mudule
    Can you clarify?
    There is no start button nor a presentation module.
    Do you mean the Play button in the Slideshow module?
    Which operating system?

  • The cable doesn't work properly when connected as data cable.

    Hi,
    I have recently encountered problem of the cable. The thing is that if i use it just for charging with the plug, it works fine. But when i wanna use it with computer (i.e., accessing itunes, etc) or with my car, it doesn't work properly, it keeps switching between charging and discharging very fast. I will appreciate your quick support!
    Regards,
    Farhan

    Just for all the people to know, I found out the solution. You have to mark the correct side of the charging cable which connects at inlet of the phone. Because this point acts as a chip when used as data cable or auxiliary use (car,etc). That's why it charges with the plug on any side. I don't know what's the frequency of it happening to iphone 5s users, because I bought it recently (iOS 7.1.1) Hope it helps to others in future.

  • Key Command for "Go to Next Marker" doesn't work properly

    Hi there!
    While using Logic Pro 9.1.8 with Mountain Lion (10.8.2), it seems that the Key Command for "Go to Next/Previous Marker" doesn't work properly.
    The only effect is, that a grey rectangle moves in the top of the Arrange Area while ignoring the Markers itself.
    Any suggestions to solve it or is it me that is misbehaving?
    Cheers, GJ

    Hi
    The commands work correctly here on the same OS etc: Cycle Locators jump to the next/prev marker and the Playhead jumps to the Start of the Marker.
    Default KC are Control Command +Arrow Left/right
    Step 1: check you are using the correct key command :-)
    CCT

Maybe you are looking for