How to write a Tree Selection Listener in Java

A tree component is paired with some other component. When we selects tree nodes, some information shows up in another window.

Use of Sound and delay function in C

sound()is used to make a sound in a program. textattr() method is used for colourful characters.We can display Colourful Characters in TextMode and play sounds of random frequencies.

Storage Classes in C

Storage class is a characteristics of possession by a variable in C. The storage class of a variable determines the nature of the variable. Whenever you declare a variable, specify the storage class and data type of variable. C language supports four types of storage class 1)auto 2)register 3)static 4)extern

Switch Statement in C

The switch statement is a multiway decision making statement which selects one of the several alternatives based on the value of integer variable or expression. Switch statement requires only one arguments, which is then checked of case options.Break statement is essential use with switch statement because it stops the execution of succeeding cases and transfers the control out.

Changing the Label of a JButton Component in Java

JButton is a Swing Component which defined in package javax.swing.*;This program helps to change the Label(Caption) of the Button.The label of the Button “New” is changed into “Save” .

Program for initialize mouse cursor in C

This is program to Initialise Mouse and display its cursor. Dos.h header file is used for handling interrupts,date & time functions,producing sound,delay,sleep etc. We can do everything with mouse using C codes.

C programme to draw a Rainbow

In C Graphics we use graphics.h functions. This is used to draw different shapes(like circle,rectangle etc),display text(any message)in different format(different fonts and colors).By using graphics.h we can make programs, animations and also games. We have to call initgraph function which will initialize the graphics mode.

Menus and ToolBar in Java Swing

A tool bar is a button bar that gives quick access to the most commonly used commands in a program.Tool bar are made up of buttons,there is no restriction on the components that you can add to a tool bar.

ImageSelection in Java

The ImageSelection class is simply a wrapper for Image objects.Objects that you want to transfer via the clipboard must implement the Transferable interface.We build an ImageSelection class that can be used to transfer images through the local clipboard.

Java Print Dialog

The Java2D platform has the beginning of a robust printing model that is fully integrated with 2D graphics. We can easily print a drawing on a single sheet of paper. We can also manage a multipages printout and easily generate a print preview dialog.

Page 11 of 30