Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2200

Re: HyperlinkListener in

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: HyperlinkListener in
Message-ID <7648b3763fe01@uwe> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1186389899.365210.8560@b79g2000hse.googlegroups.com>
References <1186389899.365210.8560@b79g2000hse.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 43
Date Wed, 27 Apr 2011 15:37:45 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918665 96.60.20.240 (Wed, 27 Apr 2011 10:37:45 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:37:45 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2200

Show key headers only | View raw


  To: comp.lang.java.gui
andre.sept@gmail.com wrote:
..
>I have a Problem with a JTree. 

I do not know the immediate technical answer to 
your question, but..

>...I want display the Text in the Nodes
>with HTML.

Is that really a good idea?  Any clickable links
within a JTreeNode will interfere with, or at the very
least need to 'interact with' the normal tree events.

I would guess it amounts to a kludgy GUI at the least.

Would these 'bits of HTML with links' be of variable
size?
..
>I create a TreeCellRenderer and a TreeCellEditor who extend from
>JEditorPane 

Why not display the JEP* in the NORTH of a BorderLayout in
which the JTree is WEST.  If the user selects a JTree node,
the HTML appears in the NORTH JEP, and if the user clicks 
a link, display the content in a JEP in the CENTER.

If OTOH, an external browser is used for the HTML that 
is linked, the JEP with your HTML might go in the 
CENTER.

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200708/1

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

HyperlinkListener in JTre "andre.sept" <andre.sept@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
  Re: HyperlinkListener in "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000

csiph-web