If you had your Java textbooks tell you that "Applets are defined as programs that run in the browser", then you probably have to get a new revision of that textbook. Probably even authors and Java gurus need to change their definitions and refresh their ideas. And all this because from Java 6...