首先來看Swing 的按鈕元件JButton. 建立按鈕可呼叫JButton 最常用的建構子JButton(String text), 傳入參數為欲顯示在按鈕上的文字, 再呼叫ContentPane ...
確定! 回上一頁