File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

report?

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.


S.D. MADHAN
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

http://www.coderanch.com/t/342233/GUI/java/print-JPanel


SCJP 1.4, SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: report?
 
Similar Threads
JDBC - Applet - Swing
Accessing JFrame contents
Inserting an Image in JTextField
Displaying ArrayList data in a JTable
Calculator Problem