Unit 1: The Applet Class

Applet Applets are small Java applications that can be accessed on an Internet server, transported over Internet, and can be automatically installed and run as apart of a web document. After a user receives an applet, the applet can produce a graphical user interface. It has limited access to resources so that it can run […]

Continue Reading

Unit 2: Even handling

Event Handling Any program that uses GUI (graphical user interface) such as Java application written for windows, is event driven. Event describes the change in state of any object. For Example : Pressing a button, Entering a character in Textbox, Clicking or Dragging a mouse, etc. Components of Event Handling Event handling has three main components, Events […]

Continue Reading

Unit 6: Exploring Swing

6.2 JTextField JTextField is used for taking input of single line of text. It is most widely used text component. It has three constructors,

  xample using JTextField

6.3 JButton JButton class provides functionality of a button. JButton class has three constuctors,

It allows a button to be created using icon, a string or […]

Continue Reading

Unit-6 Congestion control & Quality of service

Congestion Congestion in a network may occur if the load on the network-the number of packets sent to the network-is greater than the capacity of the network-the number of packets a network can handle. Congestion happens in any system that involves waiting. 6.1.1 General Principles of congestion control Congestion control refers to techniques and mechanisms […]

Continue Reading

Unit 3: Introducing AWT

3.1 AWT classes AWT contains large number of classes and methods that allows you to create and manage graphical user interface ( GUI ) applications, such as windows, buttons, scroll bars,etc.  2 packages – java.awt and java.awt.event – are commonly-used. The java.awt package contains the core AWT graphics classes: GUI Component classes, such as Button, TextField, and Label. GUI Container classes, such as Frame and Panel. Layout managers, such as FlowLayout, BorderLayout and GridLayout. […]

Continue Reading