I have a Wizard that contains multiple components. On the wizard I have drop-downs that can filter the results, which then hides various rows that are not required. However when these rows are hidden the components remain in the same location and do not re-size/move up. My problem I believe is similar to this issue (SWT components relayout after visibility set to false) however it uses RowLayout instead. I have also tried copying what was done but it did not change anything. How would I get the components to be placed togeather instead of leaving gaps?
I'v also read that .pack() and .revalidate() might be options, but I cannot seem how to make them work with the wizard classes. As best I can tell, it is using org.eclipse.jface.wizard for the base components. Any advice is highly appreciated for this, and I will update my question as requires if it needs to be clarified.
Edit Attempting to recreate the style outlined in the link above, I came up with this (please note the project abstracts a few things away, so I have to make some extra calls). However after implementing I see no notable difference in the program (e.g. everything is still in the exact same spots, no spacing differences).
RowData data = new RowData();
RowData data2 = new RowData();
guiPiece.getGUILayout().getPiece("label").setLayoutData(data);
guiPiece.getGUILayout().getPiece("field").setLayoutData(data2);
guiPiece.getGUILayout().getPiece("label").setVisible(newVisibility);
data = (RowData)guiPiece.getGUILayout().getPiece("label").getLayoutData();
data.exclude = !newVisibility;
guiPiece.getGUILayout().getPiece("field").setVisible(newVisibility);
data2 = (RowData)guiPiece.getGUILayout().getPiece("field").getLayoutData();
data2.exclude = !newVisibility;
guiPiece.getFieldParentingControl().layout(true);