Solved

Displaying database columns in a JOptionPane

Posted on 2004-08-26
2
196 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

680 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