Monday, 11 September 2017

Inner class types



Inner class
          It has declared either static or non-static.
          It can be accessed all the properties of its outer class.
two types
o   Named Inner class
o   Anonymous Inner class

Inner class



Inner class
          It has declared either static or non-static.
          It can be accessed all the properties of its outer class.

java.util.EventObject



java.util.EventObject
public Object getSource();

WindowEvent



WindowEvent
public Window getWindow();

KeyEvent



KeyEvent
methods:-
public int getKeyCode();
public char getKeyChar();
public void setKeyCode(int);
public void setKeyChar(char);
constant fields:-
public static final int VK_A;
public static final int VK_1;
public static final int VK_ENTER;
public static final int VK_SHIFT;

MouseEvent



MouseEvent
methods:-
public int getX();
public int getY();
public int getClickCount();

Featured post

Development Of JAVA Program