修复乱码问题
修复关闭穿山甲工具会关闭整个程序的问题
This commit is contained in:
parent
520ea8cff4
commit
7f0236370b
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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<String> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user