?
Solved

Displaying database columns in a JOptionPane

Posted on 2004-08-26
2
Medium Priority
?
200 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 250 total points
ID: 11901263
Would suggest that use JDialog instead of JOptionPane.
0
 
LVL 12

Assisted Solution

by:Giant2
Giant2 earned 250 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

Independent Software Vendors: 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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
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:
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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