JOptionPane.showConfirmDialog(null, instructorEditorPanel,
"Edit Player JOptionPane", JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
coachEditorPanel 是一个具有 3 个文本字段的 Jpanel。我正在尝试获取 textFields 中的数据并将它们分配给父类中的实例变量。我知道如何使用 getText() 方法获取数据。我的问题是操纵处理程序以在选择“确定”按钮时执行操作。