private TextField txtPeriod;
private TextField txtDiscPercentage;
public ViewDiscountDetailDialog(Frame parent, String title,String discCd) {
super(parent, title,new Dimension(400,400));
this.discountManager = new DiscountManager();
this.discount=discountManager.getSelectedDiscount(discCd);
WindowListener l = new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();