Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

dealing with JOptionPane

  Asked By: Annie    Date: Oct 21    Category: Java    Views: 507
  

I'm a beginner in Java language. I'm eager to use all the methods of
JOptioPane but I don't know to fill the parameters.
Is there any one that can give me specific examples on how to do it?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Jean Bell     Answered On: Oct 21

Joptionpane can be used to get input options or display error msg or display
some msg as a info . the options are pretty simple and straight forward.

here's a example

JOptionPane.showMessageDialog( parent_panel_name,
msg,title,JOptionPane.INFORMATION_MESSAGE
);

just check Joptionpane api for different types of messages ....

 
Answer #2    Answered By: Dominic Murphy     Answered On: Oct 21

I suggest you to read The Java Tutorial, which is provided free by Sun
Microsystems, This is the best one. I can explain you but there are many
functions in that, so a big problem for me.

 
Answer #3    Answered By: Jeffrey Washington     Answered On: Oct 21

U can go through the SwingSet2 Demo..
it's (SwingSet2.jar) inside your

<javadir>\demo\jfc\SwingSet2 directory

there u will find all the Swing components demo...
JOptionPane demo is also there (8th column) & every
demo is included with complete source code...

 
Didn't find what you were looking for? Find more on dealing with JOptionPane Or get search suggestion and latest updates.




Tagged: