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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:37:03+00:00 2026-06-11T15:37:03+00:00

I am doing a swing based application where I use JTable . I used

  • 0

I am doing a swing based application where I use JTable. I used DefaultCellEditor for one of the column which requires combo box selection. But DefaultCellEditor has many methods which I don’t require. So I wrote a custom CellEditor by extending AbstractCellEditor where I have implemented only the required methods. My question is

(in general) if we have a class and if we don’t require all the methods of that class is it fine to use it or is it good to write a custom class where we implement only those methods which we require? and

by using custom class will the performance (memory wise) of the application will be improved or it remains same as the class which has all the methods?

Any help will be appreciated.

  • 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-11T15:37:04+00:00Added an answer on June 11, 2026 at 3:37 pm

    Unless you have seriously good grounds for believing that nothing else in the application including the JDK itself uses DefaultCellEditor, you are almost certainly wasting your time by making things actively worse.

    You also need to consider that you might have saved maybe 100k of code in extreme cases, where typical JVMS use around a gigabyte to execute. So you may have saved 0.01% of code space. This is not a productive use of your time. The correct procedure is to test and measure where the time and space bottlenecks really are, after the fact. Programmers are notoriously poor at predicting these things.

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

Sidebar

Related Questions

I am doing a Java application, which will use swing user interface. It will
I am doing a project in java swing in which I have to use
We have a swing based application that does complex processing on data. One of
Doing my first SL4 MVVM RIA based application and i ran into the following
I'd like to add persistence to my Swing-based application; and this is the first
I've been doing quite large application recently with Java - Swing. Now I'd like
I am creating a Java Swing based desktop application in Netbeans. The application consists
I am doing a project in Java Swing. I have a JDialog which contains
I've been tasked with doing refactoring to a Java Swing application we have here
I'm writing a simple Swing application in NetBeans and doing so on an Ubuntu

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.