Customers Java Swing Application with Source Code


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.


Full source code on Bitbucket

* Customers Java Swing Application images and icons credit: and


  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.


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


      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 > file). I have Flamingo and Substance libs from,, This project sites were closed, details here.

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

      Best regards.


  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 ?


  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?


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


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

      getTableModel().addColumn(new EntityTableColumn(
      "category", Category.class, 200));


  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());

    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


    • 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.


  5. Abhinandan
    Jan 21, 2015 @ 12:54:36

    Please give me link to download project


    • Cem Ikta
      Jan 21, 2015 @ 22:55:08

      Customers Java Swing Project source code hosted on Bitbucket, you can fork or download all files from the repository!


  6. khem nem
    Jun 02, 2015 @ 06:59:31

    how do i display id in table?


    • Cem Ikta
      Jun 02, 2015 @ 21:18:32

      You can add Id column in Page View e.g CategoryPage#addTableColumns method.

      getTableModel().addColumn(new EntityTableColumn( I18n.CUSTOMERS.getString("Category.Page.Id"), "id", Long.class, 150));


  7. khem nem
    Jun 02, 2015 @ 07:05:57

    how do i filter by id?


  8. khem nem
    Jun 06, 2015 @ 15:40:49

    Hello Cem Ikta, Can you write code snippet about filter by id?

    I have problem with with(“id”, “%” + filter + “%”)


  9. khem nem
    Jun 06, 2015 @ 16:47:00

    Thank for reply me! but getTableModel().addColumn(new EntityTableColumn( I18n.CUSTOMERS.getString(“Category.Page.Id”), “id”, Long.class, 150)); not work it has error like this
    com.devsniper.desktop.customers.framework.EntityTableColumn getValue
    SEVERE: null
    java.lang.NoSuchFieldException: id
    at java.lang.Class.getDeclaredField(


  10. bonny sebastian
    Jul 03, 2015 @ 06:42:02

    plz tell me how to import database content to mysql of this current project…….. whenever i import it shows sql dump import error… plz tell me how can import data to mysql and run my project successfully .


Leave a Reply