Hi guys,
Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok.
I have a lot of code but I just took out this one little part that i wanna be able for a user to click and choose the answer he/she wants to see in an JOptionPane window with a text stating : "Click on the button "Right" if you want to see the right and answer, or click on button "wrong" if you want to see the wrong answer.
And then 2 buttons in this pane of course, one called right and one wrong. How do i do that? So when user clicks the button named right she/he will be able to see the right answers and vice versa. Is that possible with JOptionPane? Is it supposed to work with confirmDialog? Thanks in advance. I love this forum.
public void printValue(){ //Method to print out the wrong and right values
System.out.println("Wrong values are");
for(Double d:NotOkweight )
System.out.println(d);
System.out.println("Right values are");
for(Double d:Okweight){
System.out.println(d);
}
}