/*
 * Created by JFormDesigner on Mon Mar 03 15:09:50 CST 2025
 */

package gui.LenheartUI;

import java.awt.*;
import javax.swing.*;

/**
 * @author dongj
 */
public class LenheartUI extends JPanel {
    public LenheartUI() {
        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();
            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
    private JTextField textField1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
