DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    22

    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
    Location
    Norway
    Posts
    1,560
    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

Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links