Set default data cell size for a new data type

Hi

 

We have a data type which extends the AbstractPainterDataValueRenderer. 

 

This data type is for drawing a structure, we have the structure resizable using:

 

java.awt.Rectangle frame = new java.awt.Rectangle(0, 0, getWidth(), getHeight());

 

Where the width and height are picked up from the table as the user resizes. The default cell size when the table to opened is too small, how do I go abount increasing the default size?

 

Many thanks

 

Sam

Hi Sam,

Does overwriting getPreferredSize() help?

Regards,
  Bernd

Hi Bernd,

 

That did the trick thank you very much!

 

Sam