0

Im having trouble editing a cell, i'll picture cause my english is not very good.

problem

I add a TableCellEditor (extends a DefaultCellEditor, i know is not the best but the code is not mine). When i type letters are not ,

i tried to table.setRowsHeight(comp.getHeight()); works but i don't want this, i want the textfield fix in the row

So i tried to comp.setPreferredSize(comp.getWidth(),table.getRowsHeight()) but doesn't work as expected.

nachokk
  • 14,363
  • 4
  • 24
  • 53

1 Answers1

2

I encountered a similar issue when using the Nimbus look-and-feel. Removing the border by calling

JTextField#setBorder( null )

solved it

Robin
  • 36,233
  • 5
  • 47
  • 99