javaseday26(gui基本結構 事件監聽)

Frame f= new Frame(); // f.setSize(500, 400);//第一個是橫軸 第二縱軸 第一個一般都長點 // f.setLocation(400, 100); f.setBounds(400, 200, 500, 400); f.setLayout(new FlowLayout());//設置流式佈局 Button b = new Button("一個按鈕"); f
相關文章
相關標籤/搜索