Class TipWindow

    • Constructor Detail

      • TipWindow

        public TipWindow​(Window owner,
                         FocusableTip ft,
                         String msg)
        Constructor, by default, is JEditorPane will be used for toolTip.
        Parameters:
        owner - The parent window.
        ft - Focusable tip
        msg - The text of the tool tip. This can be HTML.
      • TipWindow

        public TipWindow​(Window owner,
                         FocusableTip ft,
                         Component component)
        To specify component to display
        Parameters:
        owner - The parent window.
        ft - Focusable tip
        component - custom component to display
    • Method Detail

      • getComponent

        public Component getComponent()
        Return textArea of TipWindow
        Returns:
        textArea
      • dispose

        public void dispose()
        Disposes of this window.
        Overrides:
        dispose in class Window
      • fixSize

        public void fixSize​(int width,
                            int height)
        Workaround for JEditorPane not returning its proper preferred size when rendering HTML until after layout already done. See http://forums.sun.com/thread.jspa?forumID=57&threadID=574810 for a discussion.
        Parameters:
        width - min width
        height - min height
      • getText

        public String getText()
      • setBottomPanel

        protected void setBottomPanel()
      • setHyperlinkListener

        public void setHyperlinkListener​(HyperlinkListener listener)
        Sets the listener for hyperlink events in this tip window.
        Parameters:
        listener - The new listener. The old listener (if any) is removed. A value of null means "no listener."