[jsword-devel] Hebrew/Greek defs as tooltips

Yingjie Lan lanyjie at yahoo.com
Sun Jan 10 23:16:33 MST 2010


> From: Tonny Kohar <tonny.kohar at gmail.com>
> Subject: Re: [jsword-devel] Hebrew/Greek defs as tooltips
> To: "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> Date: Monday, January 11, 2010, 9:41 AM
> Hi,
> 
> On Mon, Jan 11, 2010 at 12:34 PM, Tonny Kohar <tonny.kohar at gmail.com>
> wrote:
> > Hi,
> >
> > I am not expert either. but I do create the tooltip
> for Alkitab which
> > is using JSword as base.
> > - I just simply add hyperlink entered and excited for
> Tooltip displaying
> > - and from the HyperlinkEvent object, I get the
> description of the link
> > - and use the description above to construct the
> JSword Key object to
> > find the particular text (strongs,morph,etc)
> > - then use the usual xslt tranform to transform it
> into html text
> > - and finally display it as tooltip popup.
> >
> > If you want to see the code, you can get Alkitab
> source code from
> > http://www.kiyut.com/products/alkitab/index.html under
> developer
> > section (public domain).
> >
> 
> Almost forget, the above is the simple version. However, if
> you want
> to integrate with user options/preferences things will be a
> little bit
> complex, because you need to format the xslt transform
> using user
> options/preferences. And the source book for info (eg:
> bible,Hebrew/Greek def book) you also need to get it from
> user
> options/preferences (from preferred book section).
> 
> And for performance (user perceived performance) I need to
> wrap the
> above code using Swing EDT for tooltip displaying, due to
> swing slow
> parsing html code
> 
> Cheers
> Tonny Kohar
> --
> Alkitab Bible Study
> http://www.kiyut.com/products/alkitab/index.html
> 


Hi, this is very helpful, thank you. I have another question: Do you somehow control the dimension of the tool tip box? when there is no line break, would the tool tip box turns out to be too wide?

Cheers

Yingjie


> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
> 


      



More information about the jsword-devel mailing list