Help - How do one Print a JFrame

Hello,

Pls is it possible to create a Printable object from a JFrame so as to be able to print it together with all added components? if it is possible then how? if not then how do one go about printing a JFrame with all added components?

Comments

  • : Hello,
    :
    : Pls is it possible to create a Printable object from a JFrame so as
    : to be able to print it together with all added components? if it is
    : possible then how? if not then how do one go about printing a JFrame
    : with all added components?
    :
    Call JFrame.update() from within the Printable.print(). The Graphics object in the parameters of the Printable.print() is the Graphics object of the paper.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion