Path: news.daimi.aau.dk!news-feed.inet.tele.dk!bofh.vszbr.cz!howland.erols.net!woodstock.news.demon.net!demon!news.demon.co.uk!demon!lair.demon.co.uk!nospam From: Mick Newsgroups: comp.lang.java.gui,comp.lang.java.help,ne.general,comp.lang.beta Subject: Re: Word Process Anywhere Beta Testers Needed Date: Fri, 27 Mar 1998 17:52:27 +0000 Organization: . Message-ID: References: <6f3p9b$ntb@fridge.shore.net> NNTP-Posting-Host: lair.demon.co.uk X-NNTP-Posting-Host: lair.demon.co.uk [194.222.144.23] MIME-Version: 1.0 X-Newsreader: Turnpike (32) Version 3.05 Lines: 53 Xref: news.daimi.aau.dk comp.lang.java.gui:12190 comp.lang.java.help:20576 comp.lang.beta:11503 I made a class WordwrapTextArea extends TextArea in one of my applets that's plain old 1.0.2 and works on Netscape 3.0, as well as M$IE, which currently uses the following (perhaps rather ugly, I mean pragmatic :)) line of code: char linesep = System.getProperty( "line.separator").charAt( System.getProperty( "line.separator").length()-1); The whole \r\n double character nonsense is M$'s fault anyway, isn't it? On Wed, 25 Mar 1998, Michael Hayes wrote: >On 25 Mar 1998, Philip Brown wrote: > >>On Tue, 24 Mar 1998 12:40:51 -0500, hayesm@wpi.edu wrote: >>>On Sun, 22 Mar 1998, Adam M Gaffin wrote: >>> >>>>Ah, remember when Java was supposed to be cross-platform? >>>>... >>> >>>Well, the code for this applet has no 'enhancements' of any kind - be they >>>Microsoft or any other browser or OS. Our applet is JDK 1.1 compliant and >>>is 100% pure Java. i.e. no enhancements -- The only problem is that >>>Microsoft has the only JVM that handles how we do our word-wrapping for >>>the TextArea... It's not our fault that Netscape and whoever else is a >>>little behind there - someday they'll catch up. >> >>It's one thing to say netscape has a bug. >> >>But if your stuff ONLY runs "correctly" on a microsoft VM, and not MJE, or >>jdk1.1 appletviewer, or netscape... then it is YOU folks who need to >>"catch up". >>You are using a platform specific "feature", that will most likely never >>be a part of other java runtimes. So you may as well just put >>"For microsoft only" on your product, for all time. >> >> > >Our applet runs well with other JDK 1.1 compliant browsers except for wrod >wrapping. The reason is the carrriage return (\r). For some reason >Netscape and Sun did not allow their VM able to interpret all the Ascii >characters. If someone out their does not believe me, try setting the >text of a TextArea to \r and see the square. The Ascii character set is >universal in the computer industry, and has been for quite some time. >Why isn't it supported now? It is not our fault that Sun and Netscape >can't make their VM able to interpret a simple character. > -- Mick To mail me type my name instead of nospam and I'll be more likely to read it