Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: html inside applet?

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default html inside applet?

    Hey guys,

    Just curious if its possible to use html inside a java applet. I am currently using a JTable for the user list, But im running into multiple errors when applet is loading and getting a toolbar on each item.

    So is it possible to use html inside an applet? and if so a html table ?

    Thanks.


  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: html inside applet?

    Got it solved by using JLabel and adding html into the string..

  3. #3
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: html inside applet?

    In case anyone else is looking there is an introduction to How to Use HTML in Swing Components in Oracle's Tutorial.

    Bear in mind that JLabel != web browser: everything has its limits! Marked up text is one thing, but I've seen people attempting to include buttons and forms etc and the result isn't pretty. Also that using html with Swing components is no panacea removing the need to correct actual gui design problems indicated by runtime exceptions. (Of course, this is a general warning and not intended as any sort of criticism of what you've done.)

Similar Threads

  1. Running a java applet inside a java window?
    By frozen java in forum Java Theory & Questions
    Replies: 3
    Last Post: July 3rd, 2012, 10:55 PM
  2. Replies: 29
    Last Post: May 18th, 2012, 02:16 PM
  3. [SOLVED] Uploading a Java Applet embedded in HTML to a Web server
    By wizdom in forum What's Wrong With My Code?
    Replies: 20
    Last Post: December 3rd, 2011, 10:13 AM
  4. HTML in Swing Components in Cached Applet
    By KevinWorkman in forum Java Applets
    Replies: 6
    Last Post: August 1st, 2011, 07:46 AM
  5. How would you use HTML to embed a Java applet within it?
    By javapenguin in forum Java Theory & Questions
    Replies: 1
    Last Post: May 5th, 2011, 05:16 AM