DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005

    Placing HTML in an applet - and paint loops

    I am busy programming a guestbook for a friend's website and I want to enable html tagging on the guestbook viewing page, is there a way to make a hyperlink tag active within the applet?
    I need to make a hyperlink tag and a mailto tag

    And the second problem is that I want to have a horizontal line separating the different guestbook posts. Only problem is that once I draw one line and want to loop it so that it draws at new increments it only draws a line at the bottom of the applet. Is there any way of looping the paint method without it re-drawing and removing old lines?

  2. #2
    Join Date
    Nov 2004
    You place an applet in html, not the other way around
    If the link is to appear inside a textcomponent then you should use a JEditorPane that
    enables hyperlink tags. However, I would not do it like that.
    Instead I would use the netscape.javascript package that, through the JSObject
    enables invokation of javascript methods in an html page. I would use that to
    dynamically write content to a guestbook html page, with links, lines and all.
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.