package polarDust.calculator; /* * Copyright (c) 1996 Sorin Lazareanu, All Rights Reserved. * * Permission to use, copy, modify, and distribute this software * and its documentation for NON-COMMERCIAL purposes and without * fee is hereby granted provided that this copyright notice * appears in all copies. * */ import java.awt.*; /** * LogoPanel01 is a container for a Label object. * *

* The source code. * * @version 0.9, 1996.06.04 * @author Sorin Lazareanu */ public class LogoPanel01 extends Panel { Label logoLabel = new Label("Polar Dust Software", Label.CENTER); /** * Prepares the layout of the panel */ public void configure(){ GridBagLayout gridBag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); Insets insets = insets(); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; c.insets = new Insets(2,2,2,2); setLayout(gridBag); c.weighty = 1.0; c.gridheight = 1; setFont(new Font("Helvetica", Font.ITALIC, 12)); c.gridy = 0; c.gridx = 0; c.weightx = 1.0; c.gridwidth = 1; logoLabel.resize(155,23); gridBag.setConstraints(logoLabel, c); add(logoLabel); } }