Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:46:35+00:00 2026-05-29T16:46:35+00:00

I have created a JFrame form using netbeans GUI builder and place buttons on

  • 0

I have created a JFrame form using netbeans GUI builder and place buttons on it and everything is functioning well.Now what i want is to call another JFrame when i press a button.This i have also written a code and its working but the problem is that i want to design this JFrame the same way i designed it my main JFrame where as the GUI builder shows me the first JFrame only.Please guide me what to do in this scenerio.

JFrame v = new JFrame("Password");

v.setVisible(true);

v.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

v.setSize(100, 100);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:46:35+00:00Added an answer on May 29, 2026 at 4:46 pm

    I will assume your using netbeans so sorry if I’m wrong about that (you didn’t say).

    There are two way to do this the first is to create a separate form for your new JFrame (Right-click>New>JFrame) and then create a new instance of it when your button is clicked.

    The second option is to add it in GUI builder if you do this it won’t show at first, you have to go to the left hand side where there is a list of components and click on Other Components>jframe1 to make it appear (this will hide your main form which you can hide by clicking on the main form component in the navigator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GUI written using netbeans with a few simple components in place.
I am using swing to create my GUI. J have a JFrame containing one
I have created a JFrame and want to hide this from the taskbar in
I have created a JApplet using the JUNG library in Netbeans that compiles and
I've created a frame with a 3x3 grid of buttons using this code... JFrame
I have created a JFrame subclass containing 9 JPanels using a GridLayout (3x3). I'm
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a C# class file by using a XSD-file as an input.
When I build a GUI for my Java SE app with Netbeans GUI builder,
i have a simple JPanel bean in my projects, now i want to drag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.