🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #243

Missing events

#243
From: Bruce Houghton
Date: Fri, 06 Apr 2007 15:42
16 lines
1814 bytes
When using MouseAdapters on JLists or JTables I seem to experience
missing events.  Clicking on an area will always cause that area to be
highlited, but it won't allways cause and event.
One other thing, the Lists and Tables are in ScrollPanes
Q. Is there a better way to do this?
Q. Or is this the only way and I'm stuck with it?
Oh by the way, these are in JApplet's.....JRE1.5...
Bruce Houghton
Example:
JScrollPane jScrollPane = new JScrollPane(jTable1);
jScrollPane.setBounds(new Rectangle(20, 92, 480, 612));
jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
   public void mouseClicked(MouseEvent e) {
     JOptionPane.showMessageDialog(null, "Say Something");
   }
}); 
Technical Details
Message-ID: <46166a31$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!newsrouter-eu.astraweb.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,dec980017feb87ab,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Bruce Houghton" <bhought@globalserve.net>
From: "Bruce Houghton" <bhought@globalserve.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Missing events
Date: Fri, 6 Apr 2007 11:42:03 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 207.112.59.233
Message-ID: <46166a31$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1175874097 207.112.59.233 (6 Apr 2007 08:41:37 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!newsrouter-eu.astraweb.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail