• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help pls-Class Reference!  RSS feed

 
Innocent M. A
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls I need help with this-
import javax.swing.*;
import java.awt.event.*;
class Welcome extends JApplet
{
JButton welcome_but;
public void init(){
welcome_but=new JButton("Welcome to ABC Corporation");
}
public void actionPerformed(ActionEvent ae){
if(ae.getActionCommand==welcome_but){
new Login();
//Where Login is the JDialog class
}
}
please I need help on this which is the right way of making reference to this class, the login class looks like this-
import javax.swing.*;
import java.awt.event.*;
class login extends JDialog
{
public Login(){}
}
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16058
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear "Innocent M. A",

I am one of the moderators of the JavaRanch forums. Here on JavaRanch, we have a naming policy. We want the users of JavaRanch to use a real-sounding name as their display name.

Unfortunately, your name "Innocent M. A" does not comply to the naming policy. Your display name should consist of a real-sounding first name, space, and a second name. Not only a first name, no obviously fake nickname, no initials only for the second name.

Please read the naming policy carefully and change your display name. You can change your name by editing your profile.

Please note that we are taking the naming policy seriously. If you do not change your display name, your account on JavaRanch might be locked.

Have fun on JavaRanch,
Jesper Young - Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!