锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日本不卡免费一区,亚洲欧洲综合,中文字幕欧美激情http://www.aygfsteel.com/lyj/archive/2008/01/21/176253.html鎬諱篃鐫′笉閱?/dc:creator>鎬諱篃鐫′笉閱?/author>Mon, 21 Jan 2008 01:41:00 GMThttp://www.aygfsteel.com/lyj/archive/2008/01/21/176253.htmlhttp://www.aygfsteel.com/lyj/comments/176253.htmlhttp://www.aygfsteel.com/lyj/archive/2008/01/21/176253.html#Feedback0http://www.aygfsteel.com/lyj/comments/commentRss/176253.htmlhttp://www.aygfsteel.com/lyj/services/trackbacks/176253.html
javax.accessibility 瀹氫箟浜嗙敤鎴風晫闈㈢粍浠朵笌鎻愪緵瀵硅繖浜涚粍浠惰繘琛岃闂殑杈呭姪鎶鏈箣闂寸殑鍗忓畾銆?/td>
javax.swing 鎻愪緵涓緇?#8220;杞婚噺綰?#8221;錛堝叏閮ㄦ槸 Java 璇█錛夌粍浠訛紝灝介噺璁╄繖浜涚粍浠跺湪鎵鏈夊鉤鍙頒笂鐨勫伐浣滄柟寮忛兘鐩稿悓銆?/td>
javax.swing.border 鎻愪緵鍥寸粫 Swing 緇勪歡緇樺埗鐗規畩杈規鐨勭被鍜屾帴鍙c?/td>
javax.swing.colorchooser 鍖呭惈渚?JColorChooser 緇勪歡浣跨敤鐨勭被鍜屾帴鍙c?/td>
javax.swing.event 渚?Swing 緇勪歡瑙﹀彂鐨勪簨浠朵嬌鐢ㄣ?/td>
javax.swing.filechooser 鍖呭惈 JFileChooser 緇勪歡浣跨敤鐨勭被鍜屾帴鍙c?/td>
javax.swing.plaf 鎻愪緵涓涓帴鍙e拰璁稿鎶借薄綾伙紝Swing 鐢ㄥ畠浠潵鎻愪緵鑷繁鐨勫彲鎻掑叆澶栬鍔熻兘銆?/td>
javax.swing.plaf.basic 鎻愪緵浜嗘牴鎹熀鏈瑙傛瀯寤虹殑鐢ㄦ埛鐣岄潰瀵硅薄銆?/td>
javax.swing.plaf.metal 鎻愪緵鏍規嵁 Java 澶栬錛堟浘緇忎唬縐頒負 Metal錛夋瀯寤虹殑鐢ㄦ埛鐣岄潰瀵硅薄錛孲wing 鐨勯粯璁ゅ瑙傘?/td>
javax.swing.plaf.multi 鎻愪緵浜嗙粍鍚堜袱涓垨澶氫釜澶栬鐨勭敤鎴風晫闈㈠璞°?/td>
javax.swing.plaf.synth Synth 鏄竴涓彲鏇存崲鐨偆 (skinnable) 鐨勫瑙傦紝鍦ㄥ叾涓彲濮旀墭鎵鏈夌粯鍒躲?/td>
javax.swing.table 鎻愪緵鐢ㄤ簬澶勭悊 javax.swing.JTable 鐨勭被鍜屾帴鍙c?/td>
javax.swing.text 鎻愪緵綾?DefaultEditorKit 鍜屽垱寤烘枃鏈紪杈戝櫒鐨勬敮鎸佺被銆?/td>
javax.swing.text.html 鎻愪緵綾?HTMLEditorKit 鍜屽垱寤?HTML 鏂囨湰緙栬緫鍣ㄧ殑鏀寔綾匯?/td>
javax.swing.text.html.parser 鎻愪緵榛樿鐨?HTML 瑙f瀽鍣ㄤ互鍙婃敮鎸佺被銆?/td>
javax.swing.text.rtf 鎻愪緵涓涓被 (RTFEditorKit)錛岀敤浜庡垱寤哄瘜鏂囨湰鏍煎紡錛圧ich-Text-Format錛夌殑鏂囨湰緙栬緫鍣ㄣ?/td>
javax.swing.tree 鎻愪緵澶勭悊 javax.swing.JTree 鐨勭被鍜屾帴鍙c?/td>
javax.swing.undo 涓哄簲鐢ㄧ▼搴忥紙渚嬪鏂囨湰緙栬緫鍣級涓殑鎾ゆ秷/鎭㈠鎻愪緵鏀寔銆?/td>

