[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Displaying database columns in a JOptionPane

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
cutjack
Asked:
cutjack
2 Solutions
 
armoghanCommented:
Would suggest that use JDialog instead of JOptionPane.
0
 
Giant2Commented:
>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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now