I am trying to have a map load onto panel within a frame, but I always get the error that, "

no suitable method found for add(JXMapKit)
method Container.add(Component,Object,int) is not applicable
(actual and formal argument lists differ in length)
..."

The code is below, largly copied from posted code on an unrelated topic. I have been searching through the web for a few days and have found multiple examples that seem to use some version of .add to locate the map.

Any help would be greatly appreciated.

Thank you

Augie

package test;

import javax.swing.*;
import org.jdesktop.swingx.*;

public class Test {
public static JXMapKit jxMapKit;

public static void main(String[] args) {
JFrame frame = new JFrame("JXMap Test");
frame.getContentPane().add(jxMapKit);
frame.setSize(800, 600);
frame.setVisible(true);
}
}