|
|
Submitted by Rahimv on Mon, 08/23/2010 - 17:10
/*-*-*-*-*-*-*-*-*--*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Create an applet which takes number from text field and on clicking button labelled
"read" checks whether the number is in range of 0 to 100 or not. If not it should
throw customized exception "Out of Range...". If exception is thrown, put message
|
|
|
Submitted by Rahimv on Mon, 08/23/2010 - 17:02
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Create an applet that takes Login Name and Password from the user and check that
Login Name is "demo" and password is "demopassword".
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
import java.applet.Applet;
|
|
|
Submitted by Rahimv on Sat, 08/21/2010 - 17:59
/*
Button:
~~~~~~~
Button();
Button(String);
Methods:-
String getLabel();
void setActionCommand(String);
String getActionCommand();
void setLabel(String);
public synchronized void addActionListener(ActionListener);
*/
import java.awt.event.*;
import java.awt.*;
import java.applet.*;
/*
|
|
|
Submitted by Andr on Fri, 08/20/2010 - 20:49
|
|