cp.add(panel,BorderLayout.NORTH); //再把JPanel 放入北方方位. 我們也可以在ContenPane 呼叫setLayout() 時傳入null 來取消預設之BorderLayout, ...
確定! 回上一頁