Rectangle 27 0

To embed them in a Java app you can easily embed a webpage with JavaFX 2 webview (javafx 2 components can be used in swing too). Or use a library they provide (if any) or implement the api and rendering yourself.

Very easy example of how to embed Google Maps in JavaFX 2:

swing - Google Maps alternatives for using in a Java Desktop Applicati...

java swing google-maps map coordinates
Rectangle 27 0

You could use TileMill and MapBox to develop and host your map and JavaFX to embed the map in a WebView as Pulsar suggested.

swing - Google Maps alternatives for using in a Java Desktop Applicati...

java swing google-maps map coordinates
Rectangle 27 0

The UI Automation Framework handles anything that uses (or maps to) native windows controls, this is the case of Java's SWT, most of C++'s widget toolkits and Delphi's VCL Forms, it also works with other toolkits that render their own controls but expose their interface for accessibility purposes (I think Java's swing is such a case).

White uses the UI Automation Framework internally so theoretically it can handle anything that the Automation Framework can handle.

Using OCR would be a lot of work and the results probably wouldn't be very good, so you should use White if you are coding in .NET or the UI Automation Framework's COM Object otherwise, because theres nothing as easy to use or that works with such an amount of interface types as the Automation Framework (I at least, haven't found anything else).

c# - Does Microsoft UI Automation framework handle Java SWT, C++, Delp...

c# ui-automation autoit
Rectangle 27 0

There is no possibility to use closer zoom level than that you can see on standard GMap i.e. in browser. Other problem is that google uses GeoPoint class based on cardinal microdegrees to draw overlays, and it's accuracy is to low. You can look on jGarminImg - it's java library - unfortunately written for using with swing, but it should be relatively easy to make it work with android. On the other hand - you have to make your own map. You can use standard overlays, or you can make your map in kml format and use this example to display it.

Well im not really looking to zoom any closer than Google maps already allows me i just want to overlay my building map that i already have.

Android custom GPS map application - Stack Overflow

android google-maps maps
Rectangle 27 0

Please Provide context for links Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why its there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

Use google map with java swing application? - Stack Overflow

java swing google-maps
Rectangle 27 0

JMapViewer, mentioned here, works well in a Swing application, but I haven't tried it in a Java Desktop Application.

swing - Google Maps alternatives for using in a Java Desktop Applicati...

java swing google-maps map coordinates
Rectangle 27 0

I've worked as a freelance for a long time and almost 90% of the projects were about Java Swing (Desktop applications). Also a lot of projects involved migration from languages like Visual Fox Pro to Java, it was a pain, because the hard part is not think in the logic which is already done, the hard part is take the code that is a mess and turn it into a good-looking code following the good practices and using design patterns, that's why it is a good idea to make a schema or a map in your mind how you can separate your code following the concepts of Model, View, Controller.

MVC as mentioned helps you to have a good-looking, maintainable and easy to read code, as well as you follow the programming paradigms and good practices.

View: Obviously, the part that interacts with the user (user interface), in case of Swing, your windows, frames, panels and all the code that involves the graphic components you need for your app.

Controller: Involves the core or business logic you stablish for your application, in this "layer" you should include the functionality and the "how my application will achieve the goals?".

Model: Related with the data you manage, for example, your entities and classes that represents the data you want to manage or give maintenance.

Applying MVC is not so hard, but as I mentioned, it could be sometimes a pain when you have to migrate your code from a not-applying-MVC structure to a MVC structured application. It is easier to start coding using MVC.

A way I get used to it is by using maven and separate my application into little "modules", of course, you don't need maven, I just found it useful in that moment, but in any case you can try practicing or get used to MVC by separating your application into little projects, for instance:

Java Project 1: application-data-model (contains all the code related with data management: entities, dtos, beans, daos)

Java Project 2: application-core-controller (contains all the business logic and functionality, you can use a facade pattern here if you want to make your code more "transparent" when you relate with your view)

Java Project 3: application-view-ui (contains all the panels, frames and graphic components)

Working this way helped me (and forced me) to get used to separate my code and keep an eye on what really matters to the project I'm working on. For instance, if I'm on application-data-model I'm focused in data model, I'm not thinking in business logic nor graphic interface.

Long explanation, maybe somebody could do it better, but hope I could have helped you or at least gave you a hand with this.

Thank you! I will need some time to think this through before I consider making it the accepted answer though. It seems logical to have business logic in the controller, but my understanding was that this was not a good idea and that it should be part of the model.

don't worry, we're here to help. You mentioned a good point, and I agree with you that model should contain some logic, but that logic should just concern to the data access and entities you handle like DAOS. In Controller you can have other processes like salary calculation, responsibility delegation. And, again as you wrote, controller will use model to manage or map the data. You can add additional patterns like facade (as I mentioned) to separate a bit more your business logic from your view.

@MarceloTataje : Also Can I use Spring for dependency injecting my controllers with Models and Views with controllers and Hibernate with Data Persistence? this seems to be straightforward as long as i maintain single instance of controller(Service) and model(DAO) as I do in my web application. Also these need to be stateless correct?

Sorry for the late answer and yes, you can make that comparation. In my opinion Spring is one of the best frameworks I've worked with. I really recommend, even when you are not in a Web environment and turning it into a desktop, you can apply the concepts you mention in your comments, Spring will make a good job in simplifying many of the functionality you want to achieve during migration. All depends on you my friend, you can achieve the functionality using standard components or get help from a framework like Spring which suits very good in this case.

java - MVC and Swing in desktop application - Stack Overflow

java swing model-view-controller design-patterns
Rectangle 27 0

I have used jxl (http://jxl.sourceforge.net/) to parse and read excel files in Java. Displaying it in Swing can then be a map dump of excel cells.

excel - how to view the xls document in java swing - Stack Overflow

java excel swing frame xls
Rectangle 27 0

A popular alternative is OpenStreetMap. Unfortunately, I can't provide exact implementation details, as I haven't tried it yet, but it certainly seems to be possible to use it in Java, according to their Wiki.

openstreetmap is the second best maps in the internet today

Actually JMapViewer and MapBox both use OSM and I'm guessing so does TileMill

swing - Google Maps alternatives for using in a Java Desktop Applicati...

java swing google-maps map coordinates
Rectangle 27 0

I have used jxl (http://jxl.sourceforge.net/) to parse and read excel files in Java. Displaying it in Swing can then be a map dump of excel cells.

excel - how to view the xls document in java swing - Stack Overflow

java excel swing frame xls