public void mouseDragged(MouseEvent e) { if (station.isResizingEnabled() && !station.isDisabled()) { if (pressed && current != null) { divider = current.getDividerAt(e.getX() + deltaX, e.getY() + deltaY); divider = current.validateDivider(divider); 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) { setDivider(current, divider); station.updateBounds(); } } } }