Hi i�m developing an application about a repair shop for automotive vehicles with a connection to a DB. Waht i want to do is this :i have my button "New Client" and i�m trying to do that when i press the button , it opens a new window (i think it would be a new JFrame) where it will be the application form to fill it with the name,last name, address, telephone and so on but i don�t know what component i have to use.
usually a JDialog is used, similar to a JFrame, but used modally, meaning execution of the calling method is paused until the dialog closes, and, if it's the way you want to do it, return the input data.
1) ...created and added a listener for your button? 2) ...created your new client window by using the new operator? 3) ...set your layout manager for your client window? 4) ...added the components to your new client window? 5) ...called setVisible(true) for your new client window? Do this last of all. 6) ...are you using more than a single thread? this requires extra care.