Package java.awt

Examples of java.awt.Scrollbar$State


    Panel panel = new Panel();
    panel.setLayout(new GridLayout(0, 2));

    redLabel = new Label(strings.get(Strings.NUMBER_OF_BITS_RED));
    panel.add(redLabel);
    redScrollbar = new Scrollbar(Scrollbar.HORIZONTAL, redBits, 1, 1, 7);
    redScrollbar.addAdjustmentListener(this);
    panel.add(redScrollbar);

    greenLabel = new Label(strings.get(Strings.NUMBER_OF_BITS_GREEN));
    panel.add(greenLabel);
    greenScrollbar = new Scrollbar(Scrollbar.HORIZONTAL, greenBits, 1, 1, 7);
    greenScrollbar.addAdjustmentListener(this);
    panel.add(greenScrollbar);

    blueLabel = new Label(strings.get(Strings.NUMBER_OF_BITS_BLUE));
    panel.add(blueLabel);
    blueScrollbar = new Scrollbar(Scrollbar.HORIZONTAL, blueBits, 1, 1, 7);
    blueScrollbar.addAdjustmentListener(this);
    panel.add(blueScrollbar);

    infoLabel1 = new Label();
    infoLabel2 = new Label();
View Full Code Here


    this.minValue = minValue;
    this.maxValue = maxValue;
    add(new Label(message), BorderLayout.NORTH);

    Panel panel = new Panel(new BorderLayout());
    scrollbar = new Scrollbar(Scrollbar.HORIZONTAL, initialValue, 1, minValue, maxValue + 1);
    scrollbar.addAdjustmentListener(this);
    panel.add(scrollbar, BorderLayout.CENTER);

    valueTextField = new TextField(Integer.toString(initialValue), 6);
    valueTextField.addKeyListener(this);
View Full Code Here

    Panel panel = new Panel();
    panel.setLayout(new GridLayout(0, 2));

    bitLabel = new Label();
    panel.add(bitLabel);
    scrollbar = new Scrollbar(Scrollbar.HORIZONTAL, bits, 1, 1, maxBits + 1);
    scrollbar.addAdjustmentListener(this);
    panel.add(scrollbar);

    panel.add(new Label(strings.get(Strings.NUMBER_OF_SHADES_OF_GRAY) + ": "));
    shadesLabel = new Label();
View Full Code Here

    /** 
     * creation and management scrollbars 
     */ 

    bar = new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, (pageEnd - pageStart)
        * SCROLLBAR_ACCURANCY);
    bar.addAdjustmentListener(this);
    JScrollPane scroller = new JScrollPane(canvas);
    scroller.getVerticalScrollBar().setPreferredSize(new Dimension(0, 0));
    scroller.getHorizontalScrollBar().setPreferredSize(new Dimension(0, 0));
View Full Code Here

      f.setBackground(Color.lightGray);
      Panel editor = new Panel();
      Panel browser = new Panel(new BorderLayout());
      TreeListener tl = new TreeListener(editor);
      ServerBrowser sb = null;
      Scrollbar sv = new Scrollbar(Scrollbar.VERTICAL);
      Scrollbar sh = new Scrollbar(Scrollbar.HORIZONTAL);
      try {
        AdminContext ac = new AdminContext(new URL(baseURL));
        sb = new ServerBrowser(ac, tl);
        sb.setVerticalScrollbar(sv);
        sb.setHorizontalScrollbar(sh);
View Full Code Here

    protected void initFrames()
  throws RemoteAccessException
    {
  Panel fbrowser = new Panel(new BorderLayout());

  Scrollbar sv = new Scrollbar(Scrollbar.VERTICAL);
  Scrollbar sh = new Scrollbar(Scrollbar.HORIZONTAL);
  FrameTreeListener ftl = new FrameTreeListener(this);
  fb = new FrameBrowser(ftl, root_rrw);
  fb.setVerticalScrollbar(sv);
  fb.setHorizontalScrollbar(sh);
  fbrowser.add("Center", fb);
View Full Code Here

  setLayout(bl) ;
  // Add the text:
  text = new TextField("0") ;
  add ("North", text) ;
  // Add the slider:
  slider = new Scrollbar(Scrollbar.HORIZONTAL, 0, 100, lo, hi) ;
  add ("South", slider) ;
    }
View Full Code Here

        vData = new Vector();

        setLayout(null);

        sbHoriz = new Scrollbar(Scrollbar.HORIZONTAL);

        add(sbHoriz);

        sbVert = new Scrollbar(Scrollbar.VERTICAL);

        add(sbVert);
    }
View Full Code Here

        fFont = new Font("Dialog", Font.PLAIN, 12);

        setLayout(null);

        sbHoriz = new Scrollbar(Scrollbar.HORIZONTAL);

        add(sbHoriz);

        sbVert = new Scrollbar(Scrollbar.VERTICAL);

        add(sbVert);
    }
View Full Code Here

        fFont = new Font("Dialog", Font.PLAIN, 12);

        setLayout(null);

        sbHoriz = new Scrollbar(Scrollbar.HORIZONTAL);

        add(sbHoriz);

        sbVert = new Scrollbar(Scrollbar.VERTICAL);

        add(sbVert);
    }
View Full Code Here

TOP

Related Classes of java.awt.Scrollbar$State

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.