Package charva.awt

Examples of charva.awt.Component


        if (key < '0' || key > '9') {
            Toolkit.getDefaultToolkit().beep();
            e_.consume();
        }

        Component source = (Component) e_.getSource();
        if (source == _yearField && _yearField.getText().length() < 4) return;

        if (source == _monthField && _monthField.getText().length() < 2)
                return;
View Full Code Here


    public void focusGained(FocusEvent fe_) {
    }

    public void focusLost(FocusEvent e_) {
        Component source = (Component) e_.getSource();

        /*
         * Get the absolute origin of this component.
         */
        /* Point origin = */getLocationOnScreen();
 
View Full Code Here

        } else if (key == KeyEvent.VK_BACK_TAB) {
            getParent().previousFocus();
            ke_.consume();
            return;
        } else if (key == KeyEvent.VK_RIGHT) {
            Component currentFocus = super.getCurrentFocus();
            int menuCount = getMenuCount();
            int i = 0;
            for (i = 0; i < menuCount; i++) {
                if (currentFocus == super.getComponent(i)) break;
            }
            if (i == menuCount - 1)
                i = 0;
            else
                i++;
            getMenu(i).requestFocus();
            ke_.consume();
        } else if (key == KeyEvent.VK_LEFT) {
            Component currentFocus = super.getCurrentFocus();
            int menuCount = getMenuCount();
            int i = 0;
            for (i = 0; i < menuCount; i++) {
                if (currentFocus == super.getComponent(i)) break;
            }
View Full Code Here

    /** Implements the ItemListener interface. Listens for state
     * changes from all the buttons in the group.
     */
    public void itemStateChanged(ItemEvent e_)
    {
  Component source = (Component) e_.getSource();
  int statechange = e_.getStateChange();

  /* There should have been only one button in the selected
   * state. All the other buttons should be in the deselected state.
   */
 
View Full Code Here

TOP

Related Classes of charva.awt.Component

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.