Customers Java Swing Application with Source Code

customersdesktop

I have developed the Customers Java Swing Application Demo. This application may be useful for developers who want to use Flamingo, Substance and SwingX.

Technology stack:

Model View Controller (MVC) vs Model View Presenter (MVP):

The Customers Java Swing Application Demo has MVC design pattern such as Java Swing. MVP is also popular for Desktop and RIA. Which is best, there are many discussions. Martin Fowler has written very good explanations for GUI Architectures. You may like to read.

Models and Services:

I have written entities with NamedQueries in JPA and Hibernate. The services are very simple with Generic AbstractService.

Screenshots:

Full source code on Bitbucket

* Customers Java Swing Application images and icons credit: iconsdb.com and icons8.com

8 Comments

  1. Arian
    Jul 25, 2014 @ 08:08:00

    What is the version of the Flamingo that this example used? I downloaded the source from the project in github but the packages is different. The one that you are using also have slider package which is not available in the github source.

    I would like to have the doc jar, where could I found it for the version you are using?

    Thank you.

    Reply

    • Cem Ikta
      Jul 25, 2014 @ 21:55:56

      Hi,

      This demo use Flamingo-Version: 4.1final Guenivere, Flamingo-BuildStamp: May 24, 2009 11:57:06 PDT (you can find in flamingo.jar > META-INF > manifest.mf file). I have Flamingo and Substance libs from flamingo.dev.java.net, substance.dev.java.net, substance-flamingo.dev.java.net. This project sites were closed, details here.

      Unfortunetly, I haven’t javadocs from Flamingo and Substance libs.

      Best regards.

      Reply

  2. Ilhama
    Nov 16, 2014 @ 23:25:41

    Hi.I can work this project my computer.i am download project on bitbucket and istall MySql 5.5 .How to work project ?

    Reply

  3. hrama
    Nov 29, 2014 @ 05:25:55

    Hi. Great Project!
    I have a question to do, you are using reflection to get values from the class EntityTableColumn but this have a problem when the objects have inherited fields.
    Is there any way to get the inherited fields?

    Reply

    • Cem Ikta
      Nov 29, 2014 @ 20:10:02

      Hi,

      You can set your class type in your EntityTableColumn as below:


      getTableModel().addColumn(new EntityTableColumn(
      I18n.CUSTOMERS.getString("Customer.Page.Category"),
      "category", Category.class, 200));

      Reply

  4. hrama
    Nov 30, 2014 @ 07:29:39

    Thanks For the answer!
    Perhaps I was not clear on the question.
    When i use the Entity Table Column with object with inherited Fields i have an error in the line

    Field field = entity.getClass().getDeclaredField(getFieldName());
    field.setAccessible(true);

    The error is java.lang.NoSuchFieldException: name.
    This is because the getDeclaredField method don’t support inherited fields, my question is if there is a way to obtain that field

    Reply

    • Cem Ikta
      Dec 01, 2014 @ 18:11:49

      As far as I know, it should work, if that field has getters and setters. Can you write code snippet? then I can test in my project.

      Reply

Leave a Reply