Java Reference
In-Depth Information
L ISTING 7.1 Continued
private String appIconName;
private String appLargeIconName;
private int alreadyInstalledFiles;
private String destinationDir;
private String applDesc;
public static ImageIcon installIcon;
private String[] minInstallationFiles;
private String[] fullInstallationFiles;
private String[] fullInstallationDesc;
private String[] typicalInstallationFiles;
private boolean installJre = true;
private boolean showReadme = true;
private String[] resources;
//GUI stuff
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JRadioButton jRadioMinimal = new JRadioButton();
JRadioButton jRadioCustom = new JRadioButton();
JRadioButton jRadioTypical = new JRadioButton();
JButton installButton = new JButton();
JLabel imageLabel = new JLabel();
JTextArea msgTextArea = new JTextArea();
/**
* Constructor
*/
public CDLauncher() {
currentDir = System.getProperty(“user.dir”) + System.getProperty
(“file.separator”);
loadProperties();
// GUI setup
setIconImage(new ImageIcon(appIconName).getImage());
installIcon = new ImageIcon(SETUP_DIR + “icon.gif”);
Box box1 = Box.createVerticalBox();
TitledBorder titledBorder1 =
new TitledBorder(BorderFactory.createLineBorder(Color.lightGray,2)
,”Installation Options”);
setTitle(“Installer”);
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(WindowEvent e) {
Search WWH ::




Custom Search