UI Swing turorial online.
My question is about this line:
SpringLayout layout = new SpringLayout();
As we know, class SpringLayout is implemented the interface LayoutManger, so this SpringLayout-to-LayoutManager is is-a relation. But when I replace it by:
LayoutManager layout = new SpringLayout();
Problem occurs, the IDE indicates that methods cannot be found.