I am trying to display a real-time counting in a simple java gui, I have used optionPane but there is a built-in button. So every time to display the next number, the user will have to press the button. Is there a way to let the numbers run by itself in a simple gui?
example:
for(int i = 0; i < 100; i++)
{
JOptionPane.showMessageDialog(null, i);
}