Menu

Popup placement?

pfuerholz
2014-03-25
2014-03-25
  • pfuerholz

    pfuerholz - 2014-03-25

    I really like the MessageBox add-on you created!
    What I am a bit missing is the possibility to place the popup to a certain position on the screen. Is this possible or does it need an addition?
    (E.g. PopupView always opens its popup just above its base element.)

     
  • Dieter Steinwedel

    It's easy to change the position of the dialog. Here is an example:

    MessageBox mb = MessageBox.showPlain(Icon.INFO, "Test", "A test.", ButtonId.CLOSE);
    mb.getWindow().setPositionX(0);
    mb.getWindow().setPositionY(100);
    
     

Anonymous
Anonymous

Add attachments
Cancel