All pastes #124394 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-10 01:15 UTC
rendered paste body
Variable in my Main.class

private static double discount = 0.03;

Code in my GUI.class

    public void focusLost(FocusEvent e) {
    	Main m = new Main();
        if (discount == e.getSource()) {
        	if (discount.getText().length() != 0) {
        	m.setdiscount(Double.parseDouble(discount.getText()));
        	}
        }
    }