title: making a full size panel, with grid bag layout
body: <p>I am making a program with 3 <strong>JSliders</strong>, <code>for r,g,b and i</code> want to add a panel that will change it's color for the chosen color in the sliders, everything works for me except one thing, I don't know how to make the panel in the full size of the screen, this is the best I could do, but this is still kind of small and I want to make the panel full size. can any one show me how to do it?
  The program is kind of long so I will only send the part of the <strong>gridbaglayout</strong> and the panel.</p>
  
  <pre><code>private JPanel panel;
  
  public delta(){
      setLayout(new GridBagLayout());
      GridBagConstraints c = new GridBagConstraints();
  
      panel = new JPanel();
      panel.setBackground(new Color(0 ,0 ,0));
      c.fill = GridBagConstraints.HORIZONTAL;
      c.gridx = 2;
      c.gridy = 6;
      c.gridwidth = 3;
      c.gridheight = 3;
      add(panel ,c);
  </code></pre>