import javax.swing.JOptionPane;
public class ShowText {
public static void main(String[] args) {
String str = (String) JOptionPane.showInputDialog(null, "请输入你大名:\n", "输入ID", JOptionPane.PLAIN_MESSAGE, null, null,
"请输入ID");
JOptionPane.showMessageDialog(null, str, "显示ID",JOptionPane.PLAIN_MESSAGE);
}
}