Well, there are two possible approaches: one would be to subclass JPanel to create your own "Chart" component. In that Chart component, you'd override paintComponent(), and in paintComponent() you'd draw a chart, one little symbol or tic-mark at a time. It's
lots of work, and you need to be pretty good at geometry!
The other way would be to buy a charting component written by someone else -- or perhaps find a free one. I found this decent-looking one in about 1/3 second of Googling:
http://www.jfree.org/jfreechart/index.html .