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

java ÖÐswing ÎÊÌâ - Java / Java SE

ÎÒ¶¨ÒåÁËÒ»¸öJRadioButtonNanµÄµ¥Ñ¡°´Å¥£¬Èç¹ûÔÚÎÒÑ¡ÔñÁËÕâ¸ö°´Å¥ºóÏëµã»÷ÖØÖÃÈÃÕâ¸ö°´Å¥´¦ÓÚδѡÔñµÄ״̬¸ÃÔõô×öÄØ£¿Çë¸ßÊÖÖ¸½Ì
jRadioButton.setSelected(false);
²»ÖªµÀÄãÊÇʲôÒâ˼
Õâ¸öÊDz»Ñ¡Ôñ״̬ÁË

ÎÒÊÔÁ˲»ÐУ¬¾ÍÊÇ˵Èç¹ûµã»÷ÖØÖð´Å¥£¬¾ÍÈÃÕâ¸ö°´Å¥´¦ÓÚδѡÔñµÄ״̬¡£¡£

¼àÌýÖØÖð´Å¥£¬µ±·¢ÉúʼþʱִÐÐjRadioButton.setSelected(false); Õâ¸öÓï¾ä²»ÐÐô£¿

»¹ÊDz»Ðа¡ 
¾ÍÊÇÕâÑùдµÄÎÒ

ÒýÓÃ
»¹ÊDz»Ðа¡
¾ÍÊÇÕâÑùдµÄÎÒ


ÄǾÍÆæ¹ÖÁË,ûÓбðµÄ·½·¨°¡.
ÄãÖØ»æÏÂÃæ°åÊÔÊÔ
jPanel.repaint();
jPanel.revalidate();
ÖØÖúóÖØ»æÏÂ

ÎÒ¿´¿´°¡

ÒýÓÃ
ÒýÓà 4 Â¥ clppcl µÄ»Ø¸´:
»¹ÊDz»Ðа¡
¾ÍÊÇÕâÑùдµÄÎÒ


ÄǾÍÆæ¹ÖÁË,ûÓбðµÄ·½·¨°¡.
ÄãÖØ»æÏÂÃæ°åÊÔÊÔ
jPanel.repaint();
jPanel.revalidate();
ÖØÖúóÖØ»æÏÂ

¾ÍÊDz»Ðа¡ ÖØ»æºóÒ²²»Ðа¡¸ÃÔõô×öÄØ

ÎÒ¸Õ¸ÕÒ²ÊÔ¹ýÁË,
²»ÓÃÖØ»æµÄ,
²»ÊÇÃæ°å±ä»¯²»ÓÃÖØ»æ.
jRadioButton.setSelected(false); 
¾ÍÕâÒ»Ìõ¾ÍOKÁË.
ÄãÔٺúÿ´¿´ÄãµÄ³ÌÐò,
ÊDz»ÊDZðµÄµØ·½µÄÎÊÌâ

Äã°ÑÎÒÕâ´úÂëÔËÐÐÏ¿´¿´»á²»»áÇå³ý¡£¹ÖÊ¡£¡£¡£ÓÃswing²å¼þÉú³ÉµÄ¡£Óкܶà´úÂëÄã²»Òª¹Ü¡£Ö»Òª¿´Õ⼸¾ä¾ÍOKÁË¡£;
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1.setSelected(false);
}

Java code



Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.


Ïà¹ØÎÊ´ð£º

javaÔõôÁ¬½ÓOracle£¬¼±°¡ - Java / JavaÏà¹Ø

private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";
private static final String USERNAME = "sys";
private static final String PASSWORD = "s ......

ÈÃjava³ÌÐòÔÚÖ´Ðйý³ÌÖÐÔÝÍ£nÃëÖÓ. - Java / Web ¿ª·¢

ÎÒÐèÒªÔÚÒ»¸öforÑ­»·ÀïÃæÿѭ»·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ­»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл!
ÆÚ´ýºÃµÄ·½·¨£¡

ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË
......

Çójspµç×ÓÉÌÎñÍøÕ¾Ô´Âë - Java / Web ¿ª·¢

Ïë×öÒ»¸öjspµÄµç×ÓÉÌÎñÍøÕ¾£¬ÏëÕÒһЩԴ´úÂ룬ÇëÎÊÄǸöÍøÕ¾ÓкõÄ×ÊÔ´¡£Ð»Ð»£¡
ËÑË÷Ï塃 ¿ªÔ´µÄÒ²ÓÐ

csdn¾ÍÓÐÏàËƵÄÔ´Â룬¥Ö÷ËÑÒ»ÏÂ

java ¿ªÔ´´óÈ«


¸ÄÄ£°åºÃÂ鷳Ŷ£¬»¹²»Èç×Ô¼ºÐ´¸öÁËÄØ

jf

¶¥Ò» ......

ÇóJava·ÖÒ³µÄ¿Ø¼þ»òÕß´úÂë - Java / Java EE

ÄÄλÀÏ´óÓбȽϺõķÖÒ³¿Ø¼þ»òÕß´úÂë!
  ÒªÇó ¿ÉÒÔÏÔʾ×ÜÒ³Êý.»ù±¾µÄÉÏÏ·­Ò³.
  Êý¾Ý¿âΪOracle
  ±íÊý¾ÝÁ¿ÓÐ300Íò×óÓÒ ËùÒÔÏÖÔÚÎҵķÖҳЧÂÊÌ«ÂýÁË.
  Ï£ÍûÀÏ´óÃÇÄÜÌṩ¸ü¿ ......

eclipseÁ¬½ÓmysqlÊý¾Ý¿â - Java / Eclipse

ÏÈÉÏ´íÎó
ÎÞ·¨Áª½ÓÊý¾Ý¿â
java.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