Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
These different classes....
have in common the presence of a change method, ....
implemented in different ways.
They are all ShapeShifters and, as such,....
all can be stored in a ShapeShifter array.
The ShapeShifter interface.
you can add OTHER COMPONENTS THAT IMPLEMENT ShapeShifter and ....
THIS CODE WILL STILL WORK .
Each ShapeShifter contains a change method that can be called.
Each MouseListener contains 5 mouse methods, each ActionListener contains an actionPerformed method, etc.
A class can implement several interfaces.
Because this class implements ActionListener,....
the OurLb instance olb can be registered as such.
Permissible syntax :
a = b = 3 ;
x = p = q = calculate( ) ;
We disable the FlowLayout manager, for we don't want it to change the component sizes.