File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans Master/Detail form wizard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans Master/Detail form wizard" Watch "Netbeans Master/Detail form wizard" New topic

Netbeans Master/Detail form wizard

Tom Piersa

Joined: Sep 25, 2009
Posts: 19
I've Googled this to death. I must just be to fried to come up with the right Google phrase.

I created my first Swing App using the Master/Detail form wizard in Netbeans (7.3.1, New, Master/Detail Sample Form). I pointed the form to the database on my laptop so I wouldn't screw up production data. I'm using integrated security with MS SQL Server. I'm done testing and I now want to change the connection string to point to the production database. I've look through the code thats generated and I can't find the connection string that's generated. Could someone point me in the right direction for updating the connection string.

I'm sure this is fall off the bar stool simple.

Thanks much,

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10767

Not really a GUI question. I will move this over to the IDE forums for you.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tom Piersa

Joined: Sep 25, 2009
Posts: 19
Thanks - Tom
Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1101

Hi Tom,
The NetBeans Master-Detail actually creates JPA entities and other helper classes to deal with database. So, it is just a matter of changing the url in the persistence.xml (found under the META-INF) folder.

Tom Piersa

Joined: Sep 25, 2009
Posts: 19
Got it. Thank you very much. Looks real easy to change the connection string at will. Interesting results with integrated security for SQL Server.

I agree. Here's the link:
subject: Netbeans Master/Detail form wizard
It's not a secret anymore!