HoussemAmara91 / swinghtmltemplate

Automatically exported from code.google.com/p/swinghtmltemplate
0 stars 0 forks source link

add support for default button when in dialog or frame mode #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
getRootPane().setDefaultButton((JButton) 
domModel.query("#okBtn").get(0).getComponent());

this must be done with <meta>
e.g.
<meta name='display-as' value='dialog'/>
<meta name='default-button' value='okBtn'/>

Original issue reported on code.google.com by Penkov.V...@gmail.com on 24 Jun 2011 at 2:29

GoogleCodeExporter commented 8 years ago
done in rev 851

Original comment by Penkov.V...@gmail.com on 28 Jun 2011 at 12:38