| Author |
Printing Question
|
Jesse Walker
Ranch Hand
Joined: Aug 18, 2004
Posts: 50
|
|
Is there a way to make Java print the contents of a JFrame to the default printer, which class hanles that if their is? Also, I know of the frame.dispose() method but that doesn't seem to close a JFrame, I have a multiple JFrame application with a back button option, I would like to find the best way to close the current frame, I am usinge JFrame.dispose? Thanks, Jesse
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8263
|
|
Have a look at The Java Tutorial: Printing. Also, if you look at the Java API for Window, you'll see that dispose() doesn't do what you think it does. You first want to call setVisible()
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: Printing Question
|
|
|