Need help in Java using swing tools
How can we build a app that has 4 boxes and on clicking them boxes can be joined to other .
Needd urgently ...
plz help me out
Needd urgently ...
plz help me out
Replies
-
Morningdot HabluIt's a simple thing to do buddy...where you find problem in doing so....?
try to use setVisible().
Check this...
import java.awt.*; import java.applet.*; import java.awt.event.*; /**/ public class ne extends Applet implements ActionListener { Button b[]=new Button[3]; int i; public void init() { for(i=0;i<=2;i++) { b[i]=new Button("mohit"); add(b[i]); b[i].addActionListener(this); } } public void actionPerformed(ActionEvent e) { repaint(); b[0].setVisible(false); b[1].setVisible(false); } public void paint(Graphics g) { } }
You are reading an archived discussion.
Related Posts
Try to solve this and show your solution.
1. A stone is dropped from a well and 5s later the sound of the splash is heard. If the velocity of...
Hai friends
i want to participate in workshops in my state,
any one give my their list
workshops in next month............
You are given two numbers A and B,
You have to divide A by B without using division operator and modulus operator ?
PS: Repeated Subtraction is not allowed..
I...
In cryptography, MD5 (Message-Digest algorithm 5) is a widely used cryptographic hash function with a 128-bit hash value. Specified in RFC 1321, MD5 has been employed in a wide variety...
This should be my first thread in this forum(CE).:smile:
I'm trying to build a gsm activated car security. Will someone tell me where to tap the signal that will activate...