• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running Applet in JFrame  RSS feed

 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write a main program which runs applets in a JFrame ?
I think about a kind of enhanced appletviewer running applets from
remote websites. Means : read a page with <applet> tag and run
the applet ( kind of dedicated browser for applets only ).

Or is there already such software available ?
 
Ulf Dittmer
Rancher
Posts: 42972
73
 
Andrew Thompson
Ranch Hand
Posts: 77
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wolfgang Tintemann wrote:Is it possible to write a main program which runs applets in a JFrame ?
...
Or is there already such software available ?


Appleteer can do that. It is designed more as an alternative testing tool to the applet viewer.
 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf

I had a quick look at the class and will try to understand it.

@Andrew

This appleteer prog seems to be what I sought for.
But : I find no help how to write a .html file that it
understands.
I tried with an .html file with a <applet> tag inside
but appleteer shows only the error text between
<applet> and </applet>

Can you give an example ?
 
Andrew Thompson
Ranch Hand
Posts: 77
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wolfgang Tintemann wrote:
..Can you give an example ?


See the Test Applet Pages.
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A bit mad (but I like a challenge), I wrote one of those HTML desktops where you have have HTML / iframe windows (looks like a desktop in a web page) and then managed to embed one of our applets into that so it ran in a html window so the applet was like a desktop application in the web page. Imagine your web page is a view onto a desktop and your applet is a windowed application on it and you get the idea, not really suitable for commercial use but was pretty fun.

Not really what your after , I suspect you want a dedicated applet container.
 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew
I had a look at these test pages and studied the source code of the
pages in the browser ( appleteer shows only an error message ).
I noticed that all examples are without a CODEBASE attribute.
My example uses CODEBASE and doesnt work.

Chris
Sorry, I dont understand what you realized in your program.
I think I look for a kind of mini browser written in Java which
can interpret (almost) only <applet> tags and execute the applet.
 
Andrew Thompson
Ranch Hand
Posts: 77
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wolfgang Tintemann wrote:Andrew
I had a look at these test pages and studied the source code of the
pages in the browser ( appleteer shows only an error message ).
I noticed that all examples are without a CODEBASE attribute.
My example uses CODEBASE and doesnt work.


I don't have time to look into the code closely. If you are that interested, I can send it to you in a Zip of around 45KB (all source, support pages, JNLP and build file). Contact me via andrewthommo at gmail if you'd like to pursue that.

BTW - I keep forgetting to ask. Is there something more that you need, than can be provided by writing a JNLP for the applet and launching it using Java Web Start?
 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made some appleteer tests of applet .html pages without CODEBASE
and they all work fine.

appleteer is exactly what I was looking for. Thank you Andrew.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!