My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
def_button_dialog  
Swixml2 How to create Dialog with def button
Updated Apr 3, 2012 by bartolom...@gmail.com

Description

Always we have to create dialog that has default button. To do this with swixml2 is quite simple. You have to inherit from org.swixml.jsr.widgets.JDialogEx and declare in your XML the chosen button having id = 'defaultButton'

Java source

public class LoginDialog extends JDialogEx  {

XML source

 <button id="defaultButton" text="Submit" action="enterAction"/>
 

See dialog example in showcase

Powered by Google Project Hosting