JButton ;. import javax.swing.JOptionPane;. import javax.swing.SwingConstants; ... if (component instanceof JButton) { ... getText() == button2.
確定! 回上一頁