Thread View: borland.public.jbuilder.linux
1 messages
1 total messages
Started by Peter
Wed, 22 Sep 2004 23:33
jbuilder 2005 deprecation problem
Author: 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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads