From 7f0236370bdf710c798dde09773280d93740ea7b Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 28 Feb 2020 14:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B9=B1=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E7=A9=BF?= =?UTF-8?q?=E5=B1=B1=E7=94=B2=E5=B7=A5=E5=85=B7=E4=BC=9A=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=95=B4=E4=B8=AA=E7=A8=8B=E5=BA=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/qy/ui/AppMain.java | 2 +- src/com/qy/ui/ChuanShanJiaUi.java | 2 -- src/com/qy/ui/ModifySdkUi.java | 6 ++---- 3 files changed, 3 insertions(+), 7 deletions(-) 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();