KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > yagga > miniinstaller > gui > VoidPanel


1 /*
2  * This file is part of MiniInstaller, a self installer builder for Java
3  * Copyright (C) 2002 Walter Gamba
4  * mailto:walter@yagga.net
5  * http://www.yagga.net/java/miniinstaller
6  *
7  * MiniInstaller is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * MiniInstaller is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * As the time of writing, the GNU General Public Licene can be
22  * found at http://www.gnu.org/licenses/gpl.txt
23  *
24  */

25
26 package net.yagga.miniinstaller.gui;
27
28 import java.awt.*;
29 import javax.swing.JPanel JavaDoc;
30
31 /**
32  * Useless.
33  * @author Walter Gamba
34  * @version 1.0
35  */

36 public class VoidPanel extends JPanel JavaDoc implements InstallPanel{
37   BorderLayout borderLayout1 = new BorderLayout();
38
39
40   public VoidPanel() {
41     try {
42       jbInit();
43     }
44     catch (Exception JavaDoc ex) {
45       ex.printStackTrace();
46     }
47   }
48
49   void jbInit() throws Exception JavaDoc {
50     this.setLayout(borderLayout1);
51     refresh();
52   }
53
54   public void refresh(){
55     this.setBackground(InstallFrame.BK_COL);
56     this.setMaximumSize(InstallFrame.panelDim);
57     this.setPreferredSize(InstallFrame.panelDim);
58     this.setMinimumSize(InstallFrame.panelDim);
59     this.doLayout();
60   }
61     public void setDims(Dimension d){
62         this.setPreferredSize(d);
63         this.invalidate();
64     }
65
66 }
67
Popular Tags