JOptionPane.showConfirmDialog(null, instructorEditorPanel,
"Edit Player JOptionPane", JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
instructorEditorPanel是一個帶有3個文本框的Jpanel。我試圖獲取textFields中的數據並將它們分配給父類中的實例變量。我知道如何使用getText()方法獲取數據。我的問題是在選擇確定按鈕時操縱處理程序以執行操作。試圖獲取textField數據actionPerformed
我想我已經用語句初始化一個變量,然後創建一個If then語句,如果爲true將啓動實例變量;我現在正試圖讓你知道如果解決。 – 2012-04-17 17:16:34