Como adicionar um Jfreechart (gráfico de pizza) a um painel no netbeans

Estou usando o editor de interface gráfica do netbeans e estou tentando adicionar um Jfreechart que seja ele próprio em um quadro interno, e esse quadro interno estou querendo adicioná-lo a um painel, como você pode ver nesta imagem (desculpe, eu não posso postar imagem diretamente porque Eu sou um novato)

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

O quadro interno nem aparece no painel "Estadisticas" quando o executo, acho mais difícil porque não estou fazendo o gui por código, mas não deve ser tão difícil, se alguém puder me ajudar a adicionar isso corretamente Eu apreciaria muito, aqui está o código que eu tenho experimentado:

 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

}

questionAnswers(4)

yourAnswerToTheQuestion