Solved

printing in java?

Posted on 2002-04-12
3
224 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

730 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