aspose file tools*
The moose likes JDBC and the fly likes Can any one Help me with MDI application and JavaDB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Can any one Help me with MDI application and JavaDB?" Watch "Can any one Help me with MDI application and JavaDB?" New topic
Author

Can any one Help me with MDI application and JavaDB?

Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
hi guys

I am just trying to make a MDI application with embeded database. I have decided to use JavaDB to develop a embeded database.

I could not find enough resourses about JavaDB and embeded database in MDI application.

I tried many examples with netbeasn tutorials, but that is not enough, as I have many InternalJFrames and internal windows need to be linked with the emebeded database.

if you know could help me with some resourses or anything else. I would appriciate it

thank you
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1763
    
    7

Could you elaborate as to the specific problem(s) you are facing with integrating JavaDB in to your Swing application?
I'm not quite sure yet how this relates to the fact that your application uses a multiple document interface.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
Hi Jelle Klap

I am a new programmer, and I have a project something like a simple EPOS system which has an interal database. The systems is stand alone system which could be installed only in one computer and works with its underlying database.

You know, in this system I have many windows for example when you click on (Reports Button) a window appears as a container and there are many buttons and other components inside it.

for example, if you click on a calculator button. it opens the calculator for you.

for example if you click on stock control button. a window appears as a container which has a link with the database. and gets it's data from database. it might have some buttons to add new products and remove products.

I don't know, if I used the MDI correctly. As I am completely new. I thought I will have many windows and each window acts as a container and each window migh have a like with others.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1763
    
    7

In reply to your question here: http://www.coderanch.com/t/526060/JDBC/java/Help-GUI-embedded-JavaDB-database

There's plenty of documentation on JavaDB and it can be found here: http://download.oracle.com/javadb/
I'd suggest you drop the focus on MDI for the moment and start playing around with JavaDB in the context of a very simple application.
Get a feel for how it works. If you run into any problems, post them here.
If your comfortable with JavaDB and you've figured out how to use it in a simple application, you can move forward from there.
Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
HI

Actually, I have already checked this linkes and sites and I understand JavaDB and I have designed the database. in addition I have been looking every where and every sites in internet for 3 or 4 months.

Just I am not sure if I connect the database with the application, is it okay to use MDI and many internal JFrames for application to show different windows and frames for the application.

for webbased application, It's okay you have different pages. but for desktop based application I don't really know because there are many containers and each has a specific functionality.

I know, the main usage of MDI and we use it for applications like Microsoft Words but I am not sure If use it with database. would it be fine and am I in the right way or not.

Cheers
Farhad
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1763
    
    7

I'm still not sure what exactly it is you need our help with.
You've stated that you understand JavaDB and that you've designed the database.
Does that mean you've succesfully implemented an (any) application capable of accessing a JavaDB instance via JDBC?
If that's not the case we should focus our efforts on helping you achieve that.

Otherwise, this isn't really about JavaDB / JDBC connectivity at all and this topic should be moved to another forum.
You seem to be focussing strongly on MDI and whether or not that's a good fit for the type of application your developing.
That's a concern related to user interface design / usability. Is that what you're asking about?
Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
Hi Jelle

Thanks for your reply

Yea, you got my point. I have my database, designed and implemented using JavaDB embedded Driver. And I want to Build an application which has an embedded Database. the database contains many related tables. I have been searching for ages to find a way to connect a JavaDB embedded driver with a Java application. I could not find any comprehensive tutorial about this. The only article which is repeatedly posted in internet is (building an embedded database with netbeans 6.9) which has only one table. everytime I google for new tutorials or any other resources I get that and the JavaDB manuals.

Does that mean you've succesfully implemented an (any) application capable of accessing a JavaDB instance via JDBC?

I have only implemented the database, I mean in this stage I have only my database in JavaDB and nothing else.

Now, I need to design the application and need to link that with the database. I hope its clear now

If that's not the case we should focus our efforts on helping you achieve that.
Yes, I need your help to achieve that, at least a starting point

thanks
Farhad
Mark Amabile
Greenhorn

Joined: Jul 27, 2011
Posts: 3
Here's a good example of using java db embedded :

http://svn.apache.org/repos/asf/db/derby/code/trunk/java/demo/workingwithderby/WwdEmbedded.java
http://svn.apache.org/repos/asf/db/derby/code/trunk/java/demo/workingwithderby/WwdUtils.java

compile and run it.

If you need the Embedded driver
see http://db.apache.org/derby/releases/release-10.8.2.2.cgi

Regards,
Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can any one Help me with MDI application and JavaDB?