POST
|
Hi, i really don`t know what happened, but after the update of the graphics drivers it works. The code i`ve posted is the original code created by "File > New > Project > ArcGIS Runtime Java Map Application". Thank you very much for your help. Maybe i should have tried to choose an other renderer (OpenGL), but there wasn`t even a DirectX error. Thank you very much for your help Pozdrawiam Artur
... View more
02-16-2017
09:44 AM
|
0
|
0
|
378
|
POST
|
It is the version 10.2.4. package Jeden; import java.awt.EventQueue; import javax.swing.JFrame; import java.awt.BorderLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import com.esri.runtime.ArcGISRuntime; import com.esri.map.ArcGISTiledMapServiceLayer; import com.esri.map.JMap; public class Aplikacja { private JFrame window; private JMap map; public Aplikacja() { window = new JFrame(); window.setSize(800, 600); window.setLocationRelativeTo(null); // center on screen window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); window.getContentPane().setLayout(new BorderLayout(0, 0)); // dispose map just before application window is closed. window.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent windowEvent) { super.windowClosing(windowEvent); map.dispose(); } }); JMap map = new JMap(); ArcGISTiledMapServiceLayer tiledLayer = new ArcGISTiledMapServiceLayer( "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); map.getLayers().add(tiledLayer); // Add the JMap to the JFrame's content pane window.getContentPane().add(map); } /** * Starting point of this application. * @param args */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { @Override public void run() { try { Aplikacja application = new Aplikacja(); application.window.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } }
... View more
02-14-2017
12:56 AM
|
0
|
1
|
378
|
POST
|
Hello, first of all, i am working with Eclipse Neon2 (4.6.2) -jre1.8.0_121 -jdk1.8.0_121 since two weeks it is not possible to run the Application, because it`s immediately terminating. Eclipse shows, that the import "com.esri.runtime.ArcGISRuntime" is never used. I really don`t know what happened. I hope you can help me.
... View more
02-13-2017
08:14 AM
|
0
|
4
|
508
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|