我已经使用MVC在数据库中编写了上传.csv文件的代码。如何只上传新记录并忽略现有记录?
@Override
public String getToolTipText(MouseEvent event) {
String tooltip = super.getToolTipText(event);
Point p = SwingUtilities.convertPoint(this, event.getPoint(), iconLabel);
if (iconLabel.contains(p)) {
tooltip = "I'm a banana";
}
return tooltip;
}