JPopupMenu doesn't show up

Hi all
I'm using a popup to work like a combobox in an applet. it works fine on my machine, but i think it's because i have java 1.4 installed. the standart jre in our company is 1.3, and in this version the popup doesn't show up. any ideas?
my code:
popup = new JPopupMenu();
JPanel popPanel = new JPanel();
ok = new JButton("Ok");
popPanel.setLayout(new BorderLayout());
popPanel.add("Center",calendar);
popPanel.add("South",ok);
popup.add(popPanel);and when it has to show up
popup.show(this,0,0); \\ this is an extended JComponenti also tried with popup.setDefaultLightWeightPopupEnabled(false); but there was no difference
and does anyone know, how i can get rid of the text 'Java Applet Window' below the popup?
thanks for help

ok, i found out, that it doesn't appear, when its defined lightweight.. how can set the JPopupMenu heavyweight??
like i read in other threads the method
popup.setDefaultLightWeightPopupEnabled(false);
doesn't work properly!

Similar Messages

  • JCheckBoxMenuItem doesn't show the checkbox

    Hi,
    I'm trying to add a JCheckBoxMenuItem to a popup menu. I'm using jdk1.4 and the Windows L&F. The checkbox portion of the JCheckBoxMenuItem doesn't show up; all I see are the words associated with the check box. Any help would be greatly appreciated.
    Thanks,
    Angella
    private void createPopup(Point p) {
    JMenuItem item;
    popup = new JPopupMenu();
    JCheckBoxMenuItem checkItem = new JCheckBoxMenuItem("Show Labels");
    popup.add(checkItem);
    if xxx== null || xxx.equals(""))
    checkItem.setEnabled(false);
    checkItem.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    JCheckBoxMenuItem temp = ((JCheckBoxMenuItem)(e.getSource()));
    setShowLabels(temp.isSelected());
    checkItem = new JCheckBoxMenuItem("ShowTypes");
    popup.add(checkItem);
    if (xxx == null || xxx.equals(""))
    checkItem.setEnabled(false);
    checkItem.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    JCheckBoxMenuItem temp = ((JCheckBoxMenuItem)(e.getSource()));
    setType(temp.isSelected());
    popup.show(this, p.x, p.y);

    Angella,
    Did you ever overcome this limitation in the windows l&f. I would also like to show an empty checkbox on the menu item to indicate that the menu item is "checkable". Did you find a way to do this?
    Thanks,
    Troy

  • HT203167 A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV.

    A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV...other movies show up. Help.

    It was Love Actually. It's been in my library a few years but is now missing. It's odd...it isn't even in the iTunes Store anymore. I think there is a rights issue because a message appeared in the store saying it wasn't available at this time in the U. S. store. Still, if I bought it years ago it should be in my library or I should get a refund....

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • My iPod Touch 1G doesn't show up in my iTunes and in My Computer.

    My iPod Touch 1G doesn't show up in my iTunes 10.6.3.25 and in My Computer.
    the iPod can charge when I connect it to the laptop but it doesn't appear in iTunes and My Computer.
    there's also no "apple.." in my universal bus controllers.I cannot sync, what do I do?
    I'm using Windows 7 Home Basic.

    iOS: Device not recognized in iTunes for Windows

  • Tried to install newest itunes, crashed during install, and now crashes my computer every time i try to uninstall.  Itunes doesn't show up in the Add/remove prog list at all.  tried to roll back over a month, still crashing.

    So I tried to update to the newest Itunes.  It locked up my computer part way thru the install.  Black screen, computer turned itself off.  Now anytime i try to do anything with Itunes it shuts my computer down.  I can start up fine in safe mode but when i try to uninstall from there, Itunes doesn't exist.  the other apple programs do, but no itunes.  when i try to uninstall the other programs in safe mode it tells me it can't because the windows installer isn't loaded.  I have system restored to over a month ago and itunes still doesn't show up in add/remove programs.  however, i can open itunes.  it just tells me a file didn't get installed and to uninstall and reinstall.  So, how do i remove a progam that doesn't think it exists and crashes my computer when i try to do anything related to it???  I'm out of ideas.  running windows vista.

    I think my problem is fixed now.
    For the fun of it, I reinstalled iTunes 9.2.1 today (using the exact same installer as I did yesterday), but this time I didn't uninstall iTunes first. As expected, iTunes recognized my iPhone (as I expected it to, until my next reboot).
    A few minutes later, Software Update showed up and among the updates is "iPhone SDK Compatibility Update". The description indicates that installing this should fix an issue where iPhones and iPod touches aren't recognized by iTunes. Isn't that interesting?
    I installed that update and most of the others waiting for me (including Java, Safari 5.0.1, and a few others - not 10.6.4 though, due to the issues with nVidia graphics cards). After the reboot, I started iTunes, and it saw my iPhone!
    So, if you're having this same problem, I'd recommend tracking down this update and see if that does the trick for you. Hopefully it will.

  • BPM console doesn't shows the deployed application in BPM console

    Hi Friends,
    i developed a BPM process in Jdeveloper and deployed in the weblogic server. Enterprise manager shows that application but in BPM workspace doesn't shows that application to initiate the process form BPM console. any one can you please let me know why the weblogic server shows this peculiar behavior?
    Thanks
    Hari Mandadapu

    Did you create an initiator task with corresponding Task Flow within the BPM Project?
    Only when you add an initiator task it will show up in the BPM Workspace.
    An initiator task differs from a regular human workflow task.
    Otherwise you can only start the process from Enterprise Manager or Webservice Call. Check out if the process show up in Enterprise Manager.
    Regards,
    Martien

  • Syncing iphone and can't seem to transfer audiobooks that i have put in a playlist.  Sync menu doesn't show all playlists.  Help

    syncing iphone and can't seem to transfer audiobooks that i have put in a playlist.  Sync menu doesn't show all playlists.  Help

    I have the same problem with podcast playlists.  When I go to the music window in my iPhone devices section, the playlists I have created on my macbook pro in iTunes do not appear as an option to sync with the iPhone.  I know some web radios streams, like the BBC, won't transfer because of compatibility issues, but the playlists of podcasts that I have created consist entirely of podcasts downloaded from the podcasts section on the iTunes Music Store.  They used to show up and sync properly before I upgraded to OS 5.1.1, but now they don't.
    Does anyone have a fix and am I right in surmising that the cause is a glitch in OS 5.1.1?

  • Uploader doesn't show "My Documents" folder

    I am unable to upload a file to the PDF converter service; the uploader doesn't show "My Documents folder..?? Help!!
    Regards,
    Marshall

    Hello Bernd,
    I thought I was getting access to Acrobat. Did I miss something on the Adobe site??
    Marshall Chamberlain authors the Ancestor Series of adventure-thrillers and other suspense-thrillers. He is recognized as an expert in the field of independent publishing. Story summaries and excerpts of his books are available at  <http://www.marshallchamberlain.com/> MarshallChamberlain.com. Please visit his website to discover more about this "above average man," his works, and what's coming next.                                                                               
    Connect with me:         <http://twitter.com/AuthorMarshall> twitter logo at one tenth size         <https://plus.google.com/u/0/105933698392363877165/posts> Google+ Button on tenth size        <http://www.facebook.com/profile.php?ref=profile&id=1240336502> Facebook Button at 14% of size         <http://www.linkedin.com/profile/view?id=23517362&trk=tab_pro> LinkedIn Button 12% of size

  • I updated to yosemite and now if someone is using imessage and sends a text message to my phone it doesn't show up on my phone but does on my computer.  I don't want messages on my computer!  How do I get this to go away and work like it used to?

    I updated to yosemite and now if someone is using imessage and sends a text message to my phone it doesn't show up on my phone but does on my computer.  I don't want messages on my computer!  How do I get this to go away and work like it used to?

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • How do I delete a movie off my iPhone that doesn't show up in iTunes?

    I purchased this movie on iTunes at least 3 years ago, and both my brother and I recall deleting it. It doesn't show up in my iTunes (therefore I can't sync it on or off), nor my brother's. And I updated my iPhone 4s to iOS 7 a couple of days ago, and I just realised now that I have this movie on my phone, of which no one knows where it has come from. how do I delete it and where would it have come from if it's not on my computer?
    P.S. I only sync my phone on my Mac OS X.

    .  Another strange thing is that in ITunes "Photos" at the bottom where you see the colored visuals of what applications are using space "Other" consumes more than half my space.
    that can sometimes happen, when trying to update the software failed. Then partially downloaded updates will take up a lot of space. Photos synced to iDevices can only be removed by syncing again.
    If syncing again with just one small album with a single photo selected will not remove the synced albums, back up the iPhone to iTunes and restore the device to factory settings:
          iOS: Back up and restore your iOS device with iCloud or iTunes
    Restoring should get rid of the "other" and the synced albums.

  • What do i do when external optical drive doesn't show up in finder?  how can i import software, music, etc. when the drive isn't recognized/mounted/whatever?

    the internal optical drive on my early 2006 20"imac has mechanical problems ejecting discs.  i've gone thru all the recommended steps to eject discs, and have luckily been able to eject the last 3 discs but only after spending 30-60 minutes going thru all of the steps over and over, and today just trying "eject disc" in itunes since i had itunes open.  i don't want to put another disc in - the drive clearly has problems with the mechanical eject mechanism, and from what i've read that's not unique to my computer.
    i bought an external optical drive: lite on, clamshell design to avoid problems with the eject mechanism; i contacted the mfr who said it's mac compatible.
    the drive plays dvds, which is all i've tried so far, but doesn't show up in finder.  so i don't know how to use it to load software, or music, or anything besides watch dvds.
    is there something i can do to get the drive recognized/mounted/whatever?  i would prefer to not spend the $220 which was quoted to me by an authorized mac repair company, even tho i think that's probably a reasonable cost given the delicacy of the operation as shown on ifixit.com. 
    thanks!

    I have an external LaCie burner and it will not show up on my Mac unless I insert a CD or DVD - in that case, the media will show up (I have these settings in the Pref Pane):
    If you want to burn files or music to blank media, you can use Finder or Disk Utility for files, but should use an iTunes playlist/iTunes for music and a movie burn app for videos/movies (such as iDVD, Roxio Toast, Burn, etc).
    If you simply want to drag files over as a backup, an external hard drive is a much better solution than a burner.

  • Movie I Purchased Doesn't Show Up as Purchased

    I have a Movie* in my library that I purchased as a DVD/digital copy combo. In iTunes on my computer, the "Get Info" shows it as "Purchased by:" me with the correct Account Name, so it ought to be something I've "purchased" as far as iTunes is concerned, right?
    But when I go to iTunes from my iPad or Apple TV, it doesn't show up and I can't download it over the air on the iPad and I can't watch it on my Apple TV.
    Is there anything I can do to fix this situation?
    * Thor

    Hello,
    Did you solve this as I have the same problem with 3 films I purchased and would appreciate any help.

  • Songs bought on iMac doesn't show up on Apple TV

    I have a Apple TV (160 gb) and has set it up to sync with my iMac, after the first sync everything in my iMacs library was available to my ATV. But when I've bought a new song on the iMac, it doesn't show up on the ATV. I manually have to sync it to the ATV to get it to work and store it locally on the ATV. Anyone know why my songs are not being shared?

    OK, better late than never... Needed to sync the ATV with my iTunes library for this to happen.

  • Itunes movie doesn't show up on Apple TV

    My movie shows up on itunes on my computer. I can play it and send it to view on Apple TV but it doesn't show up on Apple TV's menu and all the other movies on my iTunes do. Any thoughts? (I have checked different lists on Apple tv).

    Do you have an iCloud account?  Sometimes they end up there.

