Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


Java Tutorials



Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Java: Dialogs

There are several ways to build dialog boxes:

JOptionPane - Simple Dialogs
This is a very easy way (one statement) to build simple dialogs. Usually this, JFileChooser, and maybe JColorChooser are the only dialog classes that you need.
This will create and control a standard file chooser dialog.
You can call one static method (Color.showDialog(. . .)) to display a dialog that lets the user choose a color, or you can add listeners to make a more complicated dialog interaction, or you can use this class to create a color chooser pane.
JProgressBar and ProgressMonitor
These can be used to display the progress during a long task.
This can be used for building dialogs that are too complicated for JOptionPane.

Dialogs are attached to window (frame)

Every dialog is attached to a window (frame). When the window in iconified, the dialog will automatically disappear, and it will automatically reappear when the window is deiconified. When the window is destroyed, the dialog will disappear.

Dialogs are usually modal

When a dialog in active, input to other parts of the graphical user interface will be blocked. This kind of dialog is called a modal dialog. If you want a dialog which is modeless (allows interaction with other windows), you must use the JDialog class.


A date picker is likely for Java 6.


Ask programming questions?



Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (post your own) View All Comments Latest 10 Comments:

Plz send me the codings for creating a media player using java....

Posted by Ramkumar on Monday, 12.1.08 @ 03:29am | #82224

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name


Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.

[an error occurred while processing this directive]