21

When I use Java applets, they tend to be slow, don't integrate very well with the browser environment and often require a few click throughs ("No, I don't want to give this unsigned application free reign of my hard disk").

So, I'm curious.

Are these problems insurmountable? Are there Java applets out there which integrate well with the browser experience (in, for example, the way a well-designed Flash application does?) Can you point out any examples of really "nice" Java applets?

I'm asking this because I want to know if I should be taking a more serious look at Java-in-the-browser, or if Flash will remain dominant for the foreseeable future.

Edit: Unintentional flame bait has been removed. Sorry for any offence caused.

Nifle
  • 11,745
  • 10
  • 75
  • 100
David Wolever
  • 148,955
  • 89
  • 346
  • 502
  • http://java.sun.com/applets/other/TumblingDuke/ – skaffman Jul 08 '09 at 16:14
  • 2
    While the tone could be considered slightly offensive, it's a good question. Are java apps typically ugly because people aren't doing it right or is there something wrong with the library? – Spencer Ruport Jul 08 '09 at 16:44
  • The question is clearly a troll (a.k.a. "subjective and argumentative"). – Tom Hawtin - tackline Jul 08 '09 at 16:53
  • 1
    I was tempted to downvote the question or flag it for closing – but the asker's got a valid point! Much of the antipathy towards Java stems from the consistently ugly GUIs (not even limited to applets). A slightly better-worded question would be: *why* is the default styling of Java applets and other UI libraries so abysmally bad? – Konrad Rudolph Jul 08 '09 at 19:06
  • 1
    Thanks – I hadn't realized how, err, bias the question was. I hope the updates help. – David Wolever Jul 08 '09 at 19:09
  • See also http://stackoverflow.com/questions/580995/why-do-applets-have-such-a-low-adoption-level and a decent answer in http://stackoverflow.com/questions/580995/why-do-applets-have-such-a-low-adoption-level/598419#598419 – Pool Jul 09 '09 at 00:07
  • -1 for the title, +1 for the content; "Any examples of user friendly applets?" is a friendly title, much like "Do intelligent discussions exist in the US Senate" might be a *bit* biased. – Dean J Nov 27 '09 at 15:28
  • Although I'm preparing for a negative response to this... Runescape is probably worth mentioning. – Matthew H Mar 27 '10 at 18:06

13 Answers13

30

The Facebook asynchronous image uploader is a Java applet.

Update: Apparently not developed in house at Facebook. This seems to be the product.

Amendment: Now that the question has been updated to be a bit more concise, I thought I'd add more to this answer.

This kind of problem, a mass image uploader (in this case), is the kind perfectly solved by a Java applet. Why?

  1. It uses native UI elements, so users are not confused, or have to learn a new interface.
  2. It can save massive amounts of bandwidth and overhead, because image transformations, such as resizing and cropping, can take place on the client side, rather than the server.
  3. Write once, deploy everywhere (almost, sorta).
jason
  • 8,918
  • 2
  • 37
  • 43
  • Beautiful? Are you using the same Facebook mass image uploader that I've never gotten to work? Maybe it's much improved since I gave up on it. – harpo Feb 27 '11 at 05:01
13

Visual Thesaurus is the coolest / best applet I know of.

Julien Chastang
  • 17,592
  • 12
  • 63
  • 89
  • ah, that is really nice. And the "top bar" (for lack of a better name) integrates really well with the rest of the page. Thanks! – David Wolever Jul 08 '09 at 19:30
  • Shame that it is not free as I don't have so much of a need to pay for such a product, but it looks interesting... – Mario Ortegón Aug 01 '09 at 23:13
  • This is implemented in Javascript now, not Java. – Robin Green May 05 '12 at 15:30
  • @RobinGreen More accurately, it looks like they are migrating away from Java Applets and towards JavaScript for obvious reasons. But VisualThesaurus was definitely implemented as a Java Applet originally. – Julien Chastang May 07 '12 at 18:06
10

Check out PulpCore. A really awesome Java applet framework: http://www.interactivepulp.com/

Performance for it seems pretty amazing too if you check it out on bubblemark.com

LeeMobile
  • 3,775
  • 6
  • 31
  • 32
5

Simple floor plan designing with java applet here. Works much faster than dragonfly.autodesk.com or floorplanner.com (both are flash applications).

MarcinLe
  • 110
  • 1
  • 7
4

A few things...

Some game sites, like popcap.com, use Java applets for their games, and they look pretty good and are very usable.

As far as "why is that button cropped?" - that's probably a layout manager issue. See my article on layout managers, in particular:

http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html#whyNeed

Scott Stanchfield
  • 29,742
  • 9
  • 47
  • 65
4

There are many nice looking applets created with Processing (which is basically Java with some fancy graphics libraries included).

Just take a look at this visualization.

Telekom image 4b
(source: zumkuckuck.com)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
  • Thumbs up for Processing; a lot of the Chrome demos are written in it as well. – Carl Nov 27 '09 at 15:28
  • 1
    I think the Chrome demos you're thinking of are in Processing.js Processing.js is a port of the 2D context from Processing. Processing can output applets. Processing.js runs in a Javascript interpreter. – slim Nov 27 '09 at 15:39
  • technically, if the input and output are similar or the same, then they're both Processing. Processing the program outputs Processing as Java, Processing.js outputs Processing as JavaScript. In any case, Processing is awesome heh. –  Nov 28 '09 at 23:08
  • 1
    It certainly is beautiful, and Java, but is it an applet? – Ollie Glass Jun 19 '10 at 13:41
3

In high school I used to play a ton of Yahoo Games and I'm pretty sure those are all java applets. It looks like Yahoo have updated their site since I went there last but you can still find all of the old games here.

theycallmemorty
  • 12,515
  • 14
  • 51
  • 71
3

The MMORPG Runescape uses a Java applet as a client, and works very nicely, although the graphics aren't nearly as good as other games of the type I've seen. Jagex, the publishers, also have a game site called Funorb.

David Thornley
  • 56,304
  • 9
  • 91
  • 158
3

Another game which is in Java (though not an applet) is Puzzle Pirates. It's not exactly beautiful but it's cute and it's very addictive. Also, it's very speedy and smooth (which has been a knock against Java applets).

seth
  • 36,759
  • 7
  • 60
  • 57
  • Ah, you are correct. Somehow I missed that in the original question. Thanks for pointing that out. I've updated my response. – seth Jul 08 '09 at 18:54
1

Java applets are like flash scripts - They can be used for good, but are often used for evil (e.g., annoying banners). IMHO the main reason that they didn't catch on is that they require tended to require too much skill and used AWT/Swing which produces worse UIs than what a designer with little programming skills could achieve with flash.

I would say that yes, they still exist, but more for business goals that don't require pretty UIs. For example, A lot of web-based statistics calculation tools are based on nice applets.

Uri
  • 88,451
  • 51
  • 221
  • 321
1

It's certainly possible. Java2D (the standard graphics component in Java) is capable of rendering beautiful stuff. A big problem is that the default Swing Look and Feel is ugly. I believe Java 7 will have a better one, but there are also very beautiful third party ones such as Substance. I've personally developed a small Java applet game which, apart from the jagged text in the intro screen (which is a bitmap, not rendered text) is visually indistinguishable from a Flash game.

Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1

My mom is addicted to the casual gaming at pogo.com, and I've gotta say, they've done an amazing job at fun, easy to learn, nontraditional games that look perfect. I'd love to see their code, honestly.

Dean J
  • 39,360
  • 16
  • 67
  • 93