1 Attachment(s)
Please help in prining JPanel
Hey friends,
I want to print a JPanel along with its component for which i have my PrintUtilities class as I attached it.
Here the problem is that whenever i want to print the jPanel i have to passed it through parameter of printComponent(Component) method and it shows me the print dialog.
What i actually want is to show the printDialog only once in running application for printing setup and after that it directly prints the component whenever i call the printComponent() method.
Please suggest me what i have to change in my code???
Please help me...