ProductStepEndPanel.java :  » Installer » VAInstall » com » memoire » vainstall » builder » gui » Java Open Source

Java Open Source » Installer » VAInstall 
VAInstall » com » memoire » vainstall » builder » gui » ProductStepEndPanel.java
/*
 * $RCSfile: ProductStepEndPanel.java,v $
 * @modification $Date: 2001/09/28 19:35:30 $
 * @version      $Id: ProductStepEndPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
 *
 */

package com.memoire.vainstall.builder.gui;

import com.memoire.vainstall.VAGlobals;
import com.memoire.vainstall.builder.*;

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;
import javax.swing.border.*;

/**
 * This panel is shown in the product dialog
 *
 * This is not just a view panel because it has a reference to the
 * VAIProductModel.
 * 
 *
 * @see com.memoire.vainstall.builder.gui.VAIProductInternalFrame
 * @see javax.swing.JPanel
 *
 * @author Henrik Falk
 * @version $Id: ProductStepEndPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
 */
public class ProductStepEndPanel extends JPanel {

    private VAIProductModel model;

    private final static Border loweredBorder = new SoftBevelBorder(BevelBorder.LOWERED);

    public ProductStepEndPanel() {

        setBorder(loweredBorder);

        GridBagLayout layout = new GridBagLayout();
        setLayout(layout);

        GridBagConstraints contraint=new GridBagConstraints();

        // Description
        JLabel decriptionLabel = new JLabel();
        decriptionLabel.setBorder(BorderFactory.createTitledBorder("Description"));
        decriptionLabel.setText("This is the End panel.");
        contraint.fill = GridBagConstraints.BOTH;
        contraint.insets = new Insets(16,16,0,16);
        contraint.anchor = GridBagConstraints.WEST;
        contraint.gridx = 0;
        contraint.gridy = 0;
        contraint.gridwidth = 2;
        contraint.gridheight = 1;
        contraint.weightx = 1;
        contraint.weighty = 0;
        layout.setConstraints(decriptionLabel,contraint);
        add(decriptionLabel);


        JPanel fillPanel = new JPanel();
        contraint.fill = GridBagConstraints.BOTH;
        contraint.insets = new Insets(4,4,4,4);
        contraint.anchor = GridBagConstraints.CENTER;
        contraint.gridx = 0;
        contraint.gridy = 2;
        contraint.gridwidth = 1;
        contraint.gridheight = 1;
        contraint.weightx = 0;
        contraint.weighty = 1;
        layout.setConstraints(fillPanel,contraint);
        add(fillPanel);

    }


    /**
     * save
     */
    public void save() {
    }

    /**
     * initialize the panel
     */
    public void initialize(VAIProductModel model) {
        this.model = model;

    }

    /**
     * stop
     */
    public void stop() {
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.