Posts

Showing posts from May, 2021

Write a java program to demonstrate FocusEvent in Java AWT

 Aim: Wap to demonstrate the FocusEvnet using textfield and one Button on Frame or Applet  Theory :  Focus Event:                                This is the lowest component in the awt hierarchy. FocusEvents use when user wants to see, where they actually working. Basically, we can give any operation in this method. FocusEvent shines when the user is working on something and lost the working component or directory, then FocusGained and FocusLost methods works efficiently. To implement this listener in your program, We should implement FocusEvent at the time of class Declaration. For example : public class FocusDemo extends Frame implements FocusEvent   As we learn earlier FocusEvent have two Override Methods :  1) FocusGained: The object of this method invokes when Focus is Gained by some Elements such as Button,TextField, Checkbox, and all other components. ...

Java Notes for beginners [Notes PDF]

  • What is Java Java is a programming language and a platform . Java is a high level, robust, object-oriented and secure programming language. Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995. James Gosling is known as the father of Java. Before Java, its name was Oak . Since Oak was already a registered company, so James Gosling and his team changed the Oak name to Java. • History of Java The history of Java is very interesting. Java was originally designed for interactive television, but it was too advanced technology for the digital cable television industry at the time. The history of Java starts with the Green Team. Java team members (also known as Green Team ), initiated this project to develop a language for digital devices such as set-top boxes, televisions, etc. However, it was suited for internet programming. Later, Java technology was incorporated by Netscape.      The principles for creating Java programming...