This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Swing Application help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing Application help" Watch "Swing Application help" New topic

Swing Application help

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

Hi am developing an application. I have set up an ADD button, which if clicked should open the add information form in the same window. I mean should not close and open another window. also after the last text box should show the save button to save the records in database. I need the code snippet only. Any can help?
Darryl Burke

Joined: May 03, 2008
Posts: 4523

Pranit Sonawane wrote:I need the code snippet only.

Sorry, we are NotACodeMill.

... open the add information form in the same window. I mean should not close and open another window.

Take a look at CardLayout.

luck, db
There are no new questions, but there may be new answers.
Stanley Mungai
Ranch Hand

Joined: Dec 09, 2011
Posts: 155

I think You would have Gotten help ages ago if we only knew where your code did not work. Wh ich Code are you using(if you got any that is)

Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995

Nimit Mohan,
Your post was moved to a new topic.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Swing Application help
Similar Threads
Closing the child window should trigger some action in Parent window.
Saving content of an Applet as a picture
Outlook Express
An Applet that can open a running MS-Paint window and take screen shot?
Add and Edit a row