plzzzzzzzzz xplain this code
import java.awt.*;
import java.awt.event.*;
public class Link extends Frame implements ActionListener
{
Label l1;
Button b1;
public static void main(String sr[])
{
new Link().setVisible(true);
}
public Link()
{
super("Warning");
setSize(500,500);
setBackground(Color.lightGray);
setLayout(null);
l1=new Label("There is no Link");
l1.setBounds(0,0,500,460);
l1.setFont(new Font("TimesRoman",Font.BOLD,35));
l1.setAlignment(Label.CENTER);
add(l1);
b1=new Button("QUIT");
b1.setBackground(Color.orange);
b1.setBounds(0,460,500,40);
b1.addActionListener(this);
add(b1);
}
public void actionPerformed(ActionEvent e)
{
this.dispose();
}
}
No Answer is Posted For this Question
Be the First to Post Answer
1.What happens to a session object when the browser associated with it is closed? 2. Explain what happens when a servlet is sent a POST request? 3. Why does only one copy of a servlet get created? 4. Explain what happens when a browser requests a servlet? (for the first time) 5.How is information stored in a session object?
Design a timer circuit using VHDL which has the following: input : start_timer(ST) output: long_time(LT) short_time(ST) when the timer is triggered by the ST(either 0 or 1) signal the timer should generate two timing signals accordingly.While the long time is going ON the other should be OFF and vice versa.
Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }
Write a Program for matrix multiplication.
How many digit have a Polaris 1995 300c.c. 2x4 nad how many have a Polaris 2007 300 c.c 2x4? And what site I can check this information???
I have multiple datasets and I have to search a particular string in all of them at a single time. Please suggest a full jcl or rexx tool for it.
i am doing my final year project about programming use verilog ,i am new about it so got problem,i want to record the readings of a waveform every 2us use the verilog code ,every ten readings i need to add them together after that i need to compare this series of number to get which one is the biggest , right now i don't know how to use code to store the readings every 2us on a waveform ,pls help me thanks a lot .
Write a program that implements a date class containing day, month and year as data members. Implement assignment operator and copy constructor in this class.
Write a Program to find the reverse of a given number.
Write code to add functions, which would work as get and put properties of a class?
Dear sirs, Hi, I would like to inform you that I want to perform a project using MLP neural network to recognize binary images containing three types of geometric shapes such as squares,rectangels and circles. Furthermore,each image includes only one geometric type. The output of network would be: '1' if the network detects square shape. '2' if the network detects rectangle shape. '3' if the network detects circle shape. '4' if none of these shapes detected. Would you please send me a matlab source code for this project? Your prompt reply would be so appreciated. regards,
How can we write an algorithm for show max and min from two integer inputs ? without using if() , without any functions ...