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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:40:44+00:00 2026-05-18T08:40:44+00:00

In our application we have two or three classes which contains the entire Java

  • 0

In our application we have two or three classes which contains the entire Java Swing application logic. These two or three classes contain around 7k lines of code.

Now I have been assigned the task to refactor this Java code.

How do I start? Is there any tool available that will do the refactoring or at least guide us?

  • 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-18T08:40:45+00:00Added an answer on May 18, 2026 at 8:40 am

    I assume that you are trying to break up these large classes into smaller ones. The most common way to do this is with the Extract Class refactoring. It just happens that this is a major topic in my PhD thesis work.

    One of the hard parts is deciding what goes into the new classes. There are two publicly available tools that I know of that help – ExtC (my tool) and JDeodorant. Both are Eclipse plug-ins, and I would classify both as being prototypes. If you want to try to use my tool, I’ll be glad to help.

    Once you decide what should go into the new class, you have to do the actual work of separating the class into others. Eclipse’s Extract Class refactoring is misnamed and isn’t really helpful. IntelliJ’s IDEA is much better, but still has some bugs. JDeodorant can also perform the split, but it also has some bugs.

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

Sidebar

Related Questions

In our web application we have a directory which resides outside of the project.
Our application is interfacing with a lot of web services these days. We have
While defining our application architecture (which contains both web UI and external web services)
We have an existing application for which one of our DTO object has a
In our application we sometimes have to make minor GUI modifications for different customers:
We have an application that downloads some files in the background. Our application pops
Our application is well structured (well we did our best!) and we have split
Have Log4Net configured in our application to use a date stamped name and a
We have in the process of upgrading our application to full Unicode comptibility as
We have a situation where our application calls some stored procedures on a sql

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.