I am inserting the following button in a JPanel as follows:
JButton button = new JButton();
button.setBounds(50, 50, 40, 40);
button.setBackground(Color.RED);
button.setOpaque(true);
this.add(button);
Add that I have the layout of th...
asked by
05.07.2017 / 19:48