Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDialog Netbeans Runtime

 
antonio espinosa
Ranch Hand
Posts: 30
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Darryl Burke
Bartender
Posts: 5132
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

3. Follow Java coding conventions. Variable names start with a lowercase letter.

0. Welcome to the Ranch!
 
antonio espinosa
Ranch Hand
Posts: 30
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very well , i'll do my homework research! thank you a lot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic