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.
References
java-forums.org/java-2d/96182-how-get-print-out-selected-java-jframe-a5-landascape.html”>https://www.java-forums.org/java-2d/96182-how-get-…