求精通java界面设计大神推荐java.swing设计的书籍 控件的美观性设计,一般都是都是通过UI的改变来达到效果,而这种改变大体上分为边框调整、区域着色、展现方式等。个人觉得,说穿了也就是控制绘制过程,像paint方法,JAVA 2D Graphics这本书你可以看看,有很大的参考意义。
十万火急!求高手帮忙设计一个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 swing组件设计如下图像界面程序 import java.awt.event.MouseEvent;import java.awt.event.MouseListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPasswordField;import javax.swing.JTextField;public class test extends JFrame {public static void main(String[]args){test test=new test();}private JButton submit,cancel;private JLabel password,username,info;private JTextField textusername;private JPasswordField textpassword;public test(){super(\"login\");super.setSize(300,200);super.setVisible(true);super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);this.setLocationRelativeTo(null);this.init();this.addinfo();this.setLayout(null);this.repaint();}初始化界面void init(){username=new JLabel(\"用户名:\");username.setBounds(10,10,80,20);this.add(username);textusername=new JTextField();textusername.setBounds(90,10,150,20);this.add(textusername);password=new JLabel(\"密码:\");password.setBounds(10,40,80,20);this.add(password);textpassword=new JPasswordField();。
java Swing 高手进!看看这个界面怎么设计 import java.awt.*;import javax.swing.*;public class T{JFrame frame;JLabel label1;JLabel label2;JLabel label3;JLabel label4;JButton btn;JTextField jtf1;JTextField jtf2;JTextField jtf3;JTextField jtf4;public T(){frame=new JFrame();frame.setLayout(new FlowLayout());JPanel total=new JPanel();total.setLayout(new BorderLayout());JPanel top=new JPanel();top.setLayout(new GridLayout(3,2,10,10));label1=new JLabel(\"请输入XX:\");jtf1=new JTextField(6);label2=new JLabel(\"请输入XX:\");jtf2=new JTextField(6);label3=new JLabel(\"数值范围:\");JPanel min=new JPanel();jtf3=new JTextField(2);label4=new JLabel(\"~\");jtf4=new JTextField(2);btn=new JButton(\"提交\");JPanel bottom=new JPanel();bottom.add(btn);min.add(jtf3);min.add(label4);min.add(jtf4);top.add(label1);top.add(jtf1);top.add(label2);top.add(jtf2);top.add(label3);top.add(min);total.add(top,\"Center\");total.add(bottom,\"South\");frame.add(total);frame.setSize(330,250);frame.setDefaultCloseOperation(3);frame.setVisible(true);}public static 。
Java swing 界面设计 打酱油的别来~~~ import java.awt.event.ComponentEvent;import java.awt.event.ComponentListener;import javax.swing.JFrame;import javax.swing.JMenu;import javax.swing.JMenuBar;。
java swing 界面设计 import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.awt.geom.AffineTransform;import java.util.ArrayList;import java.util.HashMap;A JTabbedPane which has a close('X')icon on each tab.To add a tab,use themethod addTab(String,Component)To have an extra icon on each tab(e.g.likein JBuilder,showing the file type)use the method addTab(String,Component,Icon).Only clicking the 'X' closes the tab.public class ClosedTabPanel extends JTabbedPane implements MouseListener {private double scaleRatio=0.3;private HashMap,Component>;maps=new HashMap,Component>;();public ClosedTabPanel(){super();addMouseListener(this);}public static void main(String args[]){try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());} catch(Exception e){e.printStackTrace();}ClosedTabPanel pane=new ClosedTabPanel();ImageIcon icon=new ImageIcon(\".\\\\Icons\\\\home.jpg\");ImageIcon icon=null;pane.addTab(\"tab1\",new JButton(\"first Button\"),icon);pane.addTab(\"tab2\",new JButton(\"sec 。
java中用Swing设计多文本输入框界面的方法 我给你个建议,你可以用选项卡的方式来实现,你把所有的参数分类,按照类别去建立相关的选项卡,在选项卡里面去加载你相应的参数输入对象(text)
java swing图形界面 用JTextArea;也可以把标签内的文本写成HTML文本 如:label=new JLabel(\"<;html>;第1行第2行<;/html>;\");