Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me on this Application

 
Demith Waruna Samaraweera
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I am developing a application to load an image of map and to show the mobile customers on the map using GPS coordinates
I am using both J2SE and J2EE

The main problem with me is i am adding a JLabel into JScrollPane and load the image to the JLabel, using the ImageIcon

The problems are

1 When I am zooming the image the ScrollBars does not adjust accordingly
2 I cant set the origin of the ZoomLabel as my wish it always set to 0,0
3 I cant add the user defined coordinates to the image(GPS of Maps) and to devide them when the mouse move

Thnk you
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you are doing some custom painting that requires more flexibility than JLabel was designed for. You could try making a custom graphics component
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic