This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help with combobox and pop window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with combobox and pop window" Watch "Help with combobox and pop window" New topic

Help with combobox and pop window

escobar yahya

Joined: Mar 21, 2012
Posts: 1
Hi i have a combobox and when i click on add button another frame pop up with text field(name ,address etc..) ,confirm button and cancel button at bottom of the frame. When i put something on the second window and click confirm i would have the information on the combo box. i don't really know how to doing it

Darryl Burke

Joined: May 03, 2008
Posts: 4523

You would give the Address class public methods that return the desired information.

It's not usual to use more than one JFrame in an application. Secondary windows are usually better implemented as JDialogs, commonly modal. These may be created by the static methods of JOptionPane.

Moving this to the part of JavaRanch where we discuss GUI related matters.

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: Help with combobox and pop window
Similar Threads
JTabbedPane with Keyevents
how to solve the error?
What is the best way to create GUI components- in-line, methods, inner classes or separate classes
Java Programming Help (conversions)
How to solve the Error