i tried some code to change this code

final MasterReport report = sample.getCompleteReportDefinition();

// Generate the swing preview dialog
final PreviewDialog dialog = new PreviewDialog();
dialog.setLocation(dim.width/2 -getWidth()/2, dim.height/2 - getHeight()/2);
dialog.setSize(getWidth(), getHeight()-50);
dialog.setReportJob(report);
dialog.setZoom(1.5);
dialog.setModal(true);
dialog.setResizable(true);
dialog.setVisible(true);
dialog.setAlwaysOnTop(true);
dialog.setUndecorated(true);

but i still cannot hide parameter dock..

Name:  addd.jpg
Views: 28
Size:  17.9 KB