日期:2014-05-20  浏览次数:20754 次

问个简单问题,高手请帮忙
//   JBuilder   API   Decompiler   stub   source   generated   from   class   file
//   2007-7-8
//   --   implementation   of   methods   is   not   available
package   com.mapinfo.jma;
//   Imports
import   java.awt.Button;
import   java.awt.Component;
import   java.awt.Dialog;
import   java.awt.Event;
import   java.awt.Frame;
import   java.awt.GraphicsConfiguration;
import   java.awt.Panel;
public   class   CMessageBox   extends   Dialog   {
public   CMessageBox(Frame   owner,   String   title,   String   modal)   //Implicit   super   constructor   Dialog()   is   undefined.Must   explicitly   //invoke   another     constructor 这个构造提示有问题,
//谁帮忙解答下怎么解决?
{
}
//   Fields
private   String   msg;
private   Panel   pnlSouth;
private   Button   btnOK;
private   MLabel   lblMsg;
//   Constructors
//   Methods
public   static   Frame   getTopLevelParent(Component   component)   {
return   null;
}
public   void   setMessage(String   string)   {
}
public   String   getMessage()   {
return   null;
}
public   boolean   action(Event   event,   Object   object)   {
return   false;
}
public   void   autoCenter()   {
}
}


------解决方案--------------------
没有办法,你的构造函数里没调用父累的构造函数,它就会默认调用super(),而在Dialog里又没有不带参数的构造函数.
看看Dialog里有什么构造函数,自己调用一下就行了.
------解决方案--------------------
super(a,b..);