I am quite new to the creation of user interface in Java. I have been using the WindowBuilder to create an interface. I have some data from a table and I would like
-
The user to check if they are double or not and hit the right button (Double, not double)
-
Then, the variable double or the notdouble I would like to increase
-
And in the end, to have the table cleared from the data and display the next data from the table.
-
In the end, I would like to give the results of the variables (double, notdouble)
I have written a code for action listeners of the buttons, so far in
order to diplay some messages
// DOUBLE BUTTON
JButton btnDouble = new JButton("DOUBLE");
btnDouble.setFont(new Font("Calibri", Font.PLAIN, 12));
btnDouble.addActionListener(new ActionListener() { // For event handling
public void actionPerformed(ActionEvent e)
{
//Execute when button is pressed
System.out.println("You clicked the DOUBLE button");}
});
I am just writing here in order to give me some guidelines or where I should look for. Any tutorial available would be very helpful.
How to use Button and
How to use Table