Open GoogleCodeExporter opened 9 years ago
hi,
try this:
panel.add(new LiveTable<Foo>(getTableModel(), createTableDefinition()) {
@Override
public Dimension getPreferredSize() {
return new Dimension(512, 384);
}
});
----------------------------------------
Just some hints about WindowPanel:
WindowPanel supports two methods for sizing.
1. One is to set the size explicitly with WindowPanel.setSize() and call
show()/center()/showModal(false) but NOT pack. In that case the window content
will
be forced to fit in.
2. By using pack()/showModal()/showModal(true). In that case WindowPanel is
asking
the child widgets about the preferred size they want. LiveTable and all table
widgets
do not return a proper value (at least I don't know how to calculate it so far).
Kind Regards,
George.
Original comment by georgopo...@gmail.com
on 8 Aug 2009 at 3:11
Original comment by georgopo...@gmail.com
on 8 Aug 2009 at 3:11
Original issue reported on code.google.com by
administ...@galippe.com
on 8 Aug 2009 at 2:15