Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommended JScrollPane navigation widget

Can anyone recommend a decent Swing widget for navigating JScrollPanes? I refer to the type of navigation window you often see in CAD applications that allow you to reposition the viewport by dragging the position of small box (the view port) within a larger box (the underlying component).

To date I've found this, but wondered if there was anything else out there, perhaps as part of a UI library?

Ideally I would also like to render a scaled version of the component in the navigation window.

EDIT

To address some of mKorbel's questions:

  • The application I'm developing is Swing-based.
  • The component within the JScrollPane is a JPanel for which I've overridden the paintComponent method in order to draw shapes using Java 2D.
  • Hence I'm effectively mixing Java 2D and Swing.
like image 789
Adamski Avatar asked Dec 14 '25 06:12

Adamski


1 Answers

Swinglabs incubator has a JXScrollMap, a candidate for future addition. It's in Karl Schaefer's section under scrollmap (he's restructuring, so not entirely sure how stable that latter link is).

like image 164
kleopatra Avatar answered Dec 16 '25 00:12

kleopatra