1
我想實現帶有JTable作爲目標的DropTargetListener。這大約是我想怎樣做:java/swing:顯示JTable中潛在的拖放目標行
@Override public void dragOver(DropTargetDragEvent event) {
MyItem item = getMyItemFromTransferable();
int nrows = item.getTableRowsRequiredForDrop();
// now highlight rows in the table under the drop cursor.
}
我怎樣才能找出哪一行JTable中是光標所在的的DropTargetDragEvent正在行?