Solved

Displaying database columns in a JOptionPane

Posted on 2004-08-26
2
191 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
Comment Utility
Would suggest that use JDialog instead of JOptionPane.
0
 
LVL 12

Assisted Solution

by:Giant2
Giant2 earned 125 total points
Comment Utility
>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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now