diff --git a/src/gui/UI_LenheartUI/DropTips.java b/src/gui/UI_LenheartUI/DropTips.java index 4fbd292..dfa01d6 100644 --- a/src/gui/UI_LenheartUI/DropTips.java +++ b/src/gui/UI_LenheartUI/DropTips.java @@ -156,26 +156,26 @@ public class DropTips extends JPanel { button1.setText("\u65b0\u589e"); button1.addActionListener(e -> 新增(e)); add(button1); - button1.setBounds(225, 465, 95, 35); + button1.setBounds(275, 465, 95, 35); add(textField1); - textField1.setBounds(115, 465, 110, 35); + textField1.setBounds(75, 465, 110, 35); //---- label1 ---- label1.setText("\u9053\u5177ID"); add(label1); - label1.setBounds(45, 465, 110, 35); + label1.setBounds(25, 465, 110, 35); //---- button2 ---- button2.setText("\u5220\u9664"); button2.addActionListener(e -> 删除(e)); add(button2); - button2.setBounds(350, 465, 95, 35); + button2.setBounds(385, 465, 95, 35); //---- button3 ---- button3.setText("\u4fdd\u5b58\u914d\u7f6e"); button3.addActionListener(e -> 保存配置(e)); add(button3); - button3.setBounds(335, 505, 130, 55); + button3.setBounds(350, 520, 130, 35); add(textField2); textField2.setBounds(505, 55, 575, 160); @@ -214,12 +214,12 @@ public class DropTips extends JPanel { add(button8); button8.setBounds(990, 225, 85, 34); add(textField3); - textField3.setBounds(95, 510, 240, 70); + textField3.setBounds(80, 520, 240, 35); //---- label3 ---- label3.setText("\u64ad\u62a5\u5185\u5bb9"); add(label3); - label3.setBounds(new Rectangle(new Point(45, 530), label3.getPreferredSize())); + label3.setBounds(new Rectangle(new Point(25, 530), label3.getPreferredSize())); { // compute preferred size diff --git a/src/gui/UI_LenheartUI/DropTips.jfd b/src/gui/UI_LenheartUI/DropTips.jfd index 1c8a4b5..418d37e 100644 --- a/src/gui/UI_LenheartUI/DropTips.jfd +++ b/src/gui/UI_LenheartUI/DropTips.jfd @@ -47,7 +47,7 @@ new FormModel { "text": "新增" addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增", true ) ) }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 225 + "x": 275 "y": 465 "width": 95 "height": 35 @@ -55,7 +55,7 @@ new FormModel { add( new FormComponent( "javax.swing.JTextField" ) { name: "textField1" }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 115 + "x": 75 "y": 465 "width": 110 "height": 35 @@ -64,7 +64,7 @@ new FormModel { name: "label1" "text": "道具ID" }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 45 + "x": 25 "y": 465 "width": 110 "height": 35 @@ -74,7 +74,7 @@ new FormModel { "text": "删除" addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除", true ) ) }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 350 + "x": 385 "y": 465 "width": 95 "height": 35 @@ -84,10 +84,10 @@ new FormModel { "text": "保存配置" addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) ) }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 335 - "y": 505 + "x": 350 + "y": 520 "width": 130 - "height": 55 + "height": 35 } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField2" @@ -158,16 +158,16 @@ new FormModel { add( new FormComponent( "javax.swing.JTextField" ) { name: "textField3" }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 95 - "y": 510 + "x": 80 + "y": 520 "width": 240 - "height": 70 + "height": 35 } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label3" "text": "播报内容" }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { - "x": 45 + "x": 25 "y": 530 } ) }, new FormLayoutConstraints( null ) { diff --git a/src/gui/UI_LenheartUI/WorldBoss.java b/src/gui/UI_LenheartUI/WorldBoss.java index 1ef3c1a..61754f5 100644 --- a/src/gui/UI_LenheartUI/WorldBoss.java +++ b/src/gui/UI_LenheartUI/WorldBoss.java @@ -46,12 +46,12 @@ public class WorldBoss extends JPanel { int rowCount = tableModel.getRowCount(); Start.野外boss刷新.clear(); for (int i = 0; i < rowCount; i++) { - BossInMap bossInMap = new BossInMap((int) tableModel.getValueAt(i, 0), - (int) tableModel.getValueAt(i, 2), - (int) tableModel.getValueAt(i, 3), - (int) tableModel.getValueAt(i, 4), + BossInMap bossInMap = new BossInMap(Integer.parseInt(tableModel.getValueAt(i, 0).toString()), + Integer.parseInt(tableModel.getValueAt(i, 2).toString()), + Integer.parseInt(tableModel.getValueAt(i, 3).toString()), + Integer.parseInt(tableModel.getValueAt(i, 4).toString()), tableModel.getValueAt(i, 5).toString(), - (int) tableModel.getValueAt(i, 6)); + Integer.parseInt(tableModel.getValueAt(i, 6).toString())); bossInMap.setBosshp(tableModel.getValueAt(i, 1).toString()); Start.野外boss刷新.add(bossInMap); }