How to get a Print out of selected are java jframe to A5 landascape ? Assignment Help


Question Description

im new to java..!! but i managed to find a code to get print out of a java jframe.i really want to print selected area to A5 landscape, not hole frame. can someone help me with this???? here is my code.
package print;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import javax.swing.RepaintManager;

I didn’t find the right solution from the internet.

Automation Video


Leave a Comment

Your email address will not be published.