Solved

Java Print in NetBeans GUI

Posted on 2006-07-24
3
568 Views
Last Modified: 2008-07-03
I'm using NetBeans 5.0, pliz help coz I want to use a print command to capture wat is displayed in the GUI and print it.
0
Comment
Question by:fanfy
3 Comments
 
LVL 9

Expert Comment

by:riaancornelius
ID: 17166344
What do you mean? What exactly do you want to print?

If you want to print sourcecode or portion of sourcecode, select code and go to file | print. If you want to print exactly what you're seeing, you need to take a screenshot of the screen and print that...
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 17166748
Are you doing some GUI programming and want to capture the output???
if so then u need to do screen capturing.

just click on the GUI window and use alt + Print Screen Key. (if u want to get along with the back ground use ctrl + Print screen Key).

just open a paint program in windows and paste the image u will get what ever u are seeing.  

Save it in which ever format u like.

Thank You.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 250 total points
ID: 17167783
No matter whether you use Netbeans or something else, the code you write for printing your GUI components would be the same ;-) look at this article for printing:

http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print.html
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
Java passing arguments (type error) 2 48
Spring Framework HTTPSession management 1 24
table example 4 25
tomcat administrtor 12 34
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

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

23 Experts available now in Live!

Get 1:1 Help Now