[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

JOptionPane return > 1 Object?

Posted on 2010-04-09
1
Medium Priority
?
296 Views
Last Modified: 2013-11-23
Is there a way to have a JOptionPane return more than one Object?
Here is an example of a JOptionPane with text string input:
http://www.leepoint.net/notes-java/GUI/containers/20dialogs/10joptionpane.html
I would like to do this but with another input, e.g. another text String, or JSpinner.
Is this possible with JOptionPane?
0
Comment
Question by:allelopath
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 30249424
no its not. you should instead use a JDialog.
JOptionPane is just a utility class.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question