JDIALOG BOX - Java Codes

Vote Dialog Box

Description This is a code which displays a Voting Dialog Box, with the help of which we can cast our votes. Source Code import java.awt.BorderLayout; import java.awt.Container; import java.awt.GridL ...

0 Comments. 1134 views since Sep 13, 2008

Input Dialog Box

Description This is a code which displays a Desktop Dialog Box in which User can Input some information. Source Code import java.awt.Dimension; import java.awt.GridBagLayout; import java.awt.event.Ac ...

0 Comments. 1041 views since Sep 12, 2008

Dialog separator

Description This is a code which separates two parts of a Dialog Box. Source Code import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import j ...

0 Comments. 978 views since Sep 12, 2008

Dialog Box

Description Tis is a code which demonstrates a simple Dialog Box. Source Code import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionL ...

0 Comments. 943 views since Sep 12, 2008

Message Dialog Box

Description This is a code which displays a Message Dialog Box. Source Code import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JDialog; import javax.swing.JFrame; ...

0 Comments. 925 views since Sep 13, 2008

About Dialog Box

Description This is a code which demonstrates an About Box with some Text printed on it. Source Code import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.loggi ...

0 Comments. 905 views since Sep 12, 2008

Combo Dialog Box

Description This is a code which demonstrates an Input Dialog Box with User-defined Logo. Source Code import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JOptionPane; /** ...

0 Comments. 899 views since Sep 12, 2008

Confirmation Dialog Box

Description This is a code which simply displays a Confirmation Dialog Box. Source Code import javax.swing.JFrame; import javax.swing.JOptionPane; /** * * @author Prashant Gaur */ publ ...

0 Comments. 866 views since Sep 13, 2008

Information Dialog Box

Description This code demonstrates the Information Dialog with customized logo. Source Code import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JOptionPane; public class ...

0 Comments. 828 views since Sep 13, 2008

Containers: Buttons

Description A component subclass that demonstrates nested Containers and Components. It creates the hierarchy shown below, and uses different colors to distinguish the different nesting levels of the Containers. Source Code <pre name ...

0 Comments. 783 views since Sep 12, 2008

Dialog Box: Question

Description This is a code which demonstrates a simple Question Dialog Box. Source Code import java.awt.event.WindowEvent; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing. ...

0 Comments. 771 views since Sep 13, 2008

Dialog Box: Message PopUp

Description This code demonstrates a Dialog Box which displays a PopUp Message Box. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Conta ...

0 Comments. 764 views since Sep 13, 2008

Dialog Box: Keyboard Sensitive

Description This is a code which displays a Dialog Box with the KeyBoard actions viz. Escape key. Source Code import java.awt.BorderLayout; import java.awt.Dialog; import java.awt.Frame; import jav ...

0 Comments. 707 views since Sep 13, 2008