主要注意的是state要设置透明 stage.initStyle(StageStyle.TRANSPARENT); netbeans工程地址 http://download.csdn.net/detail/ldbmh/9049275