UI完成
This commit is contained in:
parent
f3809c5719
commit
9b110d92d1
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Created by JFormDesigner on Mon Mar 03 15:09:50 CST 2025
|
||||
* Created by JFormDesigner on Mon Mar 03 22:18:15 CST 2025
|
||||
*/
|
||||
|
||||
package gui.LenheartUI;
|
||||
package gui.UI_LenheartUI;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
|
@ -10,23 +10,17 @@ import javax.swing.*;
|
|||
/**
|
||||
* @author dongj
|
||||
*/
|
||||
public class LenheartUI extends JPanel {
|
||||
public LenheartUI() {
|
||||
public class DamageControl extends JPanel {
|
||||
public DamageControl() {
|
||||
initComponents();
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off
|
||||
textField1 = new JTextField();
|
||||
|
||||
//======== this ========
|
||||
setLayout(null);
|
||||
|
||||
//---- textField1 ----
|
||||
textField1.setText("\u6d4b\u8bd5\u6587\u672c");
|
||||
add(textField1);
|
||||
textField1.setBounds(95, 100, 255, 135);
|
||||
|
||||
{
|
||||
// compute preferred size
|
||||
Dimension preferredSize = new Dimension();
|
||||
|
|
@ -45,6 +39,5 @@ public class LenheartUI extends JPanel {
|
|||
}
|
||||
|
||||
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off
|
||||
private JTextField textField1;
|
||||
// JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on
|
||||
}
|
||||
|
|
@ -5,15 +5,6 @@ new FormModel {
|
|||
root: new FormRoot {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jformdesigner.runtime.NullLayout ) ) {
|
||||
name: "this"
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField1"
|
||||
"text": "测试文本"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 95
|
||||
"y": 100
|
||||
"width": 255
|
||||
"height": 135
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
"size": new java.awt.Dimension( 400, 300 )
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Created by JFormDesigner on Mon Mar 03 20:47:31 CST 2025
|
||||
*/
|
||||
|
||||
package gui.UI_LenheartUI;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author dongj
|
||||
*/
|
||||
public class ItemRecovery extends JPanel {
|
||||
public ItemRecovery() {
|
||||
initComponents();
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off
|
||||
|
||||
//======== this ========
|
||||
setLayout(null);
|
||||
|
||||
{
|
||||
// compute preferred size
|
||||
Dimension preferredSize = new Dimension();
|
||||
for(int i = 0; i < getComponentCount(); i++) {
|
||||
Rectangle bounds = getComponent(i).getBounds();
|
||||
preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
|
||||
preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
|
||||
}
|
||||
Insets insets = getInsets();
|
||||
preferredSize.width += insets.right;
|
||||
preferredSize.height += insets.bottom;
|
||||
setMinimumSize(preferredSize);
|
||||
setPreferredSize(preferredSize);
|
||||
}
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents @formatter:on
|
||||
}
|
||||
|
||||
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off
|
||||
// JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
JFDML JFormDesigner: "9.0.0.0.352" Java: "21.0.6" encoding: "UTF-8"
|
||||
|
||||
new FormModel {
|
||||
contentType: "form/swing"
|
||||
root: new FormRoot {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jformdesigner.runtime.NullLayout ) ) {
|
||||
name: "this"
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
"size": new java.awt.Dimension( 400, 300 )
|
||||
} )
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package gui.UI_LenheartUI;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class LenheartUI {
|
||||
|
||||
public LenheartUI(JTabbedPane mainComponent) {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue