Results 1 to 8 of 8
  1. #1
    ShrutiB is offline Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0

    Default what is the frontend and backend in this program?

    A program in java has its interface designed with swing and processes the input of the user with event handling model and then updates a database accordingly (db is in My SQL). Please help..very confused.

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default Re: what is the frontend and backend in this program?

    Quote Originally Posted by ShrutiB View Post
    A program in java has its interface designed with swing and processes the input of the user with event handling model and then updates a database accordingly (db is in My SQL). Please help..very confused.
    I think, information you provided is not sufficient to understand your problem. Please let us know some more about your issue.
    Mak
    (Living @ Virtual World)

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,535
    Blog Entries
    7
    Rep Power
    20

    Default Re: what is the frontend and backend in this program?

    The Swing stuff makes up the frontend, the db stuff is the backend; all the rest should make up the 'C' in a proper MVC design.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    ShrutiB is offline Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0

    Default Re: what is the frontend and backend in this program?

    Quote Originally Posted by makpandian View Post
    I think, information you provided is not sufficient to understand your problem. Please let us know some more about your issue.
    it is an money dispenser kind of program with its interface designed in java with swing components like Jbuttons and Jframes etc. functions like money transfer , withdrawal etc are provided. The inputs are managed with the even driven model of java. Whenever some input is received, the appropriate amount is deducted or added from the user account. This is done by executing an SQL query through java.

    The db is in mysql.

    My question is what is the frontend and the backend in this program?

  5. #5
    ShrutiB is offline Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0

    Default Re: what is the frontend and backend in this program?

    so if the Jbuttons etc AND the sql queries are in the same file...how do i distinguish?

  6. #6
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default Re: what is the frontend and backend in this program?

    I do not think that having your UI controls (Jbuttons) along with sql queries is a good design pattern. You better (should) keep maintaining all your business logic out of UI.

    If you follow the design pattern what I recommended, we can say MySQL is DB layer, business logic where you keep all your sql quries is business layer of DA(Data access) and buttons is UI layer.

    In the case you asked now has two layers. 1. DB layer(Backend) 2. UI Layer (Front End)
    Mak
    (Living @ Virtual World)

  7. #7
    ShrutiB is offline Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0

    Default Re: what is the frontend and backend in this program?

    Quote Originally Posted by makpandian View Post
    I do not think that having your UI controls (Jbuttons) along with sql queries is a good design pattern. You better (should) keep maintaining all your business logic out of UI.

    If you follow the design pattern what I recommended, we can say MySQL is DB layer, business logic where you keep all your sql quries is business layer of DA(Data access) and buttons is UI layer.

    In the case you asked now has two layers. 1. DB layer(Backend) 2. UI Layer (Front End)
    Thank you!!! I will definitely keep that in mind in future. *hugs*

  8. #8
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default Re: what is the frontend and backend in this program?

    Thank You.
    Mak
    (Living @ Virtual World)

Similar Threads

  1. Java Backend Programmer (m/f) in Berlin
    By Stryking Jobs in forum Jobs Offered
    Replies: 0
    Last Post: 04-18-2013, 02:19 PM
  2. Replies: 0
    Last Post: 01-11-2013, 10:02 PM
  3. How to use java as a backend?
    By gpraveen in forum New To Java
    Replies: 4
    Last Post: 08-31-2011, 01:08 AM
  4. Web-Frontend-Architecture: Change a JSP-Application to a RIA
    By elPresidente in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-03-2010, 10:06 AM
  5. Registration Page Using JSP with Oracle as backend
    By ganeshnatarajan in forum New To Java
    Replies: 1
    Last Post: 09-17-2008, 01:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •