Changeset 60 for trunk/Swing


Ignore:
Timestamp:
08/15/08 22:57:43 (11 years ago)
Author:
kuo.chaoyi
Message:

更新教學範例.

File:
1 edited

Legend:

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

    r58 r60  
    55package swingstepdemo; 
    66 
     7import java.awt.Color; 
     8import java.awt.Container; 
    79import javax.swing.JFrame; 
    810import javax.swing.WindowConstants; 
     
    2123        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); 
    2224 
     25        // 取得 Backgrund 並上色 
     26        Container cArea = getContentPane(); 
     27        cArea.setBackground(Color.RED); 
    2328    } 
    2429 
Note: See TracChangeset for help on using the changeset viewer.