[izpack-users] Font/Label problem in language selection window

Julien Ponge julien.ponge at gmail.com
Tue Oct 9 20:58:25 CEST 2007


Thanks for the patch, I will handle it in the next few days.

On 10/5/07, Uwe Seimet <Uwe.Seimet at seimet.de> wrote:
> Hello,
>
> On Mac OS X the two lines "Please select your language" and "for install
> instructions" are not displayed correctly. The corresponding JLabels are
> too close together, but even when adding more space between them the
> descenders (in particular the letters 'g' in "language) are cut off.
> As far as I can tell this problem is caused by too many contraints
> applied by the GridBagLayout layout manager.
> Can you consider using a simpler layout manager instead, with less
> constraints on the layed out elements? My experience is that the more
> constraints you apply the more problems you get with respect to
> platform-independence.
> By changing the GUIInsstaller I was able to fix the label display
> problem, even though now the OK button seems to be rendered differently
> than before. Please find my diffs below.
> If you are interested I can post a screenshot showing the problem
> on Mac OS X.
>
> Best regards,   Uwe
>
> --
>
>
>
> 535c535,543
> <             JLabel label1 = new JLabel(firstMessage, SwingConstants.CENTER);
> ---
> >             javax.swing.Box box = javax.swing.Box.createVerticalBox();
> >             JLabel label1 = new JLabel(firstMessage);
> >             JPanel panel1 = new JPanel();
> >             panel1.add(label1);
> >             box.add(panel1);
> >             JLabel label2 = new JLabel("for install instructions:");
> >             JPanel panel2 =  new JPanel();
> >             panel2.add(label2);
> >             box.add(panel2);
> 537,541d544
> <             gbConstraints.insets = new Insets(5, 5, 0, 5);
> <             layout.addLayoutComponent(label1, gbConstraints);
> <             contentPane.add(label1);
> <             JLabel label2 = new JLabel("for install instructions:", SwingConstants.CENTER);
> <             gbConstraints.gridy = 2;
> 543,544c546,547
> <             layout.addLayoutComponent(label2, gbConstraints);
> <             contentPane.add(label2);
> ---
> >             layout.addLayoutComponent(box, gbConstraints);
> >             contentPane.add(box);
> 552c555
> <             gbConstraints.gridy = 3;
> ---
> >             gbConstraints.gridy = 2;
> 559c562
> <             gbConstraints.gridy = 4;
> ---
> >             gbConstraints.gridy = 3;
>
>
> --
>
> --
> -----------------------------------------------------------------------
>   Dr. Uwe Seimet                                http://www.seimet.de/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>


More information about the izpack-users mailing list