This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
There's a lot wrong here. One,your class extends JFrame but also constructs a JFramef, which is never used. Then, there's a setVisible(true) before any components are added. And since JFrame has a default BorderLayout, and you add 10 components without any constraints, only the last of these will be managed by the layout manager.
I suggest you go through the Swing tutorial trail, doing all the exercises as you go along. There's really no substitute for learning how to do things correctly.
There are no new questions, but there may be new answers.
Joined: Jan 27, 2011
thank you very much sir
i make a database and also define a interface to retrieve data from database...i created four button out these four button only one button is working and reaming are not.....when i click on these button and receive a message on cmd which is like that...
java.sql.SQlException Result set type is TYPE_FOREWORD_ONLY