//Title: Autolaskuri for Java //Version: //Copyright: Copyright (c) 1999 //Author: Vesa Lappalainen //Company: jyu //Description:Liikennelaskijan välttämätön apuväline package autolaskuri; import javax.swing.UIManager; public class Autolaskuri { boolean packFrame = false; //Construct the application public Autolaskuri() { LaskuriFrame frame = new LaskuriFrame(); //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) { } new Autolaskuri(); } }