Hello,
If I want to make a calculator, which is better to use
or to create a JButton object for each number and put them in the panel.Code:for (int i = 1; i <= 9; i++)
{
buttonPanel.add(new JButton(i));
}
which saves memory and time?
Thanks in advance

