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 8500929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:04:28+00:00 2026-06-11T01:04:28+00:00

My program consists of 3 main ‘sections’. Main function, Login form and App form.

  • 0

My program consists of 3 main ‘sections’. Main function, Login form and App form. The main function should do something like: Open Login form, wait for it to close, then open App form. I can’t get the waiting part to work, or rather, I don’t know how I would go around doing that.

I was told by someone to use a JDialog instead and use setModal(true), but with that approach the Login form wouldn’t appear on the taskbar, which is terrible in my opinion.

Another thing I considered was to open the App from inside the Login after it closes, but that feels like bad design since that’d make the Login form non-reusable.

So, please, what would you suggest?

  • 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-06-11T01:04:29+00:00Added an answer on June 11, 2026 at 1:04 am
    • Why must the login appear on the task bar, since the main app will be there, and you don’t want more than one task bar item for an individual program. Your best option may be to use a modal JDialog.
    • Another option is to use CardLayout to swap “views”.
    • A third option is to use a JFrame if you must but attach a listener to it, a WindowListener I believe, to respond to its close event.
    • Regardless of which route you go, your login gui should be a JPanel so that you can place it anywhere you wish and then change your mind later.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android App which consists on different modules. The Main module is
My python application consists of main program and several modules. Each module contains import
When you're writing a program that consists of a small bit of main logic
I have two forms, let's call them Main and Form2 . Main form consists
I have a program (Main application which consists of legacy code ) which consumes
I'd like to use @Grape in my groovy program but my program consists of
I have a very small c++ program that consists of two files: main.cpp and
I have a Python program that consists of several modules. The main module creates
A C++ program consists of two .cpp files, main.cpp and f.cpp. Code of the
The workspace consists of 2 projects. One is the main, user-facing, grails app, which

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.