Lars Torben Wilson wrote:

>On Thu, 2002-02-21 at 14:11, James Nord wrote:
>
>>Unfortunatly I know some that need to leave it.
>>
>>>If you would state exactly what the problem with the slash being
>>>there is, perhaps we could help you.
>>>
>>The HTML renderer  that comes with Java (jfc) renders the '>' due to the 
>>'/' being before it.  There may well be others (or older browser 
>>versions too) that choke on it .
>>
>>Oh well - output buffers it is then...
>>
>>/James
>>
>>-- 
>>Technology is a word that describes something that doesn't work yet.
>>      Douglas Adams
>>
>
>What is the actual component which is having a hard time rendering this?
>
The JTextPane

Example below,


import javax.swing.*;
import java.net.*;
import java.awt.*;

public class foo {
  public static void main(String[] args)  throws Exception {
    new foo(args[0]);
  }


 public foo(String url) throws Exception {
   Frame f = new Frame("Trailing Slash bug");
   JTextPane html = new JTextPane();
   f.add(html);
   f.pack();
   f.show();
   html.setPage(new URL(url));
   html.setEditable(false);
 }
}

/James

-- 
Technology is a word that describes something that doesn't work yet.
        Douglas Adams




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to