版本更新:
1. 修改了图标文件不存在时会报错的Bug
2. action单独标签
最新的Xml配置如下:
<?xml version="1.0" encoding="UTF-8"?> <commonswing> <action name="patchAction">com.tntxia.easypatch.action.PatchAction</action> <frame id="main" ico="ico.jpg"> <title>tntxia 补丁</title> <width>100</width> <height>100</height> <defaultCloseOperation>exit</defaultCloseOperation> <center>true</center> <content> <button bounds="10,10,60,20" action="patchAction">生成补丁</button> </content> </frame> </commonswing>