It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes JDialog Netbeans Runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JDialog Netbeans Runtime" Watch "JDialog Netbeans Runtime" New topic

JDialog Netbeans Runtime

antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

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

Joined: May 03, 2008
Posts: 5115

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!

luck, db
There are no new questions, but there may be new answers.
antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

very well , i'll do my homework research! thank you a lot!
I agree. Here's the link:
subject: JDialog Netbeans Runtime
It's not a secret anymore!