Solved

Displaying database columns in a JOptionPane

Posted on 2004-08-26
2
199 Views
Last Modified: 2011-04-14
Hi,
I am searching an Access database for a surname and want to display the results in a JOptionPane if there is more than the one person with the surname. I want the JOptionPane to contain the list of the persons details. Does anyone know the best way to do this. Appreciate the help......
0
Comment
Question by:cutjack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 125 total points
ID: 11901263
Would suggest that use JDialog instead of JOptionPane.
0
 
LVL 12

Assisted Solution

by:Giant2
Giant2 earned 125 total points
ID: 11901797
>I want the JOptionPane to contain the list of the persons details
I believe a way is to use a JDialog (Or JFrame) to display the person survey (that have the same surname, if I well understand what you want to do).
This could be done using a JList or a Choice.
Then, if one click over a person (select it), on the bottom of the Window apper the data relatives to the person selected.

Hope this help you.
Giant.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

717 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