Solved

Java Print in NetBeans GUI

Posted on 2006-07-24
3
560 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
Comment Utility
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
Comment Utility
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:
mayankeagle earned 250 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now