Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use JEditorPane to display a webpage in my app ?

Status
Not open for further replies.

StanSteve

Instructor
Sep 22, 2001
16
US

Adding the below code to my application results in an error message "Unknown Host Exception ". Supposedly JEditorPane can be used to display a web page within the application.
what to do ?
Stan :)
dominskis@aol.com
.
.
.
JEditorPane myEp = new JEditorPane();
myEp.setPage("myEp.setPreferredSize(new Dimension(400,200) );
myEp.setEditable(false);
content.add(myEp);
myFrame.pack();
myFrame.setVisible(true);

.
.
.
.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top