File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: report?
It's not a secret anymore!