1 7 8 package com.memoire.vainstall.builder.gui; 9 10 import com.memoire.vainstall.VAGlobals; 11 import com.memoire.vainstall.builder.*; 12 13 import java.awt.*; 14 15 import javax.swing.*; 16 import javax.swing.border.*; 17 18 31 public class PreferencesBasePanel extends JPanel { 32 33 private VAIBuilderModel model; 34 35 private final static Border loweredBorder = new SoftBevelBorder(BevelBorder.LOWERED); 36 37 public PreferencesBasePanel() { 38 39 setBorder(loweredBorder); 40 41 GridBagLayout layout = new GridBagLayout(); 42 setLayout(layout); 43 44 GridBagConstraints contraint=new GridBagConstraints(); 45 46 JLabel infoLabel = new JLabel(); 47 infoLabel.setIcon(new javax.swing.ImageIcon (getClass().getResource("/com/memoire/vainstall/resources/banner.gif"))); 48 49 contraint.fill=GridBagConstraints.BOTH; 50 contraint.insets=new Insets(16,16,0,16); 51 contraint.anchor=GridBagConstraints.CENTER; 52 contraint.gridx=0; 53 contraint.gridy=0; 54 contraint.gridwidth=1; 55 contraint.gridheight=1; 56 contraint.weightx=1; 57 contraint.weighty=1; 58 layout.setConstraints(infoLabel,contraint); 59 add(infoLabel); 60 61 JPanel fillPanel = new JPanel(); 62 contraint.fill=GridBagConstraints.BOTH; 63 contraint.insets=new Insets(4,4,4,4); 64 contraint.anchor=GridBagConstraints.CENTER; 65 contraint.gridx=0; 66 contraint.gridy=1; 67 contraint.gridwidth=1; 68 contraint.gridheight=1; 69 contraint.weightx=0; 70 contraint.weighty=1; 71 layout.setConstraints(fillPanel,contraint); 72 add(fillPanel); 73 74 } 75 76 77 80 public void save() { 81 } 82 83 86 public void initialize(VAIBuilderModel model) { 87 this.model = model; 88 } 89 90 93 public void stop() { 94 } 95 96 } 97 | Popular Tags |