I am using a swing based application where I am using JTable . I used DefaultCellEditor for one of the columns, which requires a selection with a list. But DefaultCellEditor has many methods that I do not need. Therefore, I wrote a special CellEditor, expanding AbstractCellEditor , where I applied only the necessary methods. My question is:
(in general), if we have a class, and if we do not require all the methods of this class, is it good to use it or is it useful to write our own class, where we implement only those methods that we need? and
with the help of a user class will the application performance (memory) be improved or will it remain the same as the class that has all the methods?
Any help would be appreciated.
source share