I've got three windows in my application so far. The first one is a "public" dialog window with a place for the user to enter their username and password. There are two buttons below the username and password fields labeled "Login" and "New User" respectively. I have an actioneventlistener attached to the "Login button" that, when clicked, opens the main application window if the username and password are found in the database. I got that far and every thing worked great until I attached an action listener to the "New User" button. The "New User" button should open up a dialog box that has fields to enter appropriate info., but I can't get it to compile. I get this when I compile: bin/TST.java [141:1] No constructor in bin.NewUser matches <init>() new NewUser().show(); ^ 1 error I don't understand what I'm doing wrong. HELP!!! Craig Snowbarger
It looks like you tried to call a no-arg constructor for the NewUser class when there isn't one. You probably wrote at least one other constructor, which means the compiler didn't supply a no-arg constructor for you. You should write one.