//包含密码框,登陆按钮
import java.awt.BorderLayout;
public class Land extends JFrame {
private JPanel contentPane;
private JTextField textField;
private JPasswordField passwordField;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Land frame = new Land();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public Land() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBackground(Color.WHITE);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
textField = new JTextField();
textField.setBackground(new Color(70, 130, 180));
textField.setFont(new Font("楷体", Font.PLAIN, 20));
textField.
简易商品购物系统登陆界面
最新推荐文章于 2020-08-03 12:00:07 发布
本文介绍如何创建一个基本的商品购物系统的登录界面。通过利用HTML、CSS和JavaScript技术,实现用户输入验证和交互效果,为用户提供友好的用户体验。
摘要由CSDN通过智能技术生成