alcher.addActionListener(new ActionListener(scriptMenu) { public void actionPerformed(ActionEvent arg0) { while (true) { if (BSBotClient.username == null ? "" != null : !BSBotClient.username.equals("")) if (BSBotClient.password == null ? "" != null : !BSBotClient.password.equals("")) break; BSBotClient.username = JOptionPane.showInputDialog("Enter username:"); BSBotClient.password = JOptionPane.showInputDialog("Enter password:"); if (BSBotClient.username == null ? "" != null : !BSBotClient.username.equals("")) if (BSBotClient.password == null ? "" != null : !BSBotClient.password.equals("")) continue; JOptionPane.showMessageDialog(null, "Please enter something atleast"); } BSBot.bsBot.scriptHandler.playScript(new BSScriptPaladinThiever(BSBot.bsBot)); this.val$scriptMenu.setEnabled(false); } });
eclipse gives this error:
The constructor Object(Menu) is undefined
is there way to fix this?