Hey, I am creating a calculator program, with some small buttons, I want one of the buttons to have \"Ans\" on them, but whenever I make the JButton smaller then 50, 50, it
Don't set the preferred size of the button. Use the preferred size of the button and let the layout manager layout the components. The preferred size ensures all the text will be displayed properly on different Look and Feels.