diff --git a/src/com/qy/ui/AppMain.java b/src/com/qy/ui/AppMain.java index 3028d1c..9d3f29a 100755 --- a/src/com/qy/ui/AppMain.java +++ b/src/com/qy/ui/AppMain.java @@ -105,7 +105,7 @@ public class AppMain extends JFrame { // TODO: handle exception e.printStackTrace(); } - setTitle("\u8F6C\u6362\u5668v2.7"); + setTitle("\u8F6C\u6362\u5668v2.8"); // TODO Auto-generated constructor stub setSize(900, 456); getContentPane().setLayout(null); diff --git a/src/com/qy/ui/ChuanShanJiaUi.java b/src/com/qy/ui/ChuanShanJiaUi.java index ee8277f..b67238d 100644 --- a/src/com/qy/ui/ChuanShanJiaUi.java +++ b/src/com/qy/ui/ChuanShanJiaUi.java @@ -83,7 +83,6 @@ public class ChuanShanJiaUi { JFrame frame = new JFrame("穿山甲资源包生成v1.0"); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.setContentPane(new ChuanShanJiaUi().mainPanel); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setSize(420,400); frame.setVisible(true); @@ -98,7 +97,6 @@ public class ChuanShanJiaUi { JFrame frame = new JFrame("穿山甲资源包生成v1.0"); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.setContentPane(new ChuanShanJiaUi().mainPanel); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setSize(420,400); frame.setVisible(true); diff --git a/src/com/qy/ui/ModifySdkUi.java b/src/com/qy/ui/ModifySdkUi.java index d80bec7..b751cb9 100644 --- a/src/com/qy/ui/ModifySdkUi.java +++ b/src/com/qy/ui/ModifySdkUi.java @@ -14,6 +14,7 @@ import javax.swing.JList; import java.io.File; import java.io.UnsupportedEncodingException; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import java.util.Vector; @@ -124,12 +125,9 @@ public class ModifySdkUi extends JFrame{ Vector vector = new Vector<>(); for (int i = 0; i < json.getJSONArray("array").length(); i++) { try { - vector.add(new String(json.getJSONArray("array").getJSONObject(i).getString("title").getBytes(),"UTF-8")); + vector.add(json.getJSONArray("array").getJSONObject(i).getString("title")); userEncrypt.put(i , !json.getJSONArray("array").getJSONObject(i).getBoolean("isJarLib")); - } catch (UnsupportedEncodingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace();