• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDialog Netbeans Runtime

 
Ranch Hand
Posts: 30
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
very well , i'll do my homework research! thank you a lot!
 
reply
    Bookmark Topic Watch Topic
  • New Topic