🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Missing events

#245
From: Paul Furbacher [TeamB]
Date: Wed, 11 Apr 2007 04:40
40 lines
2186 bytes
Bruce Houghton wrote:

> 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");
>    }
> }); 

What are you trying to do? Show an alert just as a test of
clicking?

What's the ultimate desired behavior here?  I can't see
the forest for all the Qs.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <461c669a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46166a31$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,dec980017feb87ab
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 11 Apr 2007 00:40:19 -0400
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Missing events
References: <46166a31$1@newsgroups.borland.com>
In-Reply-To: <46166a31$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.194.228
Message-ID: <461c669a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1176266394 69.142.194.228 (10 Apr 2007 21:39:54 -0800)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail