X button « Dialog « Java Swing Q&A





1. Remove "X" button in Swing JDialog    stackoverflow.com

Is there a way to remove the close button ("X") from the JDialog title bar?

2. Disabling the 'X' button of JDialog    coderanch.com

In the Java Tutorial there is a simpleExample of JOptionPane The JOptionPane is a simple JDialog with all you need import org.apache.log4j.Category; import org.apache.log4j.BasicConfigurator; import javax.swing.JDialog; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.BorderLayout; public class DisabledKillApp extends JFrame { public static final int CREATE = 0; public static final int CLOSE = 1; JButton bOpen = ...

3. JDialog X Button    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...