SwingDialog extends AbstractSwingContainer implements XulDialog, SwingRoot { public void setButtonalign( String align ) { this.buttonAlignment = SwingDialog.BUTTON_ALIGN.valueOf( align.toUpperCase() ); } SwingDialog( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); ButtonGroup getButtonGroup( String group ); void resetContainer(); JComponent getContainer(); JDialog getDialog(); String getButtonlabelaccept(); String getButtonlabelcancel(); String getButtons(); String getOndialogaccept(); String getOndialogcancel(); String getTitle(); void setButtonlabelaccept( String label ); void setButtonlabelcancel( String label ); void setButtons( String buttons ); void setOndialogaccept( String command ); void setOndialogcancel( String command ); void setTitle( String title ); void show(); void hide(); void setVisible( boolean visible ); @Override void layout(); int getHeight(); int getWidth(); void setHeight( int height ); void setWidth( int width ); void setModal( Boolean modal ); Boolean isModal(); String getButtonalign(); void setButtonalign( String align ); String getOnload(); void setOnload( String onload ); boolean isHidden(); String getButtonlabelextra1(); void setButtonlabelextra1( String buttonlabelextra1 ); String getButtonlabelextra2(); void setButtonlabelextra2( String buttonlabelextra2 ); String getOndialogextra1(); void setOndialogextra1( String ondialogextra1 ); String getOndialogextra2(); void setOndialogextra2( String ondialogextra2 ); XulDomContainer getXulDomContainer(); void setXulDomContainer( XulDomContainer xulDomContainer ); Object getRootObject(); String getOnclose(); String getOnunload(); void setOnclose( String onclose ); void setOnunload( String onunload ); void invokeLater( Runnable runnable ); Boolean getResizable(); void setResizable( Boolean resizable ); void setAppicon( String icon ); boolean isPack(); void setPack( boolean pack ); @Override void center();  }
@Test public void testSetButtonalign() throws Exception { dialog.setButtonalign( "start" ); assertEquals( "start", dialog.getButtonalign() ); }