Menu

#2 LAF is not ackknowledging component sizes

open
nobody
None
5
2003-11-03
2003-11-03
No

It seems FHLaF is not fully acknowledging component
preferred sizes. Take a look at the two screenshots
attached: one of them is using FH LaF, the other one is
using Plastic LaF (from jGoodies).

All components in this form have their sizes determined
by the FormLayout (also from jGoodies). Specifically,
the combo boxes uses a prototype display value
(JComboBox.setPrototypeDisplayValue) to determine their
initial sizes. In plastic, the sizes are set according
to the prototype value, but in FH the sizes aren't
quite right.

Discussion

  • Marcus Brito

    Marcus Brito - 2003-11-03

    My application using Plastic L&F

     
  • Marcus Brito

    Marcus Brito - 2003-11-03

    My application using FH L&F

     
  • Marcus Brito

    Marcus Brito - 2003-11-03

    Logged In: YES
    user_id=360347

    Look at the "municipio" combo box. This one is of special
    interest because it's initially empty but it's populated
    later. In plastic L&F, the combo width is determined from
    the prototype display value, correctly. In FH, the combo is
    completly collapsed because it contains no initial data.

    Also look at the "Empresa" combo box. In FH, it's way larger
    than it should have been, because there are items largen
    than the prototype display value in this combo.

    The "Estado" combo is fine because it's data has a constant
    width.

    Also, notice this screen is obviously not finished, forget
    about the other fields -- just take a look at the ones
    mentioned here.

     

Log in to post a comment.

MongoDB Logo MongoDB