Can i use swing and Mysql as a database ?
I just started to use Swing in java to generate a computer’s desktop application.I have already applied MySql throughout my projects with JSP.So i believe it will be easier if i can utilize the back stop of my desktop program as Mysql.if this can be possible suggest how one can connect both equally.if this is simply not possible propose me better solution.
If you learn how to access your database straight from JSP, you gain access to it identical way with Swing.It is all Coffee beans.
Define your own jdbc driver to establish a link with the repository, and then utilize the java.sql classes gain access to the databases.
If you need something more robust with ORM, explore diverse persistence frameworks such as Hibernate or even OJB gain access to your data source.
You have in store MySql and they also have some sort of dev portion.Either the particular ODBC or JDBC driver is required.
With NetBeans IDE you’re likely to be up in addition to running inside 15 minutes.
With JPA — section of Java 6+ — you don’t even need to write that SQL transactions.
Furthermore, this could all always be done to be a contained JavaSE task.
Hence, you will have to google jdbc mysql.That could bring upward tutorials, the particular download site and details.
Enjoy.
Swing is really meant with regard to better program….it can better in the event u use mysql connetion not directly however via any jsp and also ejb…it will be much safer option….dont blend database(ie third tire) together with userinterface (ie 2nd tire )
employ model see controller architcture…
Leave a Reply
You must be logged in to post a comment.