KickJava   Java API By Example, From Geeks To Geeks.

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


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: FeaturePanel.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  * All features extends the feature panel
17  * @author Per Nyfelt
18  */

19 public abstract class FeaturePanel extends JPanel {
20
21     static final Dimension FRAME_SIZE = new Dimension(Settings.FEATURE_WIDTH, Settings.FEATURE_HEIGHT);
22
23     public FeaturePanel() {
24         //this.setLayout(new BorderLayout());
25
this.setSize(FRAME_SIZE);
26         this.setBackground(Settings.COLOR_COBALT);
27     }
28
29     public abstract void activateFeature();
30 }
31
Popular Tags