Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
How to add Web Dialog Window using java code
posted

I want to add Web Dialog Box as a pop up window. When i click to a link then the dialog box should appear.

I have written following code put but unable to add it to the Web dialog box 

 

DialogWindow dialogWin = getDialogBox(); 

 

 

//header

DialogWindowHeader dgWinHeader = dialogWin.getHeader();

dgWinHeader.setCaptionText(

"Some Caption"); 

DialogButton dgMaxButton =

new DialogButtonMaximizeBox();

DialogButton dgMinButton =

new DialogButtonMinimizeBox();

DialogButton dgCloseButton =

new DialogButtonCloseBox();

 dgWinHeader.getChildren().add(dgMaxButton);

dgWinHeader.getChildren().add(dgMinButton);

dgWinHeader.getChildren().add(dgCloseButton);

 dialogWin.setWindowState(

"normal");

 

 

 //how to add it to dialogWin object?

 

 

Parents
No Data
Reply Children
No Data