The ActionListener interface declares a method that is called when an action event is generated. Only single method is defined in ActionListener interface and that is void actionPerformed(ActionEvent ax).
JTabbedPane in swing enables you to group several swing component groups on the same container. To view a particular component group, you need to select the tab corresponding to the component group in the tabbed pane. A JTabbed Pane component provides quick access to the multiple JPanels using the same space and Window.
Interface is the prototype of class (means we can declare the functions only)that can be implemented by any number of classes. It is the collection of methods and variables. Methods are only abstract methods means the methods has no statements. We use interface keyword to declare an interface.
An <applet> tag is used to pass parameter in an applet. We use <PARAM> tag to pass anapplet parameters. The <PARAM> tag has two attributes one is NAME and other is VALUE.
Vectors are another form of Arrays in Java. The difference between array and vector is that Vector is a generic dynamic array that can hold any number of objects. The vector class is defined in the special package and that is java.util package.
In java we can create arrays that are not rectangular. Such type of arrays are called unstructured arrays or N-dimensional array. To declare such type of arrays, you can specify memory to store separate number of elements in separate rows.
BorderLayout divides the container into five parts (directions),east,west,north,south,centre. By using this Layout we can place AWT components in each parts(different location).
GridLayout places components(Labels,TextFields etc) in a grid of equally sized cells(intersection of a row and a column), adding them to the grid from left to right and top to bottom.It divides the containers into rows and columns.
The Switch-case statement is a multi way decision statement. If and if-else are used for small number of choices but when we have large number of conditions we use switch-case statement. Depending upon the value supplied by user, the appropriate case is matched, the corresponding statements will be executed, all the other cases will be skipped.
In function when we pass arguments by value then the photocopy is actual arguments is passed to formal arguments where as in call by reference the actual address of actual arguments passed to formal arguments.