How to use Various Components in Java Swing

Swing contains components that you will use to build a GUI .Swing GUI is based on the concept of components and containers.Components makes up the GUI such as Button or TextField etc. Easch component has certain properties .

How to create a MenuBar in Java Swing

The menu component in Swing enables you to list various available options.JMenubar in swing is set on the top area of the window displaying the GUI for a Java application.

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().

Change Background Color in JFrame

setBackground() is used to set the background color of the JFrame.awt package is used to set the color of the JFrame.AWT contains large number of classes and methods that allows yout o create and manage Windows.

How to use sqrt function in C++

Mathmetical function are those functions which are used for calculation like sin(X) used to find squareroot of the number. To use the math library functions, we must include the header file

“#include<math.h> “ in C++.

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.

Converting an int to a binary string representation in Java

Group of Characters make the String.We use single quotes(‘’)for character and double quotes(“”) for String. Here,Conversion means how we convert the integer number into binary.

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 find ASCII value of character in C

The continue statement is used to “continue “ the loop with its next iteration.It skips any remaining statements in the current iteration and immediately passes the control to the next iteration.

Page 20 of 30