[在一开始,我在JFrame中测试了我的项目,但是在我尝试将其从另一个现有项目迁移到自定义JInternalFrame之后,它给我一个不兼容的错误,因为JInternalFrame无法转换为Frame。
我用这个来做调用:
MyJDialog mjd = new MyJDialog(this,false,myobject);
我的JDialog的构造函数:
public MyJDialog(java.awt.Frame parent,boolean modal,Object myobject) {
super(parent,modal); /*This part it's giving me conflict due JInternalFrame can not be converted to Frame*/
//another code
}
因此,我可以使用wich函数来代替“ super”,或者可以应用哪种解决方案。
提前,谢谢。