Swing it! applet takes over canvas

Jonathan Locke never lost his love for Swing, and now he’s made it possible to mash-up Wicket web applications with the old web technology: applets. His old high school friend Tim Boudreau has an article about it.

Even though they are convinced it has to do with Ajax, I think it is much more a precursor for the new Canvas technology that seems to get a lot of attention. So who will create a First Person Blogger where you can hunt down blog spammers? Or a Grand Theft Shopping Cart?

Many people ask whether Internet Explorer will ever support the canvas, so the applet may get us graceful degredation! And best of all: APPLETS ARE ALREADY HERE!

Be sure to watch this blog (or this one) of one of our greatest fans, as he already enjoyed Wicket without Swing:

Anyway, Wicket was the only web oriented thingie that got me excited in a long time and now they are planning to mix it with Swing. Damn, how better could this framework be?

3 Responses to “Swing it! applet takes over canvas”

  1. Jonathan Locke Says:

    In my prototype, this code creates a fully functional applet in Wicket:

    public class Home extends WebPage
    {
    public Home()
    {
    add(new Applet(”applet”, Wapplet.class));
    }
    }

    public class Wapplet implements IAppletInitializer
    {
    public void init(Container container, Object model)
    {
    container.setLayout(new FlowLayout());
    container.add(new JButton(”Button 1″));
    container.add(new JButton(”Button 2″));
    container.add(new JButton(”Button 3″));
    }
    }

    < ?xml version="1.0" encoding="UTF-8"?>



  2. ketan gote Says:

    hi
    had you solved above problem,
    i am also having same problem,
    can you help me

    regard’s
    ketan d.gote

  3. sr Says:

    I like the Wapplet name, however in Firefox, with java plug-in 1.6.0_03 I get the following exception in the Java Console.

    Java Plug-in 1.6.0_03
    Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM

    —————————————————-
    APPLET tag missing CODE parameter.
    java.lang.NullPointerException: name
    at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
    at sun.applet.AppletPanel$7.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

  4. Leave a Reply