Я пытаюсь сделать раунд JButton в координатах (x, y) (150,210). Я хочу, чтобы кнопка была овальной размером (40,40). И цвет фона кнопок красный. Ему не нужен текст, так что я должен получить кнопку любого размера, которого я хочу, верно?
Я использую панель и устанавливаю для setLayout значение null:
setLayout(null)
Я проверил Google, и он привел меня сюда. Как я могу это сделать?