문제

I created a dialog class:

myDailog extends Dialog 
    public myDailog (Shell parentShell, String tatgetEntity) {
        super(parentShell)
    }

    @Override
    protected Control createDialogArea(final Composite parent) {
        final Composite body = (Composite) super.createDialogArea(parent);
        ...//some logic to create tableViewwer
    }

The problem that I can't change the size of the dialog (stretch the windows). Do I need to use different dialog?

도움이 되었습니까?

해결책 2

You may need to use this public method to enable the dialog to be resizable:

public void setResizable(boolean resizable)

ps I'm assuming you are using this java.awt.Dialog class

다른 팁

Override the isResizable method of org.eclipse.jface.dialogs.Dialog:

@Override
protected boolean isResizable()
{
  return true;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top