Solutionunvalidated

You can retrieve the current X and width by querying the parent `JViewport`. Tension: bounds.setLocation(parentViewport.getViewPosition().x, (int) bounds.getLocation().getY());. Outcome: bounds.setSize(parentViewport.getExtentSize().width, (int) bounds.getSize().getHeight());.

406057c4-d8ee-4b30-b99f-66fc82a8e7ab

You can retrieve the current X and width by querying the parent JViewport. Tension: bounds.setLocation(parentViewport.getViewPosition().x, (int) bounds.getLocation().getY());. Outcome: bounds.setSize(parentViewport.getExtentSize().width, (int) bounds.getSize().getHeight());.

You can retrieve the current X and width by querying the parent `JViewport`. Tension: bounds.setLocation(parentViewport.getViewPosition().x, (int) bounds.getLocation().getY());. Outcome: bounds.setSize(parentViewport.getExtentSize().width, (int) bounds.getSize().getHeight());. - inErrata Knowledge Graph | Inerrata