没搞过swing,netBeans报
package org.jdesktop.layout does not existswing-layout-1.0.4.jar 包夜导入了.

解决方案 »

  1.   

    可能还有别的jar吧,最简单的办法就是在Eclipse里面展开这个jar包,确认一下是不是真的有这个类?
      

  2.   

    In NetBeans and under your project in question under your projects tab, right click on the folder named Libraries. Click on "Add Library" and then scroll to find "Swing Layout Extensions". Select "Swing Layout Extensions" and then click the "Add Library" button. The error should have gone away.
      

  3.   

    ok了,这个需要的是swing-layout-1.0.jar  
    我在netBeans里面找得到是swing-layout-1.0.4.jar.