/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.jobs; import eric.GUI.ZDialog.ZButton; import eric.GUI.ZDialog.ZDialog; import eric.GUI.ZDialog.ZLabel; import eric.GUI.ZDialog.ZTools; import java.awt.Component; import java.awt.Font; import java.awt.Graphics; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; import eric.JEricPanel; import rene.gui.Global; /** * * @author erichake */ public class JobValidPanel extends ZDialog { private JobManager MAN; private ZButton validBTN, restoreBTN; private ZLabel label; protected int BWIDTH=180; // Button width public JobValidPanel(JobManager man,int x,int y,int w,int h) { super("", x,y,w,h,false,false); MAN=man; setLayout(null); validBTN=new ZButton(Global.Loc("job.gui.valid")) { @Override public void action() { MAN.validate(); } }; restoreBTN=new ZButton(Global.Loc("job.gui.restore")) { @Override public void action() { MAN.restore(); } }; label=new ZLabel(Global.Loc("job.gui.exercise")); add(label); add(validBTN); add(restoreBTN); increaseFonts(1); fixComponents(); } public void increaseFonts(int size){ for (int i=0;i