/** LinesPanel constructor comment. */ public Item getElementAt(int x, int y) { Item ret = boxes.getElementAt(x, y); if (ret != null) return ret; // Search connection lines return connections.getElementAt(x, y); }