JTextField txt = new JTextField(); JButton btn = new JButton("Button"); int value = JOptionPane.showOptionDialog(this, new Object[]{txt, btn}, "Hello World", JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, null, null, null);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)