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.
Ïà¹ØÎÊ´ð£º
private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl"; private static final String USERNAME = "sys"; private static final String PASSWORD = "s ......
ÎÒÐèÒªÔÚÒ»¸öforÑ»·ÀïÃæÿѻ·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл! ÆÚ´ýºÃµÄ·½·¨£¡ ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË
......
Ïë×öÒ»¸öjspµÄµç×ÓÉÌÎñÍøÕ¾£¬ÏëÕÒһЩԴ´úÂ룬ÇëÎÊÄǸöÍøÕ¾ÓкõÄ×ÊÔ´¡£Ð»Ð»£¡ ËÑË÷Ï塃 ¿ªÔ´µÄÒ²ÓÐ csdn¾ÍÓÐÏàËƵÄÔ´Â룬¥Ö÷ËÑһϠjava ¿ªÔ´´óÈ« ¸ÄÄ£°åºÃÂ鷳Ŷ£¬»¹²»Èç×Ô¼ºÐ´¸öÁËÄØ jf ¶¥Ò» ......
ÄÄλÀÏ´óÓбȽϺõķÖÒ³¿Ø¼þ»òÕß´úÂë! ÒªÇó ¿ÉÒÔÏÔʾ×ÜÒ³Êý.»ù±¾µÄÉÏÏ·ҳ. Êý¾Ý¿âΪOracle ±íÊý¾ÝÁ¿ÓÐ300Íò×óÓÒ ËùÒÔÏÖÔÚÎҵķÖҳЧÂÊÌ«ÂýÁË. Ï£ÍûÀÏ´óÃÇÄÜÌṩ¸ü¿ ......
ÏÈÉÏ´íÎó ÎÞ·¨Áª½ÓÊý¾Ý¿â 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: ......