不 行啊:
提示
non-static method getQDDM()can not be referenced from a static context

解决方案 »

  1.   

    static String getCLBM(){
        return  CLBM;
      }
    ......
      

  2.   

    static String getCLBM(){
        return  CLBM;
      }
    这样定义后,现在在MainFrame中 提示:
    non-static method getQDDM()can not be referenced from a static context刚才是在inputfrmae中提示
    non-static method getQDDM()can not be referenced from a static context
      

  3.   

    是提示:
    return  CLBM;
    return  QDDM;
    return  DDMC;
    non-static method getQDDM()can not be referenced from a static context错误。
      

  4.   

    你这个
    MainFrame
    是传递过来的引用吗?如果是
    这个MainFrame
    是一个类名的话那么你的那些public方法都不是static的,那么是不能使用的
    就算你的那些方法都改成static的话也必须里面引用到的变量
    都是static的才行明白?
      

  5.   

    MAINFRAME是JB中的以个FRAME名!INPUTFRAME一样!
    up
      

  6.   

    你在mainframe类中必须把 public String getCLBM(){
        return  CLBM;
      }
      public String getQDDM(){
      return  QDDM;
      }
      public String getDDMC(){
      return DDMC;
      }
    都定义成static 而且clbm,qddm,ddmc也必须是static的这样才可以用