package com.connor.erp.BomChgTransferToERP;

import java.awt.Component;
import java.awt.GridBagConstraints;

import javax.swing.JDialog;
import javax.swing.JPanel;

public class KUtil {
	public static void newRow(JPanel panel, Component comp, GridBagConstraints s, int width) { newRow(panel, comp, s, width, 0.0D); }
	/*      */ 
	/*      */   
	/*      */   public static void newRow(JPanel panel, Component comp, GridBagConstraints s, int width, double weightx) {
	/*  555 */     s.weightx = weightx;
	/*  556 */     s.gridwidth = width;
	/*  557 */     s.gridx = 0;
	/*  558 */     s.gridy++;
	/*  559 */     panel.add(comp, s);
	/*      */   }
	/*      */   
	/*      */   public static void newRow(JDialog panel, Component comp, GridBagConstraints s, int width) {
	/*  563 */     s.weightx = 0.0D;
	/*  564 */     s.gridwidth = width;
	/*  565 */     s.gridx = 0;
	/*  566 */     s.gridy++;
	/*  567 */     panel.add(comp, s);
	/*      */   }
	/*      */   
	/*      */   public static void addCol(JPanel panel, Component comp, GridBagConstraints s, int width, double weightx) {
	/*  571 */     s.gridx++;
	/*  572 */     s.gridwidth = width;
	/*  573 */     s.weightx = weightx;
	/*  574 */     panel.add(comp, s);
	/*      */   }
}
