Re: java question
"Anthony W. Marino" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Souvik Basak wrote: >You cant remove the close button of JDialog,JOptionPane and JFrame. But you can >add window listener to restrict the close operation. The sample code is > this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); >-- Souvik Basak > > Souvik, a JOptionPane doesn't require the same decorations (ie; "x") as in a JDialog so there isn't anything to remove since it isn't there to begin with. Try creating a JOptionPane and see for yourself. Anthony >"Anthony W. Marino" wrote: > > > >>Take a look at the JOptionPane class. >>Anthony >> >>randie ursal wrote: >> >> >> >>>hello guys, >>> >>> i'm very sorry about this question but i need the solution urgently. >>> >>> how can i removed the "x" or close button on a JDialog? >>> >>> a code snippet would be very helpful. >>> >>> >>>thanks a lot. >>> >>>___________________________________________________________________________ >>> >>>To unsubscribe, send email to [email protected] and include in the >>>body >>>of the message "signoff SERVLET-INTEREST". >>> >>>Archives: http://archives.java.sun.com/archives/servlet-interest.html >>>Resources: http://java.sun.com/products/servlet/external-resources.html >>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html >>> >>> >>> >>___________________________________________________________________________ >>To unsubscribe, send email to [email protected] and include in the body >>of the message "signoff SERVLET-INTEREST". >> >>Archives: http://archives.java.sun.com/archives/servlet-interest.html >>Resources: http://java.sun.com/products/servlet/external-resources.html >>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html >> >> > >___________________________________________________________________________ >To unsubscribe, send email to [email protected] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html