From owner-freebsd-java Tue Jun 16 18:21:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA07848 for freebsd-java-outgoing; Tue, 16 Jun 1998 18:21:19 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA07840 for ; Tue, 16 Jun 1998 18:21:16 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.0/8.9.0) with SMTP id UAA01537 for ; Tue, 16 Jun 1998 20:21:16 -0500 (CDT) Date: Tue, 16 Jun 1998 20:21:16 -0500 (CDT) From: Steve Price To: java@FreeBSD.ORG Subject: displaying HTML docs with JEditorPane? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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("foo"); 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