so yes, i listened to you guys and read through the whole API documentation for the JOptionPane.
i found how to add components to it, Jrmonkey97 (or something) already told me to do it that way but i didn't listen..
well i made an object like:
label4 = new JLabel("Check this out"); label5 = new JLable("I dont know how to add this label"); object[] test = {label4, label5}; JOptionPane.showMessageDialog(null, test[0], "Log in", JOptionPane.INFORMATION_MESSAGE);
so YES i managed to add that label to the JOptionpane, my only question is: how do i add multiple labels/textfields/passwordfields to that optionpane, because in the API it says that you should be able to do:
JOptionPane.showMessageDialog(null, test[0], test[1], "log in" , JOptionPane.INFORMATION_MESSAGE);
but that doesnt work, it gives me this error:
The method showMessageDialog(Component, Object, String, int, Icon) in the type JOptionPane is not applicable for the arguments (null, Object, Object, String, int)
so yeah, if anyone would be able to tell me how to add more components from that array in a JOptionpane, that would be amazing!
thanks in advance