testJPanel.setLayout(null); JButton aBtn = new JButton("Button A"); aBtn.setBounds(25, 25, 100, 25); testJPanel.add(aBtn); setVisible(true);
確定! 回上一頁