Protect the table header when the pointer is outside.
This commit is contained in:
		
							parent
							
								
									35f9ae384e
								
							
						
					
					
						commit
						0042fb352b
					
				| @ -18,6 +18,9 @@ public class ColumnTable extends JTable { | |||||||
| 				String tip = null; | 				String tip = null; | ||||||
| 				java.awt.Point p = e.getPoint(); | 				java.awt.Point p = e.getPoint(); | ||||||
| 				int index = columnModel.getColumnIndexAtX(p.x); | 				int index = columnModel.getColumnIndexAtX(p.x); | ||||||
|  | 				if ( index < 0 ) { | ||||||
|  | 					return null; | ||||||
|  | 				} | ||||||
| 				int realIndex = columnModel.getColumn(index).getModelIndex(); | 				int realIndex = columnModel.getColumn(index).getModelIndex(); | ||||||
| 				tip = ((ColumnTableModel) getModel()).getColumn(realIndex).getToolTip(); | 				tip = ((ColumnTableModel) getModel()).getColumn(realIndex).getToolTip(); | ||||||
| 				return tip; | 				return tip; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user