/** * MultiDimTable.java * * Copyright 2000 Eliad Technologies, Inc. All Rights Reserved. * * This software is the proprietary information of Eliad Technologies, Inc. */ package MultiDimTable; import java.awt.*; import javax.swing.UIManager; public class MultiDimTable { // For debug/trace purpose static int trace_ = 0; static void traceln(String msg) { if (trace_ != 0) System.out.println(msg); } //Construct the application public MultiDimTable() { MainFrame frame = new MainFrame(); //Pack frames that have useful preferred size info, e.g. from their layout frame.pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = frame.getSize(); frameSize.height = 550; if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } frame.setSize(frameSize); frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); frame.setVisible(true); frame.attachController(); } //Main method public static void main(String[] args) { try { UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()); } catch(Exception e) { e.printStackTrace(); } new MultiDimTable(); } }