Yurttas/PL/OOL/Java/F/05/02/02/08/Scrollbars00.java
Jump to navigation
Jump to search
1/**
2 * Copyright(C) 1998
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : January 1, 1998.
11 * @author : Salih Yurttas.
12 */
13
14
15import java.awt.*;
16
17public class Scrollbars00 extends Frame {
18
19 public static void main(String[] args) {
20 Frame f = new Scrollbars00();
21
22 f.setSize(400,320);
23 f.show();
24 }
25
26 private Scrollbar[] sB;
27
28 public Scrollbars00() {
29 setTitle("Scrollbars00");
30
31 BorderLayout bL = new BorderLayout();
32 setLayout(bL);
33
34 sB = new Scrollbar[2];
35
36 sB[0] = new Scrollbar(Scrollbar.VERTICAL);
37 add(sB[0],"East");
38
39 sB[1] = new Scrollbar(Scrollbar.HORIZONTAL);
40 add(sB[1],"South");
41 }
42
43}