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.