鍏朵腑濂藉閮戒笉甯哥敤錛屾渶甯哥敤灝辨槸榪欎袱涓細

  • javax.swing
  • javax.swing.event
涓嬮潰鐪嬩袱涓緥瀛愶紝浣滀負緙栫▼鏃剁殑鍙傝冦?br /> 渚嬬▼1.1 HelloWorldSwing.java
/*
 * HelloWorldSwing.java 涓嶉渶瑕佸叾浠栨枃浠?br />  
*/

import javax.swing.*;

public class HelloWorldSwing {
    
/**
     * 鍒涘緩GUI騫舵樉紺恒?br />      * 涓轟簡綰跨▼瀹夊叏錛岃繖涓柟娉曞簲璇ュ湪浜嬩歡璋冨害綰跨▼涓皟鐢ㄣ?br />      
*/

    
public static void createAndShowGUI() {
        
// 鍒涘緩紿楀彛錛屽茍璁劇疆鍏抽棴紿楀彛鍚庨鍑虹▼搴?/span>
        JFrame frame = new JFrame("HelloWorldSwing");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        
// 娣誨姞涓涓猯abel, label鍦⊿wing紼嬪簭涓殢澶勫彲瑙?/span>
        JLabel label = new JLabel("Hello World");
        frame.getContentPane().add(label);

        
// 鑷姩璋冩暣澶у皬騫舵樉紺虹獥鍙?/span>
        frame.pack();
        frame.setVisible(
true);
    }

    
public static void main(String[] args) {
        
// 璁╀簨浠惰皟搴︾嚎紼嬭皟鐢╟reateAndShowGUI() 
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            
public void run() {
                createAndShowGUI();
            }

        }
);
    }

}


渚嬬▼2.2 HelloWorldJFrame.java
/*
 * 榪欐槸涓涓狧elloWorldSwing鐨凧Frame鐗堟湰
 * 涓嶉渶瑕佸叾浠栨枃浠剁殑鏀寔
 
*/

import javax.swing.*;
import java.awt.event.*;

