SwingMessageBox extends SwingElement implements XulMessageBox { public void setScrollable( boolean scroll ) { this.scrollable = scroll; } SwingMessageBox( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); Object[] getButtons(); Object getIcon(); String getMessage(); String getTitle(); void setButtons( Object[] buttons ); void setIcon( Object icon ); void setMessage( String message ); void setTitle( String title ); int open(); void setScrollable( boolean scroll ); void setModalParent( Object parent ); void setAcceptLabel( String label );  }
@Test public void testSetScrollable() throws Exception { msg.setTitle( "Title" ); msg.setScrollable( true ); msg.setMessage( "Message" ); Thread msgThread = new Thread( () -> { try { msg.open(); } catch ( Exception e ) { SwingMessageBoxTest.this.err = true; } } ); msgThread.start(); Thread.sleep( 1000 ); assertTrue( msgThread.isAlive() ); assertTrue( !err ); msgThread.interrupt(); }