Incoporate a map using swing in my java app

Hello,
I want to incoporate a map into my java application (NOT a web application).
I know you can do something using Googlemaps but i want far more functionality as
I am using GPS NMEA data. so for one example:
my system already gets GPS data and parses it into lat/long coords. Using the map then, it should use these
coords and plot a route and also animate the route. at this stage my app only parses the data but because i do not have a map/tutorial i cannot create the route on the map.
so my question is: can someone please direct me to a tutorial that does this or gives an example of using lat/long on maps(google,etc) preferebly in Java. i have already tried googling it but cannot find what i am looking for.
i found a website that actually does what i want: http://www.gonmad.co.uk/nmea.php - try it out with sample GPS NMEA data...
thanks for reading

anyone

Similar Messages

  • Can't use Swing in my java application

    I installed J2SE 5 Update 4 on my machine and was trying my hands on creating GUI using swing. I kept getting the error message: "Package javax,swing not found in import".
    I have the statement: import javax.swing.*; in my code so I don't what to do again.
    Thanks

    I think your best bet is to try uninstalling and installing Java again. Your problem could be something small, however you wull eaist less time to re-install everything, then to try searching for the problem.
    btw-What Development tool do you use? Just in case you may try to check whether it could be a problem of the ide (It should not be however), just check with another Ide, and see if the same happens. If yes, then follow my first advise, I think it would take you less time.

  • Is there a way to define 2 different areas using boundaries in a Java app?

    Hi,
    Im tryig to create a game for kids were they can learn how to write! In one of the games there will be a template of a letter, for example A, the A wii be hollow inside so that the kids can folow the outline! But if they go over a line i want the program to display a message telling them this and having to restart drawing from the mouse!
    I know how to draw the lines fron the mouse i just dont kno if it is possible to define different areas according to the shape of a letter??
    Hope you can help
    RSH

    This code will get you a java.awt.Shape representing the outline of any String.
    import java.awt.Shape;
    import java.awt.Graphics2D;
    import java.awt.Font;
    import java.awt.font.FontRenderContext;
    //Whatever other code you need
    //Getting shape of text, put somewhere you can get a Graphics from
    FontRenderContext context = g2d.getFontRenderContext();        //where g2d is a Graphics2D
    Font anyFont = new Font("Arial", Font.BOLD, 20);
    String myText  = "ABCDEFG";
    TextLayout textShaper = new TextLayout(myText, anyFont, context);
    Shape outline = textShaper.getOutline(null);           
    //you can pass a AffineTransform to getOutline( ) if you want some kind of transformation, probably be best
    //if you used it to move (translate) the text outline so you can check to see if it contains the mouse pointer.With the Shape representing the outline of the text, you can call contains( ) on it, passing it a Point2D or the x and y locations of the mouse in double precision which returns true if the Shape contains the mouse.
    I'm pretty sure that it should work.

  • Using JBoss to distribute Java App

    Hello...
    How can I distribute my JAVA application which has been developed using EJB in JBoss ?
    What CLASSES should I attached with the JAVA application ?
    I believe in Weblogic we should do the same thing, right ?
    Please Help.
    Thank you.

    Greetings,
    i think you missed what the question was askingIt wouldn't be the first time... :)
    i think they were asking if it's possible to deploy a
    client application in an .ear file from JBoss.I've yet to find evidence of the same in JBoss. However,...
    similar to Sun's RI server, you can distribute a
    client application by packaging it into the .ear fileThis isn't so much for client distribution as it is for client integration and in the RI it primarily serves as the means to provide authentication support to your client, though it can also be used to provide lookup bindings to referenced beans. JBoss uses a different means of authenticating the client by passing relevant authentication credentials through the InitialContext (similar to WebLogic) - so it isn't necessary to integrate the client with the application. Additionally, JBoss provides client proxies so it isn't necessary to distribute the stub classes (just the relevant proxy jars ':-p - though these can be deployed to a network share or through JBoss' class server), as with the RI. As for lookup binding (ala <ejb-link>), the "jury is still out" on whether this is a truly useful "feature". The EJB ideal, as with other component models, aims toward "shrink-wrapped" distributable "assemble-and-go" components. In such a world :), client developers work to write use(r)ful interfaces to the deployed business logic and so, presumably, have knowledge of the actual binding names... Okay, okay, so the world isn't ideal and the industry has yet to embody "shrink-wrapped" component portability and distribution (even Sun sells platform - iPlanet - specific components ':-/ ). However, how often have you coded clients without knowing the component binding names? For myself, it's been practically never ("practically", only because I've played with this 'feature'). Having said that, it's possible we'll see a paradigm shift with the advent of 2.0 and Local interfaces where a fully integrated (read "tightly coupled") client can also make use of them...
    i've read about other servers that you can connect to
    that client application by using java-jar jarName.jar
    ormi://serverName user password but i haven't gotIf I'm not mistaken here as well, this is Orion's method of implementing client authentication...
    this to work with jboss. also, to connect to a clientIt's emulateable if your beans have a security login module configured (see chapter 9 of the JBoss documentation), and your client accepts the necessary command-line arguments...
    app using Sun's RI server, they have they're own tool,
    runclient.Which brings up the login dialog before starting the client.
    any insight?I hope this helps.
    Regards,
    Tony "Vee Schade" Cook

  • How to pull data from EJB and present them using Swing ?

    Hi all,
    I've written stateful session bean which connect to Oracle database, and now I must write stand alone client application using Swing.
    The client app must present the data and then let users add,delete and edit data and it must be flexible enough to iterate through the records.
    The swing components can be JTextField,JTable etc.
    How to pull the data from EJB and present them to users with the most efficient network trip ?
    Thanks in advance
    Setya

    Thanks,
    Since the whole app originally was client-server app and I want to make it more scalable, so I decide to separate business logic in the EJB but I also want to keep the performance and the userfriendliness of the original user interface, and I want to continue using Swing as the original user interface does.
    I've read about using Rowset and I need some opinions about this from you guys who already have some experience with it.
    Any suggestions would be greatly appreciated.
    Thanks
    Setya

  • Java Apps Files Not Working - N 500

     I Have N 500 Symbyan Belle Refresh--Now Its Not Working Any f .Jar or jad Files Also .Sis Files Working Corect Plz Help Me..

    Also have this problem.    We also used to point our java app shortcuts to the system32 or syswow64, but with Java 8 this is no longer an option.  Updating shortcuts every time there is a new java version is unrealistic.  Similar to Jeff, the symlinks in the ProgramData folder don't seem to work.

  • Uninstalling java apps.

    Hello...
    I'm having a bad experience over here cause I cant use or Uninstall ANY java app on My nokia 5530.
    "Internal Errorending stop app request to JavaCaptain Failed"
    I have been trying all to solve this but I cant.
    Please help me!
    Thanks.
    Solved!
    Go to Solution.

    I am presuming you have installed this software on a memory card - this error is mainly caused to removing the memory card when apps etc are on there
    first try a soft reset (only resets settings no data deleted) *#7780#
    however if that doesn't work you may have to format your memory card
    CJSS IT & Multimedia Solutions
    http://cjss.eu.org
    Was I Helpful? Please Kudos (To Kudos press the green star on the left, thanks.)

  • OT: Good version control/synchronization program for my Java apps

    Hi,
    I use one of my Java apps on a number of computers in my home, as well as on my work computer. The program is over a meg, but I make changes to it (almost daily) that affect only a few small files. I'd like to find a (preferably free) program that can do something like the following:
    I make a change, then click "update on server." The program sends any modified files (and only modified files) to my web server (whose ftp or ssh information i will have configured in the program).
    Now, when I am on any of computers (which would also have the program I'm looking for installed), I just click "sync to latest version" and it downloads the new files from my server.
    I know Tortoise SVN is supposed to be good for version control, but I can't tell if it can do something like I described above.
    Thanks in advance for any ideas,
    John

    Both Subversion and CVS provide this kind of support. They both have Windows clients that integrate with the Windows file system. For Subversion the commonly used Windows client is Tortoise, for CVS its WinCVS, there are others.
    Subversion is newer and easier to use, but is not supported by as many IDE's as CVS. Eg. JSE8 doesn't support SVN directly, although there is a profile you can install.

  • Registering a Java App to run with Windows NT

    I couldn't find a solution to this in searching, perhaps because it's something obvious I'm just missing.
    I've created a Java app which monitors ASP pages every hour to see whether or not the engine is running. That works fine. I want NT to launch this application every time the server boots, but am clueless as to how to do that. It's easy enough for me to reference the app in a .bat file, but I still don't know how to get that to launch, let alone have NT simply run the main method.
    In this instance, I'm using IIS. Is there something that it uses to launch a Java app automatically?
    Thanks in advance.

    I would try just inserting the call in the
    autoexec.bat file a la:
    javaw myApp
    Mark (aka Ekmel)Except, o Evil Adobe, NT doesn't use an Autoexec.Bat.
    I tried popping it into the Startup folder, but it
    doesn't seem to do anything. Thanks, though.My autoexec.bat file is in the startup folder and it
    seems to be setting the path and classpath
    correctly. I'm going to refund your Duke unless/until I'm
    able to help you out.
    Mark

  • Without BPM:Call RFC using JCO in interface mapping using java mapping

    Hi all
    I have a very small scenario where REQUEST from the customer comes via Web Service all i have to do is to read the request using SOAP adapter and call an interface mapping(lets say the name is IM_TEST) inside which there is a JAVA MAPPING program written which will call an RFC in CRM using JCO.
    Now this was really simple and i cud test the Interface mapping successfully, but the problem is when loading the scenario in integration directory i have certain things to do
    1. to set the SENDER AGREEMENT which i did correctly
    2. set the RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT now here i am stuck because there is no receiver in my case as the RFC is called inside the mapping only.
    can i call one more message mapping in IM_TEST which will write file onto the XI directory and then in RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT i can mention the reciever as FTP.
    I tried it but i gives the following error
    Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_TEST_WRITE_FILE: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Parsing an empty source. Root element expected!
    Please help me how to complete the scenario so that customer can run it end to end.
    <REMOVED BY MODERATOR>
    Edited by: Prateek Raj Srivastava on May 12, 2010 1:44 PM

    Stefen
    What do i do then...actually this is the project requirement. They want a very fast response from PI and thats why they wnt us to omit BPM and the Graphical mapping from the scenario.
    I am able to test the interface mapping which calls the the Java mapping inside which there is an RFC call, but i cannot implement it end - to - end as there is no receiver business system in this case. The only business system i have is the SOAP sender.
    I am really troubled now, please help me with a solution.
    Is there any other possible way through which the process can become very fast whic hcan meet their requirement.
    Regards
    Naina

  • JAVA mapping using SAX parser adds extra tags

    Hi,
      We are using  java mapping using a SAX parser.It works well in standalone application ie it parses correctly and gets our desired xml structure and the xml is well formed too but when we import it in XI as a jar file it does not throw any errors but adds extra start tags, as a result the output xml is not well formed.XI is adding extra start tags.
    If any one else has faced a similar situation please help.
    Regards,
    Anirban.

    Hi Roberto,
    Thank you for the response.
    As I said, it doesnt throw any error. It is working perfectly in standalone application. But when we deploy it to XI Server, it is not forming the well formed XML. We too are puzzled by this situation.
    Okay, i will explain my scenario here.
    The following is my input XML to the java pgm..
    <Header>
    </Header>
    <Body>
    </Body>
    <SubBody1>
    </SubBody1>
    <SubBody2>
    </SubBody2>
    <SubBody3>
    </SubBody3>
    <SubBody4>
    </SubBody4>
    <Trail>
    </Trail>
    The desired output is
    <Header>
      <Body>
         <NameChanged1>
            <NameChanged2>
    <SubBody3>
    <SubBody4>
    </SubBody4>
    </SubBody3>
    </NameChanged2>
    </NameChanged1>
    <Trail>
    </Trail>
    Just look at the SubBody2 and SubBody1 node, its tag name has been changed in the output XML. Thats y i have decided to use java mapping instead of message mapping.
    I have developed the code for everything, i.e for changing the tag name and for forming the nested xml and it is working fine as a standalone application. But while deploying it to XI, the output is not well formed. I dont know the reason for it. Even I have checked the cardinality of the output Data types, that I have created. Its perfectly okay with all.
    Any Ideas???
    Regards,
    Anirban

  • Mapping using Java Coding

    I've got a big trouble. First, I'm trying to do mapping using Java Coding based on the TopLink Developer's Guide.
    I'm using a Employee's Table as usual, but here is the problem, I can not do inserting on the database after I do mapping. As a note, there is no error compile and also I can do the session login already.
    Employee.java
    public class Employee extends oracle.toplink.sessions.Project{
         private Long id;
         private String fnama;
         private String lnama;
    public Employee() {
    setName("ObjectTab");
    applyLogin();
    addDescriptor(empDesc());
    conformAllDescriptors();
    public String getFnama() {
         return this.fnama;
    public String getLnama() {
         return this.lnama;
    public void setFnama(String fnama) {
         this.fnama = fnama;
    public void setLnama(String lnama) {
         this.lnama = lnama;
    public void applyLogin() {
    DatabaseLogin login = new DatabaseLogin();
    // use platform appropriate for underlying database
    login.usePlatform(
    new oracle.toplink.platform.database.oracle.Oracle9Platform());
    login.setDriverClassName("oracle.jdbc.OracleDriver");
    login.setConnectionString("jdbc:oracle:thin:localhost:1521:pusat");
    login.setUserName("tryo");
    login.setEncryptedPassword("a, ENCRYPTED");
    // Configuration Properties
    setDatasourceLogin(login);
    public ClassDescriptor empDesc() {
    ObjectRelationalDescriptor descriptor = new ObjectRelationalDescriptor();
    descriptor.setJavaClass(Employee.class);
    descriptor.setTableName("EMPLOYEES");
    descriptor.setStructureName("EMPLOYEE_T");
    descriptor.setPrimaryKeyFieldName("ID");
    descriptor.addFieldOrdering("ID");
    descriptor.addFieldOrdering("F_NAME");
    descriptor.addFieldOrdering("L_NAME");
    descriptor.addDirectMapping("id", "OBJECT_ID");
    descriptor.addDirectMapping("fnama", "F_NAME");
    descriptor.addDirectMapping("lnama", "L_NAME");
    return descriptor;
    Main Class:
    protected String getSessionsXmlPath() {
    return "sessions.xml";
    protected String getSessionName() {
    return "Session";
    protected void createSession() {
    XMLSessionConfigLoader loader = new XMLSessionConfigLoader(getSessionsXmlPath());
    SessionManager mgr = SessionManager.getManager();
    session = (DatabaseSession)mgr.getSession(loader, getSessionName(), Thread.currentThread().getContextClassLoader(), true, true);
    public static void closeSession(){
    SessionManager.getManager().destroyAllSessions();
    session = null;
    private void jButton1_actionPerformed(ActionEvent e) {
    Employee myEmp = new Employee();
    createSession();
    private void jButton2_actionPerformed(ActionEvent e) {
    Employee theEmp = new Employee();
    UnitOfWork uow = session.acquireUnitOfWork();
    try{
    theEmp.setFnama("A");
    theEmp.setLnama("B");
    uow.commit();
    }finally{
    uow.release();
    For everybody who already knows the solution, please reply as soon as possible. Because I really need this solution to finish my last final project.
    Thanks

    When you create a new instance you must register it with the UnitOfWork in order to have the new entity persisted.
    Employee theEmp = new Employee();
    UnitOfWork uow = session.acquireUnitOfWork();
    theEmp.setFnama("A");
    theEmp.setLnama("B");
    uow.registerObject(theEmp);
    uow.commit();
    Doug

  • Using OWB in MOC map i am getting error:java.lang.reflect.invoc

    Hi All,
    When i am trying to deploy any of the ammping using OWB for oracle MOC.
    As part of the deployment, when I tried for the first following mapping:
    using MTH-->MTH_TARGET--> Mapping
    · List of deployable objects and category (EBS-Specific / Non-EBS Specific)
    · EBS Specific-Maps : MTH_WO_OI_INIT_DMF_MAP
    I am gettinge the following error while opening the map :
    java.lang.reflect.invocationtargetexception
    Because of that its not deploying at all for any of the mapping.
    I am sometimes getting error nested transactions are being carried out .But if I logging in and logging out this error doesn't comes but the error which I mentioned comes. (java.lang.reflect.invocationtargetexception)
    Will appreciate, if anybody gets teh same error or have some solution.
    Regards,
    Ashok.

    your error seems to indicate that your embeddedLdap isnt in sync with the Database ? Did you either delete files from your file systems or cleanup the portal db or finally used a copy of some existing database for your domain?

  • How to implement hyperlink in java using swing components

    hi.....
    pls help me to find out solution
    how to implement hyperlink in java using swing components

    I've got the same problem here.
    I want to implement a HyperlinkListener to a JLabel. (Unlike suggested above, it is only supported by JEditorPane and not JLabel)
    The goal is, that if a user clicks on a Link in a JLabel, the standard browser opens and displays that page.
    Can somebody please help?
    My ultimate goal would be to also be able to add clickable HyperLinks in ToolTip texts, but i guess that'd be even more complicated.

  • Need  java code to perform refresh button action using swings and awt

    i need java code to perform refresh button action using swings and awt.please help me

    Wait ! Noboby ? OK, I'll do it
    public void onBtnAction ()
        if (!fresh)
            refresh ();
    }Seriously, did you expect anyone to answer such a cryptic question ?

Maybe you are looking for

  • Interesting load issue on a new 11.2.0.3.0 RAC cluster

    Hi All, This is for a two node 11.2.0.3.0 Std RAC cluster running RHEL 5.4 x64. I've built a good few RAC clusters before, and this is a new issue in 11.2.0.3.0 (I haven't seen it in 10.2.0.4/5, 11.1.0.6/7, or 11.2.0.1/2). What I've noticed is that t

  • DVD Burner FIRMWARE Mat**bleep**a UJ8D1

    I am having a big problem with my Pavilion g6 laptop running Windows 7 OS. In my not-so-infinite wisdom I somehow managed to make a mess of the firmware on my DVD Burner (Mat**bleep**a UJ-8D1)  !!! I know this drive was working okay at Christmas 2012

  • Selected list items to Word document

    I found online many posts to generate a word document with all items included in a list. But is is possible to have the generation triggered by the user and to include only a subset of the list items?

  • Apalling Customer Service

    I moved to BT for my broadband and phone on Friday. On Sunday, I called to get anytime calls added to my phone package and to take advantage of the Line Rental Saver option. The operator was able to add the anytime calls to may account but transferre

  • Have new computer and a different sync password on mobile..how to change

    have new computer and added new firefox...my mobile has old sync i cannot change