Wednesday, December 29, 2010

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


Lecture Series on Computer Architecture By Prof. Anshul Kumar, Dept. of CSE,IIT Delhi

Posted: 28 Dec 2010 11:02 PM PST









Doubt in java programming...?

Posted: 28 Dec 2010 10:23 PM PST

hello friends,
check these codes..
Code:

import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class pp extends Applet implements ActionListener
{
    TextField t;
      Button    b;
    public void init()   
    {
            setLayout(new FlowLayout());
          t= new TextField(10 );
            b = new Button("Send");
        b.addActionListener(this);
            add(t);
            add(b);
      }
    public void actionPerformed(ActionEvent e)
    {
              String str=t.getText();
        dc a2 =(dc)getAppletContext().getApplet("a2");
              if ( a2 != null )
        {
                  a2.append(str);
              }
              else
        {
                  System.out.println("Applet not found?");
              }
        }
}

and the 2nd applet code goes here...
Code:

import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*<Applet code="dc" height=400 width=400></Applet>*/
public class dc extends Applet
{
    TextArea t;
    public void init()
    {
        setLayout(new FlowLayout());
        t=new TextArea(5,40);
        add(t);
    }
    public void append(String msg)
    {
        t.setText(msg);
    }
}

here goes the html codes...
Code:

<HTML><HEAD></HEAD><BODY>
<APPLET CODE="pp.class" 
        HEIGHT=200 WIDTH=150>
</APPLET>
<APPLET CODE="dc.class" 
        HEIGHT=200 WIDTH=400>
</APPLET>
</BODY></HEAD>

Don't know why it doesn't works.
Can anyone tell me where i have done mistake here....?

Ask Questions To Mr. Ajay Bhatt Of Intel - Co Inventor Of USB!

Posted: 28 Dec 2010 10:09 PM PST

CEans,

We're featuring Mr. Ajay Bhatt in our Small Talk - the co-inventor of USB - the most ubiquitous port used on Computers.

You might have seen this TV Commercial by Intel -



We'll pick up about 10 top questions and present them to Mr. Bhatt.

The deadline is about 12 hours from now. Don't miss this opportunity.

Ajax software Requirements

Posted: 28 Dec 2010 08:31 PM PST

Dear Friends,
I wish to learn AJAX. What are the softwares required?
I already have .Net 2005.
Adv. Thanks,
R.Rengaraj

Multi-programming Vs. Multi-processing

Posted: 28 Dec 2010 11:56 AM PST

I want to know the the difference between Multi-programming and Multi-processing.

how two applets communicate using static variable ?

Posted: 28 Dec 2010 09:32 AM PST

hello friends,
Anybody have idea about how two applet communicate using static members.

operating system

Posted: 28 Dec 2010 06:28 AM PST

Can Operating System be said as the composition of "kernel and system programs" only?

No comments:

Post a Comment