001: /*
002: * $RCSfile: PreferencesBasePanel.java,v $
003: * @modification $Date: 2001/09/28 19:35:30 $
004: * @version $Id: PreferencesBasePanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
005: *
006: */
007:
008: package com.memoire.vainstall.builder.gui;
009:
010: import com.memoire.vainstall.VAGlobals;
011: import com.memoire.vainstall.builder.*;
012:
013: import java.awt.*;
014:
015: import javax.swing.*;
016: import javax.swing.border.*;
017:
018: /**
019: * This panel is shown in the preferences dialog
020: *
021: * This is not just a view panel because it has a reference to the
022: * VAIBuilderModel.
023: *
024: *
025: * @see com.memoire.vainstall.builder.gui.PreferencesFrame
026: * @see javax.swing.JPanel
027: *
028: * @author Henrik Falk
029: * @version $Id: PreferencesBasePanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
030: */
031: public class PreferencesBasePanel extends JPanel {
032:
033: private VAIBuilderModel model;
034:
035: private final static Border loweredBorder = new SoftBevelBorder(
036: BevelBorder.LOWERED);
037:
038: public PreferencesBasePanel() {
039:
040: setBorder(loweredBorder);
041:
042: GridBagLayout layout = new GridBagLayout();
043: setLayout(layout);
044:
045: GridBagConstraints contraint = new GridBagConstraints();
046:
047: JLabel infoLabel = new JLabel();
048: infoLabel
049: .setIcon(new javax.swing.ImageIcon(
050: getClass()
051: .getResource(
052: "/com/memoire/vainstall/resources/banner.gif")));
053:
054: contraint.fill = GridBagConstraints.BOTH;
055: contraint.insets = new Insets(16, 16, 0, 16);
056: contraint.anchor = GridBagConstraints.CENTER;
057: contraint.gridx = 0;
058: contraint.gridy = 0;
059: contraint.gridwidth = 1;
060: contraint.gridheight = 1;
061: contraint.weightx = 1;
062: contraint.weighty = 1;
063: layout.setConstraints(infoLabel, contraint);
064: add(infoLabel);
065:
066: JPanel fillPanel = new JPanel();
067: contraint.fill = GridBagConstraints.BOTH;
068: contraint.insets = new Insets(4, 4, 4, 4);
069: contraint.anchor = GridBagConstraints.CENTER;
070: contraint.gridx = 0;
071: contraint.gridy = 1;
072: contraint.gridwidth = 1;
073: contraint.gridheight = 1;
074: contraint.weightx = 0;
075: contraint.weighty = 1;
076: layout.setConstraints(fillPanel, contraint);
077: add(fillPanel);
078:
079: }
080:
081: /**
082: * save
083: */
084: public void save() {
085: }
086:
087: /**
088: * initialize the panel
089: */
090: public void initialize(VAIBuilderModel model) {
091: this .model = model;
092: }
093:
094: /**
095: * stop
096: */
097: public void stop() {
098: }
099:
100: }
|