Changeset 58 for trunk/Swing


Ignore:
Timestamp:
08/14/08 20:26:54 (11 years ago)
Author:
kuo.chaoyi
Message:

1.增加Java Flow Control 範例
2.升級 NB6.5 beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Swing/SwingStepDemo/src/swingstepdemo/SwingJFrame.java

    r54 r58  
    33 * and open the template in the editor. 
    44 */ 
    5  
    65package swingstepdemo; 
    76 
     
    1211 * 
    1312 * @author ChaoYi, Kuo 
    14  */ 
    15  
    16 // Inheritance from 'JFrame' 
     13 */// Inheritance from 'JFrame' 
    1714public class SwingJFrame extends JFrame { 
    1815 
    19     public SwingJFrame() { 
     16    public SwingJFrame(String name) { 
     17        super(name); 
    2018        setSize(500, 500); 
    2119        setLocation(200, 200); 
     
    2523    } 
    2624 
     25    public static void main(String[] args) { 
     26        SwingJFrame sjf = new SwingJFrame("My Swing-Extends"); 
    2727 
     28 
     29    } 
    2830} 
Note: See TracChangeset for help on using the changeset viewer.