actually nevermind - i figured out what you were saying, but now the problem is that although it executes upto the if condition, it doesnt go anyfurther - i put showStatus("click") after the Object obj = evt.getSource() line, and it executes, so it's catching the click but it isnt...
Hey,
thanks for the quick reply. I'm a Java newbie, so although what you said makes sense, i can't implement it!! the reason for the if condition is that there are actually 2 btns on that panel, (like i said, i simplified the code as much as possible!) so i need that line!! could you PLEASE...
Hi, please help me! this is the code i wrote, with the error given below:
CODE:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class tabslisten extends JApplet
{
JPanel RecPanel;
GridBagLayout gbl;
GridBagConstraints gbc;
public void init ()
{
FlowLayout...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.