Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java Swing·ÂQQµÇ¼½çÃæ ѧϰ֮ÓÃ

ÏÐÀ´ÎÞʽ«ÔçЩʱºòÒÑʵÏÖµÄQQµÇ¼½çÃæÔÙʵÏÖÁËÒ»±é£¬´¿ÊÖ¹¤´òÔ죨Òâ˼ÊÇûÓÐÓÃNetBeans¡¢MyEclipseµÄÍ϶¯¹¦ÄÜ£©¡£
Ô´´úÂëÈçÏ£º
 package ibees.qq;
import java.awt.BorderLayout;
import java.net.URL;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
/**
* ·ÂQQµÇ¼½çÃ棬½ö¹©Ñ§Ï°²Î¿¼£¬Éæ¼°µ½µÄÓд°¿Ú¾ÓÖС¢JPanel¡¢LayoutManagerµÄʹÓÃ
* @author hhzxj2008
* */
public class QQLoginView extends JFrame {
/**
*
*/
private static final long serialVersionUID = -5665975170821790753L;
public QQLoginView() {
initComponent();
}

private void initComponent() {
setTitle("Óû§µÇ¼");
//ÉèÖÃLOGO
URL image = QQLoginView.class.getClassLoader().getResource("ibees/qq/images/year.jpg");//ͼƬµÄλÖÃ
JLabel imageLogo = new JLabel(new ImageIcon(image));
add(imageLogo,BorderLayout.NORTH);

//QQºÅºÍÃÜÂë
JPanel jp = new JPanel();
JPanel jpAccount = new JPanel();
jpAccount.add(new JLabel("ÕʺÅ"));
JTextField userTextField = new JTextField(15);
jpAccount.add(userTextField);
jpAccount.add(new JLabel("Óû§×¢²á"));
jp.add(jpAccount);

JPanel jpPass = new JPanel();
jpPass.add(new JLabel("ÃÜÂë"));
JPasswordField passTextField = new JPasswordField(15);
jpPass.add(passTextField);
jpPass.add(new JLabel("ÕÒ»ØÃÜÂë"));
jp.add(jpPass);

//µÇ¼ÉèÖÃ
JPanel jpstatus = new JPanel();
jpstatus.add(new JLabel("״̬"));
JComboBox statusComboBox = new JComboBox();
statusComboBox.addItem("QÎÒ");
statusComboBox.addItem("ÔÚÏß");
statusComboBox.addItem("ÒþÉí");
statusComboBox.addItem("ÀëÏß");
jpstatus.add(statusComboBox);
jpstatus.add(new JCheckBox("¼ÇסÃÜÂë"));
jpstatus.add(new JCheckBox("×Ô¶¯µÇ¼"));
jp.add(jpstatus);
add(jp);

//µ×²¿µÇ¼°´Å¥
JPanel bottomPane


Ïà¹ØÎĵµ£º

java½ðÈÚÓëÊýѧ

 
1¡¢commons-math/commons-lang-math
ÒÔÉÏÁ½¸ö°üÊÇapacheϵģ¬Ç°Õ߱ȺóÕߵŦÄÜÇ¿´ó£¬ºóÕßÓеŦÄÜÇ°¶¼ÓУ¬ºóÕßÖ÷Òª½â¾öƽʱ³ÌÐòÖеÄһЩ»ù±¾µÄÊýѧ¼ÆË㣬Ö÷ÒªÊÇ·¶Î§Åжϣ¨*Range£©,Ëæ»úÊýÉú³É£¨JVMRandom,RandomUtils£©£¬·ÖÊý´¦Àí£¨Fraction£©£¬Êý×Öת»¯¡¢´óСÅжϣ¨NumberUtils£©µÈ¡£Ç°Õß¿ÉÒÔ´¦Àí¸ü¸´ÔÓµÄÊý¾Ý·Ö ......

¹ØÓÚjavaµÄhashCode·½·¨

JavaÖеļ¯ºÏ£¨Collection£©ÓÐÁ½À࣬һÀàÊÇList£¬ÔÙÓÐÒ»ÀàÊÇSet¡£ÄãÖªµÀËüÃǵÄÇø±ðÂð£¿Ç°Õß¼¯ºÏÄÚµÄÔªËØÊÇÓÐÐòµÄ£¬ÔªËØ¿ÉÒÔÖظ´£»ºó
ÕßÔªËØÎÞÐò£¬µ«ÔªËز»¿ÉÖظ´¡£ÄÇôÕâÀï¾ÍÓÐÒ»¸ö±È½ÏÑÏÖصÄÎÊÌâÁË£ºÒªÏë±£Ö¤ÔªËز»Öظ´£¬¿ÉÁ½¸öÔªËØÊÇ·ñÖظ´Ó¦¸ÃÒÀ¾ÝʲôÀ´ÅжÏÄØ£¿Õâ¾ÍÊÇ
Object.equals·½·¨ÁË¡£µ«ÊÇ£¬Èç¹ûÿÔö¼ÓÒ»¸öÔªËØ ......

JAVAÖеÄÔËËã·û

£¨
1
£©
+=
:sum += 1;
Ï൱ÓÚ
sum = sum + 1;
£¨
2
£©
++ --
:i++ i
¼Ó
1, i-- i
¼õ
1, ++
»ò

·ÅÔÚÊýÖµºó£¬±íʾִÐÐÔËËãºó¼Ó£¨¼õ£©
1
£¬·´ÕýÊýֵǰ±íʾִÐÐÔËËãÇ°¼Ó£¨¼õ£©
1
£¨
3
£©

: :
int n = a<10?1:2
±íʾÈç¹û
a
СÓÚ
10
Ôò
n
µÈÓÚ
1
·ñÔòµÈÓÚ
2
£¨
4
......

JavaµÄʱ¼ä´¦Àí(Ðø)

¸ÅÊö
Èç¹ûÄãÖªµÀÔõÑùÔÚjavaÖÐʹÓÃÈÕÆÚ£¬ÄÇôʹÓÃʱ¼äºÍËü²Å²»¶àÒ»Ñù¼òµ¥¡£ÕâƪÎÄÕ¸æËßÄãÔõÑù°ÑËûÃǵIJî±ðÁªÏµÆðÀ´¡£Robert Nielsen»¹¸æËßÄãÔõÑùʹÓÃjavaÀ´¼ÆËãµÖ´ïº½°àºÍÖÆÔì¹ý³ÌµÄʱ¼ä¡£
×÷ÕߣºRobert Nielsen
·­Ò룺Cocia Lin
ÕâƪÎÄÕÂÊÇÔÚÎÒ·¢±í¹ýµÄ<¼ÆËãJavaʱ¼ä>(ÒëÕß:ÒѾ­·­ÒëÍê³É)µÄ»ù´¡Éϵġ£ÔÚÕâÀΠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