@Override public void mouseReleased(MouseEvent e) { if (pressed) { pressed = false; if (current != null) { current.setDivider(divider); repaint(bounds.x, bounds.y, bounds.width, bounds.height); station.updateBounds(); } setCursor(null); mouseMoved(e); checkMousePositionAsync(); } }
public void mouseDragged(MouseEvent e) { if (station.isResizingEnabled()) { if (pressed && current != null) { divider = current.getDividerAt(e.getX() + deltaX, e.getY() + deltaY); divider = station.getCurrentSplitLayoutManager().validateDivider(station, divider, current); repaint(bounds.x, bounds.y, bounds.width, bounds.height); bounds = current.getDividerBounds(divider, bounds); repaint(bounds.x, bounds.y, bounds.width, bounds.height); if (station.isContinousDisplay() && current != null) { current.setDivider(divider); station.updateBounds(); } } } }