Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Monday, November 19, 2007

Examples in Java

A very common example are GUI frameworks, eg Java's Swing and AWT classes. They have a huge amount of code to manage the user interface, and there is inversion of control because you start the GUI framework and then wait for it to call your listeners.

The Collections classes are sometimes called a framework, perhaps largely because of the size and complexity. But it is more properly referred to as a library because there is no inversion of control -- your programs simply calls methods in these predefined or extended classes.

Basic GUI framework? A criticism of Java is that a lot of explicit programming is still required to get even simple GUI programs running. There is a Java Specification Request, JSR 296: Swing Application Framework to lighten the programmer's burden.

No comments:

Post a Comment

Archives