I basically manipulated this code http://svn.openstreetmap.org/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java to view an openstreetmap using java swing.
I'm having problems with the zoom functionality. Zoom can only be an integer but the difference between two zoom levels is pretty big. How can I zoom at a more granular level? I found https://help.openstreetmap.org/questions/14324/openlayers-control-zoom-level-granularity but it's not java and I dont know how to make it work with Java.
Any help/references is much appreciated! I've been stuck on this for a while. Thanks.