Article View: borland.public.jbuilder.linux
Article #254jbuilder 2005 deprecation problem
From: Peter
Date: Wed, 22 Sep 2004 23:33
Date: Wed, 22 Sep 2004 23:33
34 lines
1788 bytes
1788 bytes
Hi
I have this source:
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.basic.BasicComboPopup;
class MyComboPopup extends BasicComboPopup {
public MyComboPopup( JComboBox combo ) {
super(combo);
}
public void show() {
//super.show();
}
/*public void setVisible(boolean b){
int index=comboBox.getSelectedIndex();
Rectangle cellBounds = list.getCellBounds(index,
index);
scroller.getVerticalScrollBar().setValue(cellBounds.y);
}*/
}
If i compile with jdk1.4.2, no warning.
If i use jbuilder 2005 to compile, it give me these:
"Frame1.java": [deprecation] show() in java.awt.Component has been
deprecated at line 50, column 9
There have been deprecation warnings. Please consult the documentation
for a better alternative.
But suppose jbuilder 2005 is using jdk1.4.2 to compile too, then why
it give me this warning?
thanks
from Peter (cmk128@hotmail.com)
Technical Details
Message-ID:
<a52de42d.0409221533.3dbc0f5d@posting.google.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 107590,deb8d93299f25ef3,start X-Google-Attributes: gid107590,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mail From: cmk128@hotmail.com (Peter) Newsgroups: borland.public.jbuilder.linux Subject: jbuilder 2005 deprecation problem Date: 22 Sep 2004 16:33:01 -0700 Organization: http://groups.google.com Lines: 34 Message-ID: <a52de42d.0409221533.3dbc0f5d@posting.google.com> NNTP-Posting-Host: 203.168.166.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095895981 23279 127.0.0.1 (22 Sep 2004 23:33:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Sep 2004 23:33:01 +0000 (UTC)