Error when trying to change borders and the position of an element in Java GUI
<p>I'm trying to create a button using Java the changing of the position and the size of JButon isn;t working this way. I'm using setbounds for the size and the Borderlayout for the position. Can anyone show me how to change the size and the position of a Jbutton in the right way?</p>

<p>This is my code:</p>

<pre><code>import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.*;
import java.util.Random;
import javax.imageio.*;
public class Back extends JFrame{


    private JButton r;

    public Back(){


         super("title");
         setLayout(new FlowLayout());
         r=new JButton ("ROLL THE DICE");
         add(r,BorderLayout.SOUTH); 
         r.setBounds(100, 100, 20, 70);

         thehandler hand=new thehandler();//konstruktori i handler merr nje instance te Background
         r.addActionListener(hand);

    }
     private class thehandler implements ActionListener{

         public void actionPerformed(ActionEvent event) {

         }
         }
    public static void main(String[] args) {

         Back  d = new Back() ;

         d.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         d.getContentPane().setBackground(Color.GREEN);
         d.setSize(700,500);

         d.setVisible(true);    


    }

}
</code></pre>