no message

This commit is contained in:
Lenheart 2025-05-27 21:37:53 +08:00
parent bdc4925951
commit 435dec6dca
3 changed files with 23 additions and 23 deletions

View File

@ -156,26 +156,26 @@ public class DropTips extends JPanel {
button1.setText("\u65b0\u589e"); button1.setText("\u65b0\u589e");
button1.addActionListener(e -> 新增(e)); button1.addActionListener(e -> 新增(e));
add(button1); add(button1);
button1.setBounds(225, 465, 95, 35); button1.setBounds(275, 465, 95, 35);
add(textField1); add(textField1);
textField1.setBounds(115, 465, 110, 35); textField1.setBounds(75, 465, 110, 35);
//---- label1 ---- //---- label1 ----
label1.setText("\u9053\u5177ID"); label1.setText("\u9053\u5177ID");
add(label1); add(label1);
label1.setBounds(45, 465, 110, 35); label1.setBounds(25, 465, 110, 35);
//---- button2 ---- //---- button2 ----
button2.setText("\u5220\u9664"); button2.setText("\u5220\u9664");
button2.addActionListener(e -> 删除(e)); button2.addActionListener(e -> 删除(e));
add(button2); add(button2);
button2.setBounds(350, 465, 95, 35); button2.setBounds(385, 465, 95, 35);
//---- button3 ---- //---- button3 ----
button3.setText("\u4fdd\u5b58\u914d\u7f6e"); button3.setText("\u4fdd\u5b58\u914d\u7f6e");
button3.addActionListener(e -> 保存配置(e)); button3.addActionListener(e -> 保存配置(e));
add(button3); add(button3);
button3.setBounds(335, 505, 130, 55); button3.setBounds(350, 520, 130, 35);
add(textField2); add(textField2);
textField2.setBounds(505, 55, 575, 160); textField2.setBounds(505, 55, 575, 160);
@ -214,12 +214,12 @@ public class DropTips extends JPanel {
add(button8); add(button8);
button8.setBounds(990, 225, 85, 34); button8.setBounds(990, 225, 85, 34);
add(textField3); add(textField3);
textField3.setBounds(95, 510, 240, 70); textField3.setBounds(80, 520, 240, 35);
//---- label3 ---- //---- label3 ----
label3.setText("\u64ad\u62a5\u5185\u5bb9"); label3.setText("\u64ad\u62a5\u5185\u5bb9");
add(label3); 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 // compute preferred size

View File

@ -47,7 +47,7 @@ new FormModel {
"text": "新增" "text": "新增"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增", true ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增", true ) )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 225 "x": 275
"y": 465 "y": 465
"width": 95 "width": 95
"height": 35 "height": 35
@ -55,7 +55,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField1" name: "textField1"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 115 "x": 75
"y": 465 "y": 465
"width": 110 "width": 110
"height": 35 "height": 35
@ -64,7 +64,7 @@ new FormModel {
name: "label1" name: "label1"
"text": "道具ID" "text": "道具ID"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 45 "x": 25
"y": 465 "y": 465
"width": 110 "width": 110
"height": 35 "height": 35
@ -74,7 +74,7 @@ new FormModel {
"text": "删除" "text": "删除"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除", true ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除", true ) )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 350 "x": 385
"y": 465 "y": 465
"width": 95 "width": 95
"height": 35 "height": 35
@ -84,10 +84,10 @@ new FormModel {
"text": "保存配置" "text": "保存配置"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 335 "x": 350
"y": 505 "y": 520
"width": 130 "width": 130
"height": 55 "height": 35
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField2" name: "textField2"
@ -158,16 +158,16 @@ new FormModel {
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField3" name: "textField3"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 95 "x": 80
"y": 510 "y": 520
"width": 240 "width": 240
"height": 70 "height": 35
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "label3" name: "label3"
"text": "播报内容" "text": "播报内容"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
"x": 45 "x": 25
"y": 530 "y": 530
} ) } )
}, new FormLayoutConstraints( null ) { }, new FormLayoutConstraints( null ) {

View File

@ -46,12 +46,12 @@ public class WorldBoss extends JPanel {
int rowCount = tableModel.getRowCount(); int rowCount = tableModel.getRowCount();
Start.野外boss刷新.clear(); Start.野外boss刷新.clear();
for (int i = 0; i < rowCount; i++) { for (int i = 0; i < rowCount; i++) {
BossInMap bossInMap = new BossInMap((int) tableModel.getValueAt(i, 0), BossInMap bossInMap = new BossInMap(Integer.parseInt(tableModel.getValueAt(i, 0).toString()),
(int) tableModel.getValueAt(i, 2), Integer.parseInt(tableModel.getValueAt(i, 2).toString()),
(int) tableModel.getValueAt(i, 3), Integer.parseInt(tableModel.getValueAt(i, 3).toString()),
(int) tableModel.getValueAt(i, 4), Integer.parseInt(tableModel.getValueAt(i, 4).toString()),
tableModel.getValueAt(i, 5).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()); bossInMap.setBosshp(tableModel.getValueAt(i, 1).toString());
Start.野外boss刷新.add(bossInMap); Start.野外boss刷新.add(bossInMap);
} }