From owner-freebsd-java Mon Jun 15 22:35:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA18866 for freebsd-java-outgoing; Mon, 15 Jun 1998 22:35:43 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from students.itb.ac.id (raka@students.ITB.ac.id [167.205.22.114]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA18825 for ; Mon, 15 Jun 1998 22:35:27 -0700 (PDT) (envelope-from raka@students.itb.ac.id) Received: from localhost (raka@localhost) by students.itb.ac.id (8.8.5/8.8.5) with SMTP id MAA17514 for ; Tue, 16 Jun 1998 12:34:23 +0700 (JAVT) Date: Tue, 16 Jun 1998 12:34:22 +0700 (JAVT) From: "Cokorda Raka Angga J." To: freebsd-java@FreeBSD.ORG 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 subscribe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message 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 From owner-freebsd-java Wed Jun 17 08:00:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA05734 for freebsd-java-outgoing; Wed, 17 Jun 1998 08:00:22 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA05728 for ; Wed, 17 Jun 1998 08:00:19 -0700 (PDT) (envelope-from kelly@plutotech.com) Received: from plutotech.com (tampopo.plutotech.com [206.168.67.161]) by pluto.plutotech.com (8.8.7/8.8.5) with ESMTP id JAA10464; Wed, 17 Jun 1998 09:00:17 -0600 (MDT) Message-ID: <3587DA01.715F6993@plutotech.com> Date: Wed, 17 Jun 1998 09:00:17 -0600 From: Sean Kelly Organization: Pluto Technologies X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Steve Price CC: java@FreeBSD.ORG Subject: Re: displaying HTML docs with JEditorPane? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've never done this, but I'm guessing you need to first create a Document object that's compatible with HTML. java.swing.text.Document doc = java.swing.text.html.HTMLEditorKit.createDefaultDocument(); Then, initialize the doc with the HTML String returned by the server: doc.insertString(0, stringFromServer, null); Finally, you can use the setDocument method of the JEditorPane (actually inherited from JTextComponent): editorPane.setDocument(doc); Good luck. --k To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jun 17 14:33:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA11543 for freebsd-java-outgoing; Wed, 17 Jun 1998 14:33:30 -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 OAA11528 for ; Wed, 17 Jun 1998 14:33:24 -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 QAA18774; Wed, 17 Jun 1998 16:33:23 -0500 (CDT) Date: Wed, 17 Jun 1998 16:33:22 -0500 (CDT) From: Steve Price To: Sean Kelly cc: java@FreeBSD.ORG Subject: Re: displaying HTML docs with JEditorPane? In-Reply-To: <3587DA01.715F6993@plutotech.com> 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 Thanks for the response. :) As much as I try I can't seem to get this to work either. :( The relevant code now looks like: import com.sun.java.swing.text.*; import com.sun.java.swing.text.html.*; ... JEditorPane htmlPane = new JEditorPane(); Document doc = HTMLEditorKit.createDefaultDocument(); try { doc.insertString(0, someString, null); } catch (Exception ex) { } htmlPane.setDocument(doc); And when I compile it I see this. javac -classpath .... foo.java:151: Can't make static reference to method com.sun.java.swing.text.document createDefaultDocument() in class com.sun.java.swing.text.html.HTMLEditorKit. Document doc = HTMLEditorKit.createDefaultDocument(); ^ 1 error *** Error code 1 make: Fatal error: Command failed for target `all' I have downloaded an article by Tim Prinzing that I found at the Swing Connection and am reading that right now. I will keep my fingers crossed. Steve On Wed, 17 Jun 1998, Sean Kelly wrote: # # I've never done this, but I'm guessing you need to first create a # Document object that's compatible with HTML. # # java.swing.text.Document doc = # java.swing.text.html.HTMLEditorKit.createDefaultDocument(); # # Then, initialize the doc with the HTML String returned by the server: # # doc.insertString(0, stringFromServer, null); # # Finally, you can use the setDocument method of the JEditorPane (actually # inherited from JTextComponent): # # editorPane.setDocument(doc); # # Good luck. # --k # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jun 17 14:39:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12740 for freebsd-java-outgoing; Wed, 17 Jun 1998 14:39:56 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA12719 for ; Wed, 17 Jun 1998 14:39:45 -0700 (PDT) (envelope-from kelly@plutotech.com) Received: from plutotech.com (tampopo.plutotech.com [206.168.67.161]) by pluto.plutotech.com (8.8.7/8.8.5) with ESMTP id PAA29806; Wed, 17 Jun 1998 15:39:41 -0600 (MDT) Message-ID: <3588379D.C74EB63@plutotech.com> Date: Wed, 17 Jun 1998 15:39:41 -0600 From: Sean Kelly Organization: Pluto Technologies X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Steve Price CC: java@FreeBSD.ORG Subject: Re: displaying HTML docs with JEditorPane? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ooops! I misread that `createDefaultDocument' was a static method, but it's not. Try doing this instead: ---- import com.sun.java.swing.text.*; import com.sun.java.swing.text.html.*; ... JEditorPane htmlPane = new JEditorPane(); HTMLEditorKit editorKit = new HTMLEditorKit(); htmlPane.setEditorKit(editorKit); // Necessary? Dunno. Document doc = editorKit.createDefaultDocument(); try { doc.insertString(0, someString, null); } catch (Exception ex) {} htmlPane.setDocument(doc); ---- Good luck! --k To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jun 17 14:53:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA15923 for freebsd-java-outgoing; Wed, 17 Jun 1998 14:53:53 -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 OAA15909 for ; Wed, 17 Jun 1998 14:53:49 -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 QAA27457; Wed, 17 Jun 1998 16:53:48 -0500 (CDT) Date: Wed, 17 Jun 1998 16:53:48 -0500 (CDT) From: Steve Price To: Sean Kelly cc: java@FreeBSD.ORG Subject: Re: displaying HTML docs with JEditorPane? In-Reply-To: <3588379D.C74EB63@plutotech.com> 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 Ouch. I guess my brain has stopped for the day. This definitely makes it compile, but the text is still not interpreted as 'text/html'. Steve On Wed, 17 Jun 1998, Sean Kelly wrote: # Ooops! I misread that `createDefaultDocument' was a static method, but # it's not. # # Try doing this instead: # # ---- # import com.sun.java.swing.text.*; # import com.sun.java.swing.text.html.*; # ... # JEditorPane htmlPane = new JEditorPane(); # HTMLEditorKit editorKit = new HTMLEditorKit(); # htmlPane.setEditorKit(editorKit); // Necessary? Dunno. # Document doc = editorKit.createDefaultDocument(); # try { # doc.insertString(0, someString, null); # } catch (Exception ex) {} # htmlPane.setDocument(doc); # ---- # # Good luck! # --k # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jun 18 14:53:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA22095 for freebsd-java-outgoing; Thu, 18 Jun 1998 14:53:16 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from bastuba.partitur.se (bastuba.partitur.se [193.219.246.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA22089 for ; Thu, 18 Jun 1998 14:53:09 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from solist. (solist.partitur.se [193.219.246.204]) by bastuba.partitur.se (8.8.8/8.8.8) with SMTP id XAA06949 for ; Thu, 18 Jun 1998 23:53:09 +0200 (CEST) (envelope-from girgen@partitur.se) Received: from partitur.se by solist. (SMI-8.6/SMI-SVR4) id XAA23970; Thu, 18 Jun 1998 23:52:23 +0200 Message-ID: <35898C17.15C5DD5B@partitur.se> Date: Thu, 18 Jun 1998 23:52:23 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: Workshop won't start Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm trying to start java workshop according to Amancio's instructions on the web page http://freebsd.org/java/ Whatever I do, once I type jws, it just sits there. top shows this: 20840 girgen 18 0 3420K 7368K pause 0:01 5.60% 2.82% java_X and nothing happens. Any ideas? DISPLAY is properly set, CLASSPATH is /usr/local/java/lib/classes:. jdk is installed through the port in /usr/local/java JavaWorkshop-2.0/JDK is a symlink to /usr/local/java I've tried both the 2.0 and the 2.0a update. Also tried fiddling with LD_LIBRARY_PATH, adding JavaWorkshop-2.0/intel-S2/bin. Nothing happens... Someone? /Palle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jun 18 15:00:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23279 for freebsd-java-outgoing; Thu, 18 Jun 1998 15:00:04 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from bastuba.partitur.se (bastuba.partitur.se [193.219.246.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23194 for ; Thu, 18 Jun 1998 14:59:57 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from solist. (solist.partitur.se [193.219.246.204]) by bastuba.partitur.se (8.8.8/8.8.8) with SMTP id XAA06976 for ; Thu, 18 Jun 1998 23:59:57 +0200 (CEST) (envelope-from girgen@partitur.se) Received: from partitur.se by solist. (SMI-8.6/SMI-SVR4) id XAA23974; Thu, 18 Jun 1998 23:59:11 +0200 Message-ID: <35898DAF.F8D5D5E@partitur.se> Date: Thu, 18 Jun 1998 23:59:11 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: Re: Workshop won't start References: <35898C17.15C5DD5B@partitur.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Forgot this info: I grabbed the solaris-intel tarballs from Sun. Suppose they are correct? Also, the 2.0a updates files in the JDK directory in JavaWorkshop-2.0/. Are theese needed for freebsd, or will they destroy the port? (I guess the latter?) Anyway, same result for both 2.0 and 2.0a... /Palle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jun 18 19:19:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA29699 for freebsd-java-outgoing; Thu, 18 Jun 1998 19:19:11 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from usc.usc.unal.edu.co ([200.21.26.65]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA29692 for ; Thu, 18 Jun 1998 19:19:08 -0700 (PDT) (envelope-from giffunip@asme.org) Received: from unalmodem09.usc.unal.edu.co by usc.usc.unal.edu.co (AIX 4.1/UCB 5.64/4.03) id AA08574; Thu, 18 Jun 1998 22:01:21 -0400 Message-Id: <3589CA64.B5D9C5BD@asme.org> Date: Thu, 18 Jun 1998 21:18:12 -0500 From: Pedro Giffuni Organization: Progen Ltda. X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) Mime-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: Wanna try NetREXX ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, It strange that no one in FreeBSD seems to have worked on NetREXX yet, http://www2.hursley.ibm.com/netrexx/netrexx.htm It's supposed to build on any Java environment, and it greatly enhances Java development (or so they say ;-). enjoy, Pedro. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Jun 19 05:42:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA02151 for freebsd-java-outgoing; Fri, 19 Jun 1998 05:42:11 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from iglou.com (sendmail@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA02072 for ; Fri, 19 Jun 1998 05:42:05 -0700 (PDT) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.99] by iglou.com with esmtp (8.7.3/8.6.12) id 0yn0UN-0006DE-00; Fri, 19 Jun 1998 08:41:55 -0400 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <35898C17.15C5DD5B@partitur.se> Date: Fri, 19 Jun 1998 08:38:14 -0400 (EDT) Organization: The Creative Group From: Patrick Gardella To: Palle Girgensohn Subject: RE: Workshop won't start Cc: freebsd-java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org While I'm trying to figure out what went wrong for you, let me ask a few questions: Are you using the JDK 1.1.5V98-2-25 release? What version of FreeBSD? What speed computer? I would suggest getting rid of the symlink from JavaWorkshop-2.0/JDK to /usr/local/java. Works fine here without it. One last thing, change the jws script from #!/bin/sh -h to /usr/local/bin/bash -h If this works, let me know, and I'll update the web page. It needs updating anyway ;) Patrick Gardella On 18-Jun-98 Palle Girgensohn wrote: > Hi, > > I'm trying to start java workshop according to Amancio's instructions > on > the web page http://freebsd.org/java/ > > Whatever I do, once I type jws, it just sits there. top shows this: > > 20840 girgen 18 0 3420K 7368K pause 0:01 5.60% 2.82% > java_X > > and nothing happens. Any ideas? > > DISPLAY is properly set, CLASSPATH is /usr/local/java/lib/classes:. > jdk is installed through the port in /usr/local/java > > JavaWorkshop-2.0/JDK is a symlink to /usr/local/java > > I've tried both the 2.0 and the 2.0a update. > > Also tried fiddling with LD_LIBRARY_PATH, adding > JavaWorkshop-2.0/intel-S2/bin. Nothing happens... > > Someone? > > /Palle > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Jun 19 05:43:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA02410 for freebsd-java-outgoing; Fri, 19 Jun 1998 05:43:54 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from iglou.com (sendmail@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA02396 for ; Fri, 19 Jun 1998 05:43:50 -0700 (PDT) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.99] by iglou.com with esmtp (8.7.3/8.6.12) id 0yn0W6-0006N3-00; Fri, 19 Jun 1998 08:43:42 -0400 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <35898DAF.F8D5D5E@partitur.se> Date: Fri, 19 Jun 1998 08:40:38 -0400 (EDT) Organization: The Creative Group From: Patrick Gardella To: Palle Girgensohn Subject: Re: Workshop won't start Cc: freebsd-java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 18-Jun-98 Palle Girgensohn wrote: > Forgot this info: I grabbed the solaris-intel tarballs from Sun. > Suppose they are correct? That's the right one. > Also, the 2.0a updates files in the JDK directory in > JavaWorkshop-2.0/. > Are theese needed for freebsd, or will they destroy the port? (I > guess the latter?) Anyway, same result for both 2.0 and 2.0a... You may want to install 2.0a and then the FreeBSD patches. That's what I did. Patrick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message