Maybe you are looking for

  • Display Issues with 50" Samsung Plasma

    I have a 50" Samsung Plasma, and I am trying to get the display settings right with my mac mini. I have used the screen with my 2009 macbook running snow leopard via the mini display port -> hdmi cable with no problems, however, I wanted use it with

  • Images appear pixelated in iMovie

    My very high res pictures appear pixelated when I put them into iMovie HD 6.0.3 and then when subsequently put into iDVD. I am trying to make movies of my gardens (I am a landscape designer) so image quality is so important. Thanks for any help!

  • What's the difference and purpose of Keywording and metadata such as title and caption etc?

    What's the difference and purpose of Keywording and metadata such as title and caption, crator, sublocation , label etc?  Where & how is the information used?  Where does it appear?

  • InDesign CS reinstall?

    Running Mac OS10.6.8, trying to reinstall InDesign CS, getting message "qualifying product cannot be found on this computer." My hard disk went down, bought a new one and reinstalled from backup, but when I tried to use InDesign CS I got the message

  • Can't create iTunes ringtones for my iPhone

    I'm trying to create ringtones from my purchased iTunes music for my new iPhone, but when I try to create the ringtone, I get a dialog that states: *"In order to purchase ringtones, you must review and accept the iTunes Store Terms of Service. Click