当前位置: 技术问答>java相关
为什么我的IE不能正确的支持Applet?
来源: 互联网 发布时间:2015-01-26
本文导语: 一个例子如下: 代码: import java.awt.*; import javax.swing.*; public class TestMore extends JApplet{ public void init(){ String flavores[]={"Chocolate","Strawberry","Vanilla","Peach","Butter Pecan","Watermelon"}; JComboBox jc=new JComboBox(flavores); jc.s...
一个例子如下:
代码:
import java.awt.*;
import javax.swing.*;
public class TestMore extends JApplet{
public void init(){
String flavores[]={"Chocolate","Strawberry","Vanilla","Peach","Butter Pecan","Watermelon"};
JComboBox jc=new JComboBox(flavores);
jc.setMaximumRowCount(4);
getContentPane().add(jc,BorderLayout.NORTH);
JList mylist=new JList(flavores);
mylist.setVisibleRowCount(4);
JScrollPane pane=new JScrollPane(mylist);
getContentPane().add(pane,BorderLayout.SOUTH);
}
}
用Java 2 Runtime Standard Edition v1.2.2来编,appletviewer运行后证实无误。
IE5.5sp1,已经加了Java 2 Runtime Environment Standard Edition 1.2.2。
在IE中就看不到JListBox和JComboBox。怎么办啊?:(
3x:)
P.S:那个问题给分是什么意思?
代码:
import java.awt.*;
import javax.swing.*;
public class TestMore extends JApplet{
public void init(){
String flavores[]={"Chocolate","Strawberry","Vanilla","Peach","Butter Pecan","Watermelon"};
JComboBox jc=new JComboBox(flavores);
jc.setMaximumRowCount(4);
getContentPane().add(jc,BorderLayout.NORTH);
JList mylist=new JList(flavores);
mylist.setVisibleRowCount(4);
JScrollPane pane=new JScrollPane(mylist);
getContentPane().add(pane,BorderLayout.SOUTH);
}
}
用Java 2 Runtime Standard Edition v1.2.2来编,appletviewer运行后证实无误。
IE5.5sp1,已经加了Java 2 Runtime Environment Standard Edition 1.2.2。
在IE中就看不到JListBox和JComboBox。怎么办啊?:(
3x:)
P.S:那个问题给分是什么意思?
|
使用htmeconvert改变html,ie就可正确显示
jdk1.3.1 bin 有
jdk1.3.1 bin 有