Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrolling HTML in a JEditorPane


  • From: lpbinh@xxxxxxxxxxx (Le Phu Binh)
  • Subject: Scrolling HTML in a JEditorPane
  • Date: Sat, 30 Oct 1999 15:25:58 -0500 (CDT)

You have to add a JScrollPane along with JEditorPane too. There may be
alternative solutions, but that's what I did.

Binh.

On Sat, 30 Oct 1999, Jose Gengler wrote:

> Hi!
> 
> I have a JEditorPane that has been added to a JWindow, The JEditorPane has 
> a HTML page that displays fine (except the <BODY BGCOLOR="#FFFFFF" 
> BACKGROUND="santafe.gif"> is ignored fore some reason I can't tell). Now I 
> want to scroll the HTML page with a JScrollBar or with an action listener that 
> reacts to the position of the mouse on the page. I don't know how to do it. I 
> have already tried setAutoscrolls(true)on the JEditorPane, which I imagined to 
> be an automated procedure of Java to add scrollbars, but nothing happened. 
> How can I program the scrolling of the HTML page?
> 
> Any help very much appreciated.
> 
> Thanks in advance,
> 
> 
> Jose Gengler
> osito@xxxxxxxxxxx
> jgengler@xxxxxxxxx
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
> 


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx