Print paper « Graphics « Java Swing Q&A





1. Why can't Java Print API handle paper width that is greater than height?    stackoverflow.com

I'm trying to figure out why the Java Print API can't handle paper sizes where the width is greater than the height. The MediaSize class and all of it's inner classes ...

2. printing on A4 paper    coderanch.com

There is a method called setImageableArea (shown below) public void setImageableArea(double x, double y, double width, double height) Sets the imageable area of this Paper. Parameters: x, y - the coordinates to which to set the upper-left corner of the imageable area of this Paper width - the value to which to set the width of the imageable area of this ...

3. Printing on paper    coderanch.com

Hi, I have been looking for a simple example to show how to print text on paper and by now i am totally confused by the complex jargon thrown at me. I would be really grateful if someone could come up a simple way to explain this concept or best give the classic "hello world" example on printing on paper in ...

4. Java Printing and Legal paper    coderanch.com

5. Printing to paper in java    coderanch.com

6. Printer paper size lookup    coderanch.com

Given a PrintService from something like PrintServiceLookup.lookupDefaultPrintService(), does anyone know how I can query for the supported paper sizes for that print service/printer? For example, "Legal", "Letter", "A4", "B4", etc. I'm doing a print preview dialog, and I'd like to be able to preview documents based on the paper size the user wants to print to. I actually implemented something like ...

7. Printing - AWT/Swing & A4 Paper - RESOLVED    coderanch.com

Hi, I'm completely new at printing (to a printer!) from Java, and have a couple of questions. I spent yesterday wading through tutorials and the like, which was relatively successful, in that I managed to print what I was trying to print. I'm trying to print a component of my own, and I've simply made it Printable, and added the print() ...

9. Choosing which paper tray/feeder to print to (lets try this again)    java-forums.org

Hello all, I'd like a code example of how to choose which paper tray/feeder to print P.r.i.n.t.a.b.l.e object to. Assume that the desired tray/feeder is not the default tray/feeder set by Windows on the printer in question and paper sizes are different among trays/feeders. Help is much appreciated! NOTE: This is not a double post. Last thread hit a forum bug ...