Use google map in java GUI
<p>I'm making a java app desktop and I need to put in a form a map. Searching online I found that I can show google map with javascript. This is the code named <code>map.html</code>:</p>

<pre><code>&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;
&lt;title&gt;City Map&lt;/title&gt;
&lt;meta name="viewport" content="initial-scale=1.0"&gt;
&lt;meta charset="utf-8"&gt;
&lt;style&gt;
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
    #map {
        height: 100%;
    }
&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div id="map"&gt;&lt;/div&gt;&lt;script&gt;
var map;
function initMap() {
    map = new google.maps.Map(document.getElementById('map'), {
        center: {
            lat: -34.397,
            lng: 150.644},
        zoom: 8
    });
}&lt;/script&gt;&lt;script src="myAPI KEY" async defer&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>I want to put this map inside a Jpanel, but I don't find a solution to do this. 
Java GUI code: </p>

<pre><code>public class Login {
private JPanel panel1;
private JButton button1;
public static void main(String argv[]){

    JFrame pannello = new JFrame("map.html");
    pannello.setContentPane(new Login().panel1);
    pannello.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    pannello.pack();
    pannello.setVisible(true);
}}
</code></pre>

<p>Someone can help me?
Thanks</p>

<p>P.S. I don't know if it's the best solution to show a google map</p>