Solved

Java Print in NetBeans GUI

Posted on 2006-07-24
3
600 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

623 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