Hello i'm trying to call my login class from my main to run the program, but i don't know what i'm doing wrong :/
i get this error here:
Bank.java:24: error: constructor testlogin in class testlogin cannot be applied to given types;
and here is my main code if it helps
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class Bank extends JFrame { final static String[] labelStr = {"Just a test", "Dummy label", "to fill", "the form"}; // this the master frame... we just fill it with labels an button to show how it works Bank() { super("Bank"); // build a dummy panel with dummy labels just to fill the GUI JPanel panel = new JPanel(new GridLayout(labelStr.length, 2)); for(int i = 0; i < labelStr.length; i++) { panel.add(new JLabel(labelStr[i])); panel.add(new JButton("Button " + i)); } add(panel); setSize(400, 200); // create and show the Login form new testlogin(this); } // to test the whole thing public static void main(String[] args) { new Bank(); } }
Can someone please help me get past this error?