62,615
社区成员
发帖
与我相关
我的任务
分享
public class Test extends JFrame {
public Test (){
Container contentPane = getContentPane();
final OleContainer oleContainer = new OleContainer();
oleContainer.createObject(CLASS_ID);
getContentPane().add(oleContainer, BorderLayout.CENTER);
}
}
public Test extends JPanel(){
pulic Test(){
oleContainer.createObject(CLASS_ID);
oleContainer.createObject(CLASS_ID);
add(oleContainer, BorderLayout.CENTER);
}
}