Skip to content

Commit 02910bc

Browse files
Create MakeLogin.java
1 parent e639fef commit 02910bc

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Java/MakeLogin.java

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* To change this template, choose Tools | Templates
3+
* and open the template in the editor.
4+
*/
5+
package project;
6+
import javax.swing.*;
7+
/**
8+
*
9+
* @author prashant
10+
*/
11+
public class MakeLogin {
12+
private String id;
13+
private String pass;
14+
public MakeLogin(){
15+
16+
}
17+
public void setID(String id){
18+
this.id=id;
19+
}
20+
public void setPass(String pass){
21+
this.pass=pass;
22+
}
23+
public String getID(){
24+
return this.id;
25+
}
26+
public String getPass(){
27+
return this.pass;
28+
}
29+
public String authenticate(){
30+
if(this.id.equals(null)||this.pass.equals(null)||this.id.equalsIgnoreCase("")||this.pass.equalsIgnoreCase("")){
31+
JOptionPane.showMessageDialog(null, "Please fill the id and password");
32+
}
33+
return null;
34+
}
35+
}

0 commit comments

Comments
 (0)