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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:02:24+00:00 2026-05-16T07:02:24+00:00

I have one Mediator.java which do all the functions. And there is RecordGenerationJPanel.java to

  • 0

I have one Mediator.java which do all the functions. And there is RecordGenerationJPanel.java to save the information of a record.NewApplicationJPanel.java is main screen and when I click jbtnGenerate in it, it will show RecordGenerationJPanel and do the showGern method in Mediator class.

All the methods have done by another developer and I have asked to make a new class which will function like showGern method. New showGern class should do some combo box disabled and it also include new text field. But it will be invoked only a checkbox in main screen(NewApplicationJPanel) is checked. Otherwise, it will call the original showGern Method.

Do I need to create another RecordGenerationJPanel? Or, can I do it in same RecordGenerationJPanel? If it’s same, how should I do to show different enabling or disabling and hiding some text field according to condition.

  • 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-16T07:02:25+00:00Added an answer on May 16, 2026 at 7:02 am

    Usually, if RecordGenerationJPanel and the requested new class share some attributes and methods, those attributes and methods should be in one class and used by both. So if theres’s a future change requirement of a bug fix that affects those common parts, you just have to do it once and both panels benefit from the single fix.

    In your case, I’d really copy the existing RecordGenerationJPanel to a new class and modify it to meet you requirements.

    If it works, you can start a refactoring and extract the common parts to a new class.

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

Sidebar

Related Questions

I have one central MainCheckerActivity which checks if all the settings are OK. This
I have one XML request which I need to modify (to XML) and then
I have one user (only one, all the others are fine) trying to update
I have one drop down list in my page, which contains two options. What
I have one table which contains events and dates, and another which contains the
i have one 'C' 'DLL' which can take structures as input, i have to
I have created a Scrollviewer in WP7, which harbors 3 usercontrol, each one of
I have one many-to-many relationship in my model. There are two entities, Emergencies and
i have one table, which contains that fields mid , email 1 , 'user_a@...'
I have one text box in which the user can enter text as long

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.