Package charva.awt

Examples of charva.awt.Dimension


     * determine the size of the visible viewport (when the
     * component being displayed does not implement the Scrollable
     * interface - for example, a TableHeader).
     */
    void setExtentSize(int width, int height) {
  _extent = new Dimension(width, height);
    }
View Full Code Here


    }

    /** Returns the size of the visible part of the view.
     */
    public Dimension getExtentSize() {
  return new Dimension(_extent);
    }
View Full Code Here

    public ListPanel(int cols, int rows) {
        super();
        this.rows = rows;
        this.cols = cols;
        this.setSize(new Dimension(cols, rows));

        jlist = new JList();
        jlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        jlist.setModel(new DefaultListModel());
        jlist.setVisibleRowCount(rows - 2);
View Full Code Here

        scrollPane.invalidate();
        validate();
    }

    public Dimension minimumSize() {
        return new Dimension(cols, rows);
    }
View Full Code Here

TOP

Related Classes of charva.awt.Dimension

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.