tags:

views:

1368

answers:

16

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.

+2  A: 

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
+4  A: 

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
+26  A: 

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
+1 for a non-game answer :)
Alex B
A: 

Hopefully they will with JavaFX.

Eric Wendelin
A: 

I'm interested in alife, and generally not a java fan, but I like this java applet which implements the Wator predator/prey model.

anon
+2  A: 

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
+4  A: 

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
It's not an applet though.
Michael Borgwardt
Ah, you are correct. Somehow I missed that in the original question. Thanks for pointing that out. I've updated my response.
seth
A: 

they rename java applets to JavaFx ... but i don't know whether it will success or will su*k like applets :)

for me ... loading applets is not fun at all ... you see java words with loading animation. while in flash, while you waiting loading the swf you can play games (just stupid funny games) :)

I wish JavaFx could be useful, I like the new syntax .. like one in css .. simple and elegant and also easier to learn :)

nightingale2k1
Applets are still applets.
Tom Hawtin - tackline
+12  A: 

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

Julien Chastang
Oooh, that is a good one.
jason
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
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
+9  A: 

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
+1  A: 

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
+3  A: 
omouse
Thumbs up for Processing; a lot of the Chrome demos are written in it as well.
Carl
I think the Chrome demos you're thinking of are in Processing.jsProcessing.js is a port of the 2D context from Processing.Processing can output applets. Processing.js runs in a Javascript interpreter.
slim
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.
omouse
It certainly is beautiful, and Java, but is it an applet?
Ollie G
+1  A: 

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
+1  A: 

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
+3  A: 

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

MarcinLe