使用SWT browser呼叫java script
首先準備一個web.html裡面寫好要執行的js 參考來源是google map api v3 ,標紅色的key要由google api concole產生如下: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key= key &sensor=false"> </script> <script type="text/javascript"> var map; function initialize() { var mapOptions = { center: ...