How to rectify this program?
- by user1430719
This is a program to display a pie chart. I also have a button. But the program I have written, creates two separate frames and one frame is for the pie chart and the other is for the button. How do I put both button and pie chart on the same frame?? Can you please rectify my program.
import java.awt.*;
import org.jfree.chart.*;
import…