public void mousePressed(MouseEvent e) {
if (e.getClickCount() == 2) {
int tabIndex = javaFilesTabbedPane.getUI().tabForCoordinate(
javaFilesTabbedPane, e.getX(), e.getY()); // 找到雙擊的標(biāo)簽頁(yè)
if (tabIndex == -1) { return; }
removeTab(javaFilesTabbedPane, tabIndex, javaFiles); // 刪除標(biāo)簽頁(yè)
}
}