• 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

Can any one Help me with MDI application and JavaDB?

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Farhad Rahmati
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In reply to your question here: https://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
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic