Yurttas/PL/OOL/Java/F/05/01/02/09/JScrollBars00.java
Jump to navigation
Jump to search
1/**
2 * Copyright(C) 2002
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, 2002.
11 * @author : Salih Yurttas.
12 */
13
14
15import javax.swing.*;
16
17import java.awt.*;
18
19public class JScrollBars00 extends JFrame {
20
21 public static void main(String[] args) {
22 JFrame jF = new JScrollBars00();
23
24 jF.setSize(400,320);
25 jF.setVisible(true);
26 }
27
28 private JScrollBar[] jSB;
29
30 public JScrollBars00() {
31 setTitle("JScrollBars00");
32
33 BorderLayout bL = new BorderLayout();
34 setLayout(bL);
35
36 jSB = new JScrollBar[2];
37
38 jSB[0] = new JScrollBar(JScrollBar.VERTICAL);
39 add(jSB[0],"East");
40
41 jSB[1] = new JScrollBar(JScrollBar.HORIZONTAL);
42 add(jSB[1],"South");
43 }
44
45}