Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder02.ams.xsnews.nl!frontend-F09-06.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: JPopupMenu Organization: Decebal Computing References: <877fw0yuwm.fsf@Equus.decebal.nl> <54cfd7ae$0$293$14726298@news.sunsite.dk> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Tue, 03 Feb 2015 01:05:20 +0100 Message-ID: <87386nzwov.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:GQpICFoYjueUbNBFDqt5QNBNfDU= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 20 NNTP-Posting-Host: 77.171.42.144 X-Trace: 1422922434 news.kpn.nl 20453 77.171.42.144@kpn/77.171.42.144:40127 Xref: csiph.com comp.lang.java.programmer:31021 Op Monday 2 Feb 2015 21:01 CET schreef Arne Vajhøj: > On 2/2/2015 2:29 PM, Cecil Westerhof wrote: >> I tried the code at: >> http://www.java2s.com/Code/Java/Swing-JFC/CreatingpopupmenuswithSwing.htm >> >> The JTextField is shown, but the JPopupMenu not. What is wrong in >> the code? > > Here I get the popup menu fine as soon as I right click on the > applet. I tried that and I get the same result. But that is not what I want. I was using the wrong class. It looks like that with JComboBox I get what I want. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof