ZKX's LAB

swing 界面设计 java Swing 高手进!看看这个界面怎么设计

2020-10-03知识17

十万火急!求高手帮忙设计一个java的Swing界面 import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPasswordField;import javax.swing.JTextField;public class Login {public static void main(String args[]){LoginFrm frame=new LoginFrm();}}class LoginFrm extends JFrame implements ActionListener{JLabel nameLabel=new JLabel(\"用户名:\");JLabel pwdLabel=new JLabel(\"密码:\");JTextField name=new JTextField(10);JPasswordField password=new JPasswordField(10);JButton butnSure=new JButton(\"确定\");JButton butnCancel=new JButton(\"取消\");public LoginFrm(){super(\"登陆\");setBounds(500,200,280,220);setResizable(false);setVisible(true);setLayout(null);nameLabel.setBounds(45,20,100,25);add(nameLabel);add(name);name.setBounds(105,20,110,25);add(pwdLabel);pwdLabel.setBounds(45,60,100,25);add(password);password.setBounds(105,60,110,25);add(butnSure);butnSure.setBounds(45。

求精通java界面设计大神推荐java.swing设计的书籍 控件的美观性设计,一般都是都是通过UI的改变来达到效果,而这种改变大体上分为边框调整、区域着色、展现方式等。个人觉得,说穿了也就是控制绘制过程,像paint方法,JAVA 2D Graphics这本书你可以看看,有很大的参考意义。

求大侠帮忙设计一下swing界面,界面如图: import java.awt.BorderLayout;import java.awt.Color;import java.awt.FlowLayout;import java.awt.Font;import java.awt.GridLayout;import javax.swing.BorderFactory;import javax.swing.BoxLayout;import javax.swing.ButtonGroup;import javax.swing.DefaultComboBoxModel;import javax.swing.JButton;import javax.swing.JComboBox;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JRadioButton;import javax.swing.JSplitPane;import javax.swing.JTextArea;import javax.swing.JTextField;import javax.swing.UIManager;import javax.swing.UnsupportedLookAndFeelException;import javax.swing.border.Border;import javax.swing.border.TitledBorder;public class SetRemindFrame extends JPanel {private static final long serialVersionUID=-130405182451293343L;ButtonGroup firstBg;JRadioButton singleJrb,weekJrb;Border lineBorder;JLabel titleJl;JTextArea titleJta;JLabel timeJl;JComboBox timeJcb;Border modeBorder;ButtonGroup secondBg;JRadioButton byHourJrb,byDayJrb,byWeekJrb,。

#界面设计#swing#swing布局

随机阅读

qrcode
访问手机版