Public Member Functions | |
MultilineRenderer () | |
Component | getTableCellRendererComponent (JTable table, Object obj, boolean isSelected, boolean hasFocus, int row, int column) |
Private Member Functions | |
int | formatText (String str) |
|
|
|
Calculate the number of lines to display the string in the renderer. Setting the preferred size worked with jdk 1.3 but now does not and I did not find anything on the net so I have to find a solution by myself. The calculation is not 100% perfect but seems to work pretty well. In future we should think of changing this strategy with something better..
|
|
|