Re: [Java-gnome-developer] dialog problem
Brought to you by:
afcowie
From: Remy S. <rem...@gm...> - 2006-06-29 12:46:47
|
I think you need to compare the integer value returned from the run method against a org.gnu.gtk.ResponseType. You can refer to the javadocs online for more information - http://java-gnome.sourceforge.net/docs/javadoc/index.html Regards, Rem On 6/29/06, S=F8ren Mathiasen <li...@so...> wrote: > > Hi, > > I've the following code, that displays an error dialog. > The problem is that when OK is clicked nothing happens. My guess is that > I somehow should connect a listener to the OK button but how ?? > > > final MessageDialog dialog =3D new MessageDialog(window, > DialogFlags.MODAL,MessageType.ERROR, ButtonsType.OK, text, true); > dialog.setTitle("Error"); > dialog.run(); > > /Soren > > > > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |