[izpack-changes] r1964 - in izpack-src/trunk/src/lib/com/izforge/izpack: installer panels
noreply at berlios.de
noreply at berlios.de
Mon Dec 17 22:15:24 CET 2007
Author: jponge
Date: 2007-12-17 22:15:19 +0100 (Mon, 17 Dec 2007)
New Revision: 1964
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
Log:
Pixel pushing
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java 2007-12-17 17:57:56 UTC (rev 1963)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java 2007-12-17 21:15:19 UTC (rev 1964)
@@ -588,17 +588,18 @@
GridBagConstraints gbConstraints = new GridBagConstraints();
gbConstraints.anchor = GridBagConstraints.CENTER;
gbConstraints.insets = new Insets(5, 5, 5, 5);
- gbConstraints.fill = GridBagConstraints.NONE;
+ gbConstraints.fill = GridBagConstraints.HORIZONTAL;
gbConstraints.gridx = 0;
gbConstraints.weightx = 1.0;
gbConstraints.weighty = 1.0;
+ gbConstraints.ipadx = 0;
+ gbConstraints.ipady = 6;
ImageIcon img = getImage();
JLabel imgLabel = new JLabel(img);
gbConstraints.gridy = 0;
contentPane.add(imgLabel);
- gbConstraints.fill = GridBagConstraints.HORIZONTAL;
String firstMessage = "Please select your language";
if (getLangType().equals(LANGUAGE_DISPLAY_TYPES[0]))
// iso3
@@ -606,22 +607,21 @@
JLabel label1 = new JLabel(firstMessage, SwingConstants.LEADING);
gbConstraints.gridy = 1;
- gbConstraints.insets = new Insets(15, 5, 2, 5);
+ gbConstraints.insets = new Insets(15, 5, 5, 5);
layout.addLayoutComponent(label1, gbConstraints);
contentPane.add(label1);
- gbConstraints.insets = new Insets(2, 5, 2, 5);
+ gbConstraints.insets = new Insets(5, 5, 5, 5);
items = reviseItems(items);
comboBox = new JComboBox(items);
if (useFlags()) comboBox.setRenderer(new FlagRenderer());
- gbConstraints.fill = GridBagConstraints.HORIZONTAL;
gbConstraints.gridy = 3;
layout.addLayoutComponent(comboBox, gbConstraints);
contentPane.add(comboBox);
- gbConstraints.insets = new Insets(15, 5, 5, 5);
- JButton okButton = new JButton("OK");
+ gbConstraints.insets = new Insets(15, 5, 15, 5);
+ JButton okButton = new JButton("Ok");
okButton.addActionListener(this);
gbConstraints.fill = GridBagConstraints.NONE;
gbConstraints.gridy = 4;
@@ -633,9 +633,10 @@
// Packs and centers
// Fix for bug "Installer won't show anything on OSX"
if (System.getProperty("mrj.version") == null)
+ {
pack();
- else
- setSize(getPreferredSize());
+ }
+ setSize(getPreferredSize());
Dimension frameSize = getSize();
Point center = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java 2007-12-17 17:57:56 UTC (rev 1963)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java 2007-12-17 21:15:19 UTC (rev 1964)
@@ -641,7 +641,7 @@
boolean isSelected, boolean hasFocus, int row, int column)
{
JCheckBox display = new JCheckBox();
- if(com.izforge.izpack.util.OsVersion.IS_UNIX)
+ if(com.izforge.izpack.util.OsVersion.IS_UNIX && !com.izforge.izpack.util.OsVersion.IS_OSX)
{
display.setIcon(new LFIndependentIcon());
display.setDisabledIcon(new LFIndependentIcon());
More information about the izpack-changes
mailing list