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.
Greetings coders, this is my very first post, i'm glad to join to the community!
i'm a newcomer into netbeans and java so i'm doing my best, here is my problem
i want a personalised JDialog on my main JFrame and i'm using netbeans as my IDE but new problems arises
firstly i have this code which is inside a class that gives me access to a database (no problem)
inside that package there is my personalised JDialog ErrorConexion, but i want to call this method from my MAIN JFrame form, the one netbeans creates
from a buttonacctionperformed event
but no jdialog shows up, what can i do?
how to improve my code?
how to use the getcontentpane of the main jframe form?
thank you in advance
1. The NetBeans visual designer isn't a beginners' tool. Learn to hand code your GUIs and (if at all you think it productive) get back to the visual designer after you have gained an understanding of the Swing classes and methods.
2. Generally speaking, don't mix Swing and JDBC code in the same class. Search the net for "MVC pattern" to understand this better.