package autolaskuri; import javax.swing.UIManager; /** * Title: Autolaskuri for Java with Beans * Description: Autolaskuri for Java using beans * Copyright: Copyright (c) 2001 * Company: jyu * @author Vesa Lappalainen * @version 1.0 */ public class autolaskuri { boolean packFrame = false; /**Construct the application*/ public autolaskuri() { FrameAutolaskuri frame = new FrameAutolaskuri(); //Validate frames that have preset sizes //Pack frames that have useful preferred size info, e.g. from their layout if (packFrame) { frame.pack(); } else { frame.validate(); } frame.setVisible(true); } /**Main method*/ public static void main(String[] args) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { e.printStackTrace(); } new autolaskuri(); } }