eclipse plugin - Table Viewer length Increases automatically under Section -
i newbie swt , layouts. have composite inside have section called "table contens" inside have composite "composite b" inside using table viewer uses tablecolumnlayout
.
all composite , sections uses grid layout , griddata griddata = new griddata(griddata.fill, griddata.fill, true, false);
my problem is,first time table contains 5 rows, table size arranges accordingly.if select file populated 10 rows , comes scrollable. when go tab , come table viewer tab refreshes layout , height of viewer adjust 10 rows.
if give height , width manually working griddata objectivesectiondata=new griddata(670,150);
but want table resize based on screen need restrict height of it.
i know need layout .but dont know how it? in need of much.any advice ?
thanks in advance
specify griddata
heighthint
value, like:
griddata griddata = new griddata(griddata.fill, griddata.fill, true, false); griddata.heighthint = 150;
Comments
Post a Comment