I can;t link Jframes help quick plx

Answered

so i want to open another Jframe on a press of a button

but when i try to do code==>

my button is called LOGINBUTTON
my second fram is called Frame2

LOGINButton.addActionListner(new ActionEvent actionEvent){

@override

public void actionPerformed(ActionEvent actionEvent){

if (pad.equals("1234")) {

Frame2 f2= new Frame2();

f2.setVisable(true);

i cant do set visable can someone help quick

 

0
1 comment

Please share the sample project. Is the issue with the IDE or with your Java code?

0

Please sign in to leave a comment.