Article View: borland.public.jbuilder.java.swing
Article #1607Re: Why does JB9.0 use Deprecated function "mouseEnter"?
From: Kevin Dean
Date: Tue, 16 Sep 2003 18:27
Date: Tue, 16 Sep 2003 18:27
49 lines
2649 bytes
2649 bytes
JBuilder auto-discovers all available event handlers and creates entries for
them on the "Events" tab in the designer, whether they are deprecated or
not. The decision to use the deprecated event handler is up to the
programmer, not JBuilder.
--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html
BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
"Daniel Mark" <danielmarkhot@hotmail.com> wrote in message
news:3f675104$1@newsgroups.borland.com...
> Hello all:
> I review sun java sdk document this morning and got some strange
> questions.
> I got the following document from online SDK DOC
> mouseEnter(Event, int, int) - Method in class java.awt.Component
> Deprecated. As of JDK version 1.1, replaced by
> processMouseEvent(MouseEvent).
>
> After I add a JButton to a JPanel and override the mouseEntered
> function, the JB9.0 automatically
> creates some code module like this:
>
> JButton jButton4 = new JButton();
> jButton4.setBounds(new Rectangle(102, 130, 96, 51));
> jButton4.setText("jButton4");
> jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
> public void mouseEntered(MouseEvent e) {
> jButton4_mouseEntered(e);
> }
> });
> contentPane.add(jButton4, null);
>
>
> In my understanding, the mouseEntered function is Deprecated, so why JB9.0
> continues to use
> it when it creates code module.
>
>
> thank you
> -Daniel
>
>
Technical Details
Message-ID:
<3f675636$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f675104$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8c1794f0c6ad849e X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-09-16 11:33:16 PST From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com> Newsgroups: borland.public.jbuilder.java.swing References: <3f675104$1@newsgroups.borland.com> Subject: Re: Why does JB9.0 use Deprecated function "mouseEnter"? Date: Tue, 16 Sep 2003 14:27:04 -0400 Lines: 51 Organization: Dolphin Data Development Ltd. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 64.231.39.76 Message-ID: <3f675636$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063736886 64.231.39.76 (16 Sep 2003 11:28:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail