This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
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.
Joined: Feb 07, 2007
I have this
........more code above....
And this is what it should appear at clicking the button
But nothing appears, by the way it�s OK to post all that rude code? (i mean the part of the init components)