appD





Writing Advanced Applications, Appendix D: Additional Code






























































































































































 



































Training Index
Writing Advanced Applications
Appendix D: Additional Code

[<<BACK] [CONTENTS] [NEXT>>]


This appendix provides additional code that shows you more ways
to do some of the things covered in the earlier chapters of this
book.



Print a Sales Report





Print a Sales Report

The SalesReport.java
Applet class
prints a sales report with the rows split over multiple pages
with numbers at the bottom of each page.
Here is how the application looks when launched:





You need this policy file to launch the applet:




grant {
permission java.lang.RuntimePermission
"queuePrintJob";
};




To launch the applet assuming a policy file named
printpol and an HTML file named
SalesReport.html, you would type:



appletviewer -J-Djava.security.policy=printpol
SalesReport.html




This diagram shows how the report prints:








[TOP]




























[ This page was updated: 13-Oct-99 ]












Products & APIs |
Developer Connection |
Docs & Training |
Online Support
Community Discussion |
Industry News |
Solutions Marketplace |
Case Studies













Glossary -
Applets -
Tutorial -
Employment -
Business & Licensing -
Java Store -
Java in the Real World








FAQ |
Feedback |
Map |
A-Z Index













For more information on Java technology
and other software from Sun Microsystems, call:


(800) 786-7638

Outside the U.S. and Canada, dial your country's
AT&T Direct Access Number first.






Copyright © 1995-99
Sun Microsystems, Inc.
All Rights Reserved.
Legal Terms.
Privacy Policy.

















Wyszukiwarka

Podobne podstrony:
appd
Bonus AppD
appd (5)
appd
appd
appd
appd
appd
appd
APPD (3)
APPD (3)
appD
appd
appd (4)
appd
appd
appd (2)

więcej podobnych podstron