Solved

printing in java?

Posted on 2002-04-12
3
218 Views
Last Modified: 2010-03-31
HI
I wish to print the contents of a Jpanel within an application. Does anyone have an suggestions as to how i might go about doing this?
I wish to call the print procedure as a result of a action event preformed on a JButton

any suggestions
Thank you
0
Comment
Question by:Codster
3 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6938211
Create your print graphics context g, and call:
panel.print(g);
0
 

Accepted Solution

by:
eov earned 20 total points
ID: 6938407
0
 

Author Comment

by:Codster
ID: 6938588
Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 73
best (free) software to access postgres db (java) 1 33
Oracle SQL syntax check  without executing 6 39
hibernate insert example 13 15
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now