Hello, Does anyone know how to disable (or remove) the 'X' button (or 'close' button) on the title bar of a JDialog? I know how to set it to do nothing (via the setDefaultCloseOperation() method with DO_NOTHING_ON_CLOSE as the parameter), but I want it to look disabled...or not be there at all. Thanks! [ April 04, 2002: Message edited by: Jeff Wisard ]
Jeff Wisard<br />Sun Certified Java Programmer (Java 2)<br />Sun Certified Web Component Developer
You can't call setCloseable(FALSE) on a JDialog? you can disable it by setting "DO_NOTHING_ON_CLOSE" and intercepting the window closing event to do what you need to do there.
Joined: Jan 07, 2002
Yea...this I already know. What I want to do is have the 'X' button disabled...so that it never even generates the event. I want the user to know, just by looking at it, that the 'X' button is disabled. Better yet, I would like it to not even be available on the title bar.