Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 1998 20:21:16 -0500 (CDT)
From:      Steve Price <sprice@hiwaay.net>
To:        java@FreeBSD.ORG
Subject:   displaying HTML docs with JEditorPane?
Message-ID:  <Pine.OSF.3.96.980616200828.11640A-100000@fly.HiWAAY.net>

next in thread | raw e-mail | index | archive | help

Hi all,

I am working on a project that has a Java ORB client
talking to a C++ ORB server and I am having a small
problem.  It goes something like this.

The client makes a request of the server and in
response gets a String.  This string is a valid HTML
doc.  The problem is how to get a JEditorPane to
display from this 'in memory' representation.  Normally
one would do something like this to display an HTML
doc in a JEditorPane:

	htmlPane = new JEditorPane();
	htmlPane.setPage(new URL("file:foo.txt"));

but I don't have a file.  I suppose I could create
one temporarily but that sort of defeats what I am
trying to do.  I have also tried this:

	htmlPane.setText("<html>foo</html>");

but what I see is the above literal string.  It is
not interpreted as an HTML doc.

Anyone have any ideas?

A long way from home and flustered,

Steve


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.96.980616200828.11640A-100000>