Archive for 2009

Java program to display a clock

Thursday, December 3rd, 2009  »  Posted By  »  Total 0 Comment

background_ = new GSegment();
GStyle backgroundStyle = new GStyle();
backgroundStyle.setBackgroundColor (new Color (122, 136, 161));
backgroundStyle.setForegroundColor (new Color (0, 0, 0));
background_.setStyle (backgroundStyle);
addSegment (background_);

Java Program for calculator

Thursday, December 3rd, 2009  »  Posted By  »  Total 2 Comments

JPanel p = new JPanel();
p.setLayout(new GridLayout(4, 4));
String buttons = “789/456*123-0.=+”;
for (int i = 0; i < buttons.length(); i++)
addButton(p, buttons.substring(i, i + 1));
add(p, “Center”);

Wi-Fi Technology

Mesh Network Sunday, October 11th, 2009  »  Posted By  »  Total 5 Comments

Electrical technology has been greatly enhance  with the introduction of  wireless communication. Wi-Fi is the one among the achievements. The term Wifi stands for Wireless fidelity. Wi-Fi is a brand originally licensed by the Wi-Fi Alliance to describe the underlying technology of wireless local area networks (WLAN) based on the IEEE 802.11 specifications. It was [...]

Introduction to PCI protocol

Figure 1: Signals defined in the PCI standard. Saturday, October 10th, 2009  »  Posted By  »  Total 8 Comments

Today’s computer systems, with their emphasis on high resolution graphics, full motion video, high bandwidth networking, and so on, go far beyond the capabilities of the architecture that ushered in the age of the personal computer in 1982. Modern PC systems demand high performance interconnects that also allow devices to be changed or upgraded with [...]

10W Audio Amplifiers

10 W Audio Amplifiers Circuit diagram Saturday, October 10th, 2009  »  Posted By  »  Total 3 Comments

Introduction:  Amplifier device that accepts a varying input signal and produces an output signal that varies in the same way as the input but has larger amplitude. The input signal may be a current, a voltage, a mechanical motion, or any other signal; the output signal is usually of the same nature. The most common [...]

Java program of Client-Server network for Chatting between Client and Server

Sunday, October 4th, 2009  »  Posted By  »  Total 2 Comments

BufferedReader cin=newBufferedReader(newInputStreamReader(sk.getInputStream()));
PrintStream cout=new PrintStream(sk.getOutputStream());
BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));

Java program that finds the area of a circle using Client-Server network

Sunday, October 4th, 2009  »  Posted By  »  Total 1 Comment

ServerSocket ss=new ServerSocket(2000);
Socket s=ss.accept();
BufferedReader br=new BufferedReader(newInputStreamReader(s.getInputStream()));
double rad,area;
String result;

Java program that illustrates how run time polymorphism is achieved

Sunday, October 4th, 2009  »  Posted By  »  Total 0 Comment

figure f=new figure(45,6);
rectangle r=new rectangle(10,30);
triangle t=new triangle(10,20);
figure a;
a=f;
System.out.println(a.area());

Java applet program that allows the user to draw lines, rectangles and ovals

Java applet progrme for draw lines, circle, rectangle Sunday, October 4th, 2009  »  Posted By  »  Total 6 Comments

Color c1=new Color(35-i,55-i,110-i);
g.setColor(c1);
g.drawRect(250+i,250+i,100+i,100+i);
g.drawOval(100+i,100+i,50+i,50+i);
g.drawLine(50+i,20+i,10+i,10+i);

Java applet program for handling Keyboard events

Java Keyboard programe output Sunday, October 4th, 2009  »  Posted By  »  Total 6 Comments

public void init()
{
addKeyListener(this);
requestFocus();
setBackground(Color.green);
setForeground(Color.blue);
}

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup