public static JPanel createPanel(int width,int height,int vGap,int hGap,int alignment){
  FlowLayout flowLayout1=new FlowLayout();
  JPanel controlPanel=new JPanel();
  controlPanel.setLayout(flowLayout1);
  flowLayout1.setAlignment(alignment);
  if (width > 0 && height > 0)   controlPanel.setPreferredSize(new java.awt.Dimension(width,height));
  controlPanel.setBackground(JPlagCreator.SYSTEMCOLOR);
  controlPanel.setBorder(JPlagCreator.LINE);
  flowLayout1.setVgap(vGap);
  flowLayout1.setHgap(hGap);
  return controlPanel;
}

public static JPanel createPanel ( int width , int height , int vGap , int hGap , int alignment ) { FlowLayout flowLayout1 = new FlowLayout ( ) ; JPanel controlPanel = new JPanel ( ) ; controlPanel . setLayout ( flowLayout1 ) ; flowLayout1 . setAlignment ( alignment ) ; if ( width > 0 && height > 0 ) controlPanel . setPreferredSize ( new java . awt . Dimension ( width , height ) ) ; controlPanel . setBackground ( JPlagCreator . SYSTEMCOLOR ) ; controlPanel . setBorder ( JPlagCreator . LINE ) ; flowLayout1 . setVgap ( vGap ) ; flowLayout1 . setHgap ( hGap ) ; return controlPanel ; }
if width or height is not greater than 0 , preferred size will not be set
