Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1483

Re: javax.swing.JPopupMen

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!textspool1.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: javax.swing.JPopupMen
Message-ID <70e3d1a86d514@uwe> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1176904573.130795.138220@y80g2000hsf.googlegroups.com>
References <1176904573.130795.138220@y80g2000hsf.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 32
Date Wed, 27 Apr 2011 15:33:35 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918415 96.60.20.240 (Wed, 27 Apr 2011 10:33:35 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:33:35 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1483

Show key headers only | View raw


  To: comp.lang.java.gui
dushkin wrote:
.
>     java.lang.ClassCastException: javax.swing.JPopupMenu cannot be
>cast to javax.swing.JMenuItem
.
>Any ideas?

1) instanceof
2) 
try {
  ..one
catch(CCE) {
  try {
   ..the other
  catch(CCE) {
   ..debug the code
  }
}
3) redesign it

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200704/1

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

javax.swing.JPopupMenu ca "dushkin" <dushkin@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: javax.swing.JPopupMen "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: javax.swing.JPopupMen "dushkin" <dushkin@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: javax.swing.JPopupMen "dushkin" <dushkin@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000

csiph-web