Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Ask about Reporting in Swing + Hibernate Annotation + JDBC

Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends..

I am developing simple Swing application which uses Hibernate..
I have no experience before how to reporting in Swing application which used Hibernate..
I've tried it.. and i'm stuck..

but i've any idea..
i wanna create app like this :
if the CRUD to table then i would use Hibernate..
and if generate report then i would use JDBC..

is it good for implementation or not?..
Thanks in advance..
Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing in itself does not offer any kind of reporting controls (unless you count JTable as a reporting tool). However Swing does have graphing capabilities which can be leveraged. There are many third part open source libraries which will help you generate reports. BIRT, Jasper,JFreeChart,Cewolf are a few which immediately come to my mind. Google will help you find more.

I do not really understand the point of swing and hibernate or jdbc.
Swing/reporting would be the visual component. A good design would dictate, that the data source/origin should be transparent to the visual component. I would suggest abstraction to make your life easier.
I personally use JFreeChart a lot. It is open source and easy to use. Just check out their API. That should give you a good idea on designing your framework

Also, please take it easy on the smilies.
Look ma! I'm selling my stuff!
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!