I would like to ask you how can I insert JPanel into JOptionPane and retrieve all the information from these JTextFields later on.
For example I have something like this:
JPanel jp = new JPanel();
jp.setLayout(new GridLayout(0,1);
JPanel up = new JPanel();
JPanel down = new JPanel();
jp.add(up);jp.add(down);
JTextField jt1 = new TextField("habababa1"); jt2 = new JTextField("habababa2");
JRadioButton jrb1 = new JRadioButton("JRB1");
up.add(jt1);down.add(jt2); down.add(jrb1);
How do I get data from radioButton etc.? After I click ok.
You need to implement an event lister. Here is a snippet from http://www.java2s.com/Tutorial/Java/0240__Swing/ListeningtoJRadioButtonEventswithaChangeListener.htm: