Tuesday, 15 July 2014

java - How to force a minimum height of a JFace Wizard in Eclipse? -



java - How to force a minimum height of a JFace Wizard in Eclipse? -

i'm presenting wizard (code here) gets low, content not show (see screenshot below):

how can forcefulness wizard have minimum height?

according reply on this question here on stackoverflow, wizard same height largest wizardpage in wizard, wizard obvilusly not resized according @ to the lowest degree content of largest page, , tried set minimum height of first visible wizard page code in wizardpage class:

@override public void createcontrol(composite parent) { // create composite hold widgets composite composite = new composite(parent, swt.null); composite.setsize(300, 1024); // todo: work? griddata griddata = new griddata(300, 1024); griddata.heighthint = 1024; griddata.minimumheight = 1024; composite.setlayoutdata(griddata);

... without success far.

any hints?

try set

parent.setlayout(new gridlayout());

to createcontrol() implementation of first page.

it appears parent in method has instance of pagecontainerfilllayout layout, not gridlayout.

if have access wizarddialog, phone call

wizarddialog.setminimumpagesize(300, 1024)

java swt eclipse-rcp jface

No comments:

Post a Comment