Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

display text in JPanel?

807606Apr 4 2007 — edited Apr 4 2007
I was just wondering if there is a method to display text in a JPanel.. for example:
---------
JPanel contentPane = new JPanel(new BorderLayout());

contentPane.putln("This is a text");
---------

or something to that effect. Or is this something it would be better to use an applet for? Thanks,
dub stylee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2007
Added on Apr 4 2007
3 comments
1,574 views