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

  • Home
  • SEARCH
  • 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 8331541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:26:46+00:00 2026-06-09T02:26:46+00:00

I have encountered with this problem often. Couldn’t think of a way to how

  • 0

I have encountered with this problem often. Couldn’t think of a way to how to face this. Now I got this excellent forum!! I’m sure experts here will help me with this.

This is not a problem about a specific code segment like thing. I am capable (as I think) of doing some advance projects in java. It means, simply, I can finish the project to give the exact result.

But the problem is, though I can finish it some how, I’m not satisfied with the management of the classes etc. Actually I don’t know how to properly manage it. I’ll explain considering the project I’m currently working on (I’m not a professional coder, this will be for my self learning).

I’m working on a database management system (MySQL + Java). There I’m hoping to implement several features there. The flow will be, roughly, like this.

1. Login
2. Main window

Main window will be like this.

enter image description here

In the left panel you can select what you need to do.

Eg.

*. Add some entries to the database

*. Search database

*. Other..(will be add later)

Can some one please tell me how to manage all those things, two frames and several panels.

What I’ve done is like this.

I’ve written a managerClass which has the main method. Then It’ll call loginFrame first. After validation, loginFrame calls a method in managerClass, to load mainFrame. But I keep a reference to the managerClass in all the frames, panels etc.. as I save all the required info in managerClass, like user name ect..

But when modifying and debugging, things become really really difficult. As I haven’t done thing according to any specific rule. I’ll have to modify almost all the classes to do a slight modification. I’ve though a lot and sea

  • 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-09T02:26:48+00:00Added an answer on June 9, 2026 at 2:26 am

    From what I can understand of your application, your main issue is the coupling between your components and the different layers of the application (presentation, interaction control, domain logic). I would suggest using two design patterns (or styles) that may help here:

    1. Model-View-Presenter: separates the Model/Domain logic from the presentation (View) from the logic of controlling user interactions. I’ve used it recently in a large application and I’ve found it really helps to separate concerns in a clean way and makes testing much more simple. Please don’t confuse it with the Model-View-Controller model, which is close, but have many issues. There’s a nice article by Martin Fowler describing these two patterns
    2. Adopt an event based interaction between your components. Instead of the Login frame calling the Manager class, make it fire an event (“user authenticated”), which is handle by the interested components. For example, you may have a small user account details panel in the main window which is not displayed until this event is triggered. Unfortunately, I’m not aware of any event framework for plain Java (which I suspect if the what you are using for development) The one I use is for Google Web Toolkit.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered this problem today and I don't have an explanation for it.
I have encountered this topic lately and couldn't understand why they are needed. Can
I have encountered this problem: Depending on numbers from I want to create a
I'm hoping someone have encountered this problem before and will be able to help
I am developing a mobile website but have encountered this problem - a font
I have encountered this problem a few times, and am not able to figure
i am getting started with zend framework.I have encountered this problem with forms. when
I'm new to Rails and have the encountered this problem. I have a books_controller
Hey this is the weirdest problem i've ever encoutered, I have 2 projects that's
I have encountered this error when trying to delete a cell, using a custom

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.