1 22 23 package com.izforge.izpack.panels; 24 25 import java.awt.Dimension ; 26 27 import javax.swing.Box ; 28 import javax.swing.BoxLayout ; 29 import javax.swing.JScrollPane ; 30 31 import com.izforge.izpack.installer.InstallData; 32 import com.izforge.izpack.installer.InstallerFrame; 33 import com.izforge.izpack.util.IoHelper; 34 35 43 public class PacksPanel extends PacksPanelBase 44 { 45 46 49 private static final long serialVersionUID = 4051327842505668403L; 50 51 57 public PacksPanel(InstallerFrame parent, InstallData idata) 58 { 59 super(parent, idata); 60 } 61 62 67 protected void createNormalLayout() 68 { 69 setLayout(new BoxLayout (this, BoxLayout.Y_AXIS)); 70 createLabel("PacksPanel.info", "preferences", null, null); 71 add(Box.createRigidArea(new Dimension (0, 3))); 72 createLabel("PacksPanel.tip", "tip", null, null); 73 add(Box.createRigidArea(new Dimension (0, 5))); 74 tableScroller = new JScrollPane (); 75 packsTable = createPacksTable(300, tableScroller, null, null); 76 if (dependenciesExist) 77 dependencyArea = createTextArea("PacksPanel.dependencyList", null, null, null); 78 descriptionArea = createTextArea("PacksPanel.description", null, null, null); 79 spaceLabel = createPanelWithLabel("PacksPanel.space", null, null); 80 if (IoHelper.supported("getFreeSpace")) 81 { 82 add(Box.createRigidArea(new Dimension (0, 3))); 83 freeSpaceLabel = createPanelWithLabel("PacksPanel.freespace", null, null); 84 } 85 } 86 87 } 88 | Popular Tags |