if u want to insert Text and graphics both. it is convienent to you
that u have to use JTextPane class. JTextArea does not support every kind of
graphics but JTextpane support all type of graphics.
so i'll recomend you to use JTextPane class to solve your problem