How would i post html content in a java applet?

  • Thread starter Thread starter Tomjr
  • Start date Start date
T

Tomjr

Guest
I was wondering how would i put html tags and stuff in a java applet? like do <html><body><h1>Hi</h1></body></html> and have it show up as "Hi" in big letters like it would in a html document. Ive seen it be done before but i dont know if it was a java applet or application if that makes a difference. This is what i have so far:
public String getinfo() {
String html = "";
html += "<html>";
html += "<h1> Hi </h1>";
html += "</html>";
return html;
}
but what would i do to make it actually show up?
 
Back
Top