i am doing a small Gui in java. i am using setBounds methods to set the position of buttons etc on my JFrame , but problem is that when i use it with JPanel button is
You must get rid of the JPanel's layout, in order to set absolute positions:
p.setLayout(null);