Answer the question
In order to leave comments, you need to log in
How to make a function for sequential click?
Here is the code:
String questions[]={"The first question","The secound qurstion","The third qurstion","The four qurstion","The five qurstion"};
//Массив с вопросами
JLabel label1=new JLabel();
JLabel label2=new JLabel("5\1");
ActionListener actionListener1=new ActionListener(){
public void actionPerformed(ActionEvent e){
label1.setText(questions[1]);
label1.setText("5\2");
}
};
check.addActionListener(actionListener1);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question