my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes report? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "report?" Watch "report?" New topic


nick kaushik
Ranch Hand

Joined: Sep 25, 2009
Posts: 48

i want to take values from text fields and print them in a report format(only values with proper formatting).here is a prog i wrote which doesnt do anything once button is pressed.other progs are also welcome....

"ye shall know the truth & the truth shall set you free..."
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please use JTable to design the report you need and then use your program to fill the JTable.

Not many get the right opportunity !
Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
Check the below post, i suggest you use Jpanel and add print toolbar on top of the panel and update your text fields or tables in Jpanel.
When you press the print icon on your toolbar it should populate with the print dialog

SCJP 1.4, SCWCD 1.4
Don't get me started about those stupid light bulbs.
subject: report?
jQuery in Action, 3rd edition