Solved

Java Print in NetBeans GUI

Posted on 2006-07-24
3
584 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 36
String array comparison 4 45
Is there a simpler dropbox system? 10 44
java example issue 5 42
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 …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

740 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