Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to use Offline Navigable Map in Netbeans IDE with Java Swing

  1. #1
    Junior Member
    Join Date
    Dec 2021
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to use Offline Navigable Map in Netbeans IDE with Java Swing

    I am developing a program that will run on linux using java swing in netbeans.

    I tried using the jxmapviewer library with open street map but I was only able to view the map online.

    Since the system will not be connected to the internet, I need to view the map offline, I need to show the information I get from the gps on the map and I need to keep a record of this information.

    How can I do it? Thank you for your help.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to use Offline Navigable Map in Netbeans IDE with Java Swing

    That sounds like a big project. Maps take a lot of space on your PC. I did something like that a few years ago but can't find it right now. I used Google to find downloadable maps. The names I found in my project folder were Leaflet and Mobile Atlas Creator.
    My project may have involved HTML and javascript. I will have to do some research.

    --- Update ---

    Also posted at: https://coderanch.com/t/748124/java/...p-Netbeans-IDE

    Please read: http://www.javaprogrammingforums.com...s-posting.html
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to use Offline Navigable Map in Netbeans IDE with Java Swing

    One possibility is to see if the code supports the file: protocol for reading the images.
    The OSMTileFactoryInfo constructor used in the Sample programs supports using your own URL to get the map files.


    Look at this file for sample code and ideas for offline:
    jxmapviewer2-master\examples\src\sample9_offline\Sample9.java
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to Print JFrame content using NetBeans Java Swing
    By vk020 in forum AWT / Java Swing
    Replies: 3
    Last Post: September 12th, 2014, 04:25 AM
  2. Change JAVA Swing GUI Window in NetBeans
    By tazeunite00 in forum Java IDEs
    Replies: 4
    Last Post: August 29th, 2014, 02:12 AM
  3. Change JAVA Swing GUI Window in NetBeans
    By tazeunite00 in forum Java Theory & Questions
    Replies: 3
    Last Post: August 29th, 2014, 12:58 AM
  4. Java Help Offline
    By agent27 in forum Java Theory & Questions
    Replies: 2
    Last Post: March 13th, 2014, 02:08 PM
  5. Problem with java swing JButton in Netbeans IDE
    By vrp in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 12th, 2011, 11:38 PM

Tags for this Thread