Cómo agregar un Jfreechart (gráfico circular) a un panel en netbeans

Estoy usando el editor de interfaz gráfica de usuario de netbeans y estoy tratando de agregar un Jfreechart que está en un marco interno, y este marco interno quiero agregarlo a un panel, como puede ver en esta imagen (lo siento, no puedo publicar la imagen directamente porque soy un novato):

http: //www.flickr.com/photos/63259070@N06/6370734167

El marco interno ni siquiera aparece en el panel "Estadísticas" cuando lo ejecuto, creo que es más difícil porque no estoy haciendo la interfaz gráfica de usuario por código, pero no debería ser tan difícil, si alguien pudiera ayudarme a agregar esto correctamente Lo agradecería enormemente, aquí está el código que he estado probando:

 private void display() {
       DefaultPieDataset pieDataset = new DefaultPieDataset();
    pieDataset.setValue("One", new Integer(10));
    pieDataset.setValue("Two", new Integer(20));
    pieDataset.setValue("Three", new Integer(30));
    pieDataset.setValue("Four", new Integer(10));
    pieDataset.setValue("Five", new Integer(20));
    pieDataset.setValue("Six", new Integer(10));
    JFreeChart chart = ChartFactory.createPieChart3D(
        "3D Pie Chart", pieDataset, true, true, true);
    ChartPanel cp = new ChartPanel(chart);
     //  JInternalFrame jif = new JInternalFrame(
     //   "Chart", true, true, true, true);
    this.ji.add(cp); //ji is the name of the internal frame
    this.ji.pack();
    this.ji.setVisible(true);
    this.ji.setSize(100, 100);

    JDesktopPane dtp = new JDesktopPane();
    dtp.add(ji);
    this.jpEstadisticas.add(dtp);   //jpEstadisticas the name of the main "Estadisticas"panel

}

Respuestas a la pregunta(4)

Su respuesta a la pregunta