How to List of all the available Font using Java

If we want to find out determine which fonts are available in a system, we need to create an instance of java.awt.GraphicsEnvironment by calling its static method getLocalGraphicsEnvironment().

How to make Line Animation in Java

In Line Animation we use drawLine() to draw a line.In this example we use repaint() to change the color of the line.We can refresh the colors of the line.

Java Applet program to draw different shapes

Graphics is one of the important feature of Java.By using Graphics we can draw different shapes like Lines,Arcs,Polygon,Oval etc. We can also use different colors to display text or any shape .The graphics class defines a number of drawing functions.

How to print String onto Java Applet

String is a group of characters.If we want to print any string we have three methods first is by using byte[](for ASCII CODE) second is char c[](for single single character) and third is by using String(complete word).

  

How to write a Key Listener

KeyListener interface are invoked when any key(keyboard key) is pressed or released, or character is entered. When we press the key(any keyboard key) or released or typed the output is displayed in the status bar of the applet window.

Page 6 of 8

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @