Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ask about Reporting in Swing + Hibernate Annotation + JDBC  RSS feed

Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • 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..
Maneesh Godbole
Posts: 11445
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!