public class HelloWorldJFrame extends JFrame {
    
/**
     * 鍦ㄦ瀯閫犳柟娉曚腑鍒濆鍖栫粍浠?br />      
*/

    
public HelloWorldJFrame() {
        
// 璁劇疆鏍囬
        setTitle("HelloWorldJFrame");

        
// 娣誨姞label
        JLabel label = new JLabel();
        label.setText(
"Hello World");
        getContentPane().add(label);
    }


    
public static void main(String[] args) {

        
// 鍒涘緩紿椾綋騫惰緗叧闂獥鍙f椂閫鍑虹▼搴?br />         // 鍦℉elloWorldSwing涓敤浜?br />         //     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
        
// 榪欓噷鎹簡涓縐嶆柟娉?/span>
        HelloWorldJFrame frame = new HelloWorldJFrame();
        WindowListener l 
= new WindowAdapter() {
                
public void windowClosing(WindowEvent e) {
                    System.exit(
0);
                }

        }
;
        frame.addWindowListener(l);

        
// 鏄劇ず紿椾綋
        frame.pack();
        frame.setVisible(
true);
    }

}



]]>
鎻愰棶錛氫嬌鐢ㄦ灇涓劇殑綾諱腑涓轟綍浼氬嚭鐜頒竴涓尶鍚嶇被錛?/title><link>http://www.aygfsteel.com/lyj/archive/2007/08/07/135032.html</link><dc:creator>鎬諱篃鐫′笉閱?/dc:creator><author>鎬諱篃鐫′笉閱?/author><pubDate>Tue, 07 Aug 2007 11:03:00 GMT</pubDate><guid>http://www.aygfsteel.com/lyj/archive/2007/08/07/135032.html</guid><wfw:comment>http://www.aygfsteel.com/lyj/comments/135032.html</wfw:comment><comments>http://www.aygfsteel.com/lyj/archive/2007/08/07/135032.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/lyj/comments/commentRss/135032.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/lyj/services/trackbacks/135032.html</trackback:ping><description><![CDATA[鍏堢湅涓涓嬩唬鐮侊細<br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span> <span style="COLOR: #0000ff">enum</span><span style="COLOR: #000000"> MyColor { red, green, blue}<br></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> TestEnum {<br></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> main(String[] args) {<br></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">        MyColor m </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> MyColor.blue;<br></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">switch</span><span style="COLOR: #000000">(m) {<br></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">            </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> red:<br></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">                System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">red</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">            </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> green:<br></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">                System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">green</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">            </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> blue:<br></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000">                System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">blue</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">            </span><span style="COLOR: #0000ff">default</span><span style="COLOR: #000000">:<br></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">                System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">default</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">21</span> <span style="COLOR: #000000">        }<br></span><span style="COLOR: #008080">22</span> <span style="COLOR: #000000"><br></span><span style="COLOR: #008080">23</span> <span style="COLOR: #000000">        System.out.println(m);<br></span><span style="COLOR: #008080">24</span> <span style="COLOR: #000000">    }<br></span><span style="COLOR: #008080">25</span> <span style="COLOR: #000000">}<br></span><span style="COLOR: #008080">26</span> <span style="COLOR: #000000"></span></div> <br>TestEnum綾葷紪璇戝悗錛屼細浜х敓涓変釜class鏂囦歡錛歁yColor.class銆乀estEnum$1.class銆乀estEnum.class銆?br><br>鏋氫婦灝辯浉褰撲簬涓涓被錛屾墍浠ヤ細鏈塎yColor.class銆傞棶棰樻槸錛氫負浠涔堜細鍑虹幇TestEnum$1.class榪欎釜鍖垮悕綾匯傞毦閬撴槸鏋氫婦綾諱腑浣跨敤鐨剅ed, green, blue涓変釜鍊奸犳垚鐨勩?br><br>閭d綅澶т緺鐭ラ亾錛岀粰灝忓紵瑙i噴涓涓嬶紝鍏堣阿璋簡錛?img height=20 src="http://www.aygfsteel.com/Emoticons/QQ/15.gif" width=20 border=0> <img src ="http://www.aygfsteel.com/lyj/aggbug/135032.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/lyj/" target="_blank">鎬諱篃鐫′笉閱?/a> 2007-08-07 19:03 <a href="http://www.aygfsteel.com/lyj/archive/2007/08/07/135032.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">大埔县</a>| <a href="http://" target="_blank">鄂尔多斯市</a>| <a href="http://" target="_blank">塔城市</a>| <a href="http://" target="_blank">湖州市</a>| <a href="http://" target="_blank">资阳市</a>| <a href="http://" target="_blank">汤原县</a>| <a href="http://" target="_blank">武山县</a>| <a href="http://" target="_blank">应城市</a>| <a href="http://" target="_blank">东明县</a>| <a href="http://" target="_blank">安康市</a>| <a href="http://" target="_blank">曲阳县</a>| <a href="http://" target="_blank">江山市</a>| <a href="http://" target="_blank">上饶县</a>| <a href="http://" target="_blank">大余县</a>| <a href="http://" target="_blank">靖西县</a>| <a href="http://" target="_blank">华蓥市</a>| <a href="http://" target="_blank">修文县</a>| <a href="http://" target="_blank">潼关县</a>| <a href="http://" target="_blank">高陵县</a>| <a href="http://" target="_blank">合川市</a>| <a href="http://" target="_blank">太和县</a>| <a href="http://" target="_blank">武宁县</a>| <a href="http://" target="_blank">固安县</a>| <a href="http://" target="_blank">松潘县</a>| <a href="http://" target="_blank">宁海县</a>| <a href="http://" target="_blank">黑龙江省</a>| <a href="http://" target="_blank">伊通</a>| <a href="http://" target="_blank">祁门县</a>| <a href="http://" target="_blank">余庆县</a>| <a href="http://" target="_blank">崇明县</a>| <a href="http://" target="_blank">申扎县</a>| <a href="http://" target="_blank">景德镇市</a>| <a href="http://" target="_blank">平顺县</a>| <a href="http://" target="_blank">深圳市</a>| <a href="http://" target="_blank">游戏</a>| <a href="http://" target="_blank">肥西县</a>| <a href="http://" target="_blank">林州市</a>| <a href="http://" target="_blank">凤庆县</a>| <a href="http://" target="_blank">府谷县</a>| <a href="http://" target="_blank">屏东县</a>| <a href="http://" target="_blank">宝山区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>