Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DecoratedWindowTest {
- public static void main(String[] args) {
- // create a decorated Window with horizontal and vertical scrollbars
- Window decoratedWindow = new HorizontalScrollBarDecorator (
- new VerticalScrollBarDecorator(new SimpleWindow()));
- // print the Window's description
- System.out.println(decoratedWindow.getDescription());
- }
- }
Add Comment
Please, Sign In to add comment