KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > adminGui > feature > InfoPanel


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: InfoPanel.java,v 1.1 2003/03/07 13:49:42 per_nyfelt Exp $
8
package org.ozoneDB.adminGui.feature;
9
10 import org.ozoneDB.adminGui.res.Settings;
11
12 import javax.swing.*;
13 import java.awt.*;
14
15 /**
16  * This is the panel that hold the actual information. I.e. the result
17  * @author Per Nyfelt
18  */

19 public abstract class InfoPanel extends JPanel {
20
21     private static final Dimension DIMENSION = new Dimension(Settings.FEATURE_WIDTH - ActionBar.WIDTH, Settings.FEATURE_HEIGHT);
22
23     public InfoPanel() {
24         this.setLayout(new BorderLayout());
25         this.setPreferredSize(DIMENSION);
26         this.setBackground(Settings.COLOR_COBALT);
27     }
28
29     public void setDisplay(Component component) {
30         this.removeAll();
31         this.add(component, BorderLayout.CENTER);
32         this.validate();
33     }
34 }
35
Popular Tags