Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1483
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: javax.swing.JPopupMen |
| Message-ID | <70e3d1a86d514@uwe> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1176904573.130795.138220@y80g2000hsf.googlegroups.com> |
| Date | 2011-04-27 15:33 +0000 |
| Organization | TDS.net |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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