Article View: borland.public.jbuilder.java.swing
Article #1606Why does JB9.0 use Deprecated function "mouseEnter"?
From: Daniel Mark
Date: Tue, 16 Sep 2003 18:07
Date: Tue, 16 Sep 2003 18:07
30 lines
1941 bytes
1941 bytes
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:
<3f675104$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8c1794f0c6ad849e,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-09-16 11:10:11 PST From: "Daniel Mark" <danielmarkhot@hotmail.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Why does JB9.0 use Deprecated function "mouseEnter"? Date: Tue, 16 Sep 2003 13:07:40 -0500 Lines: 32 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: 138.26.65.53 Message-ID: <3f675104$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063735556 138.26.65.53 (16 Sep 2003 11:05:56 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail