Sunday, September 28, 2008

HTML&Applet reminder

It was painful but necessary to explain this history. Someone can think I'm a newbie and maybe he/she is right.

Many people has knowledge about HTML but ,like me, not everydoby is updated about what tags are in use and what are deprecated.

I started working in a simple HTML using DreamWeaver like this:





As you can see, the basic template includes a DTD line specifying XHTML1.0.

My problem comes when I tried to add an APPLET to the page. I spent near an hour comparing my code with other pages: maybe my applet 'codebase' is wrong? maybe the libraries needed by the applet has a wrong path? ...

Finally I found the problem. Here is a copy&paste extracted from w3schools
:
The applet element was deprecated in HTML 4.01.
The applet element is not supported in XHTML 1.0 Strict DTD.

Friday, September 26, 2008

Swing Application Framework & Beans Binding

This is a short post related to two Java project that can be very useful.

Swing Application Framework (https://appframework.dev.java.net) is a small set of Java classes that simplify building desktop applications. I recommned it because it can be viewed as a set of good practices programming with Java. Also take a look at this article.

On the other hand, lately working with NetBeans I make use fo BeansBinding. It could be a bit confusing at the begining but to work with tables and bind values to DB tables, Lists or other objects, is very poweful