It's not a secret anymore!
The moose likes Java in General and the fly likes Collating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Collating" Watch "Collating" New topic


Richard West
Ranch Hand

Joined: Jan 07, 2005
Posts: 127
Hi everyone,

I have a question about the java multi-platform print dialog.

My question is on collating the output of my print out using the java multi-platform print dialog. The thing is no matter even if i select the collate check box or not the output of the print out is always printed uncollated.

When i use the platform specific print dialog(windows in my case) the output can be printed collated or uncollated.

This is what i am doing to call the multi-platform dialog to print collated print-outs

The below is sun's simple printing program but when i test this programming(when i switch the aset variable between collating and uncollating) the problem also arises.

This is the compilable program

It seems strange to me that if i use the sytem specific print dialog i can print both collated and uncollated printouts but if i use the java multi-platform print dialog the print out is always printed uncollated even when i specify it to be printed collated

There are no exceptions thrown and the program compiles with no errors.

Am i calling java multi-platform print dialog and adding the
attributes correctly?

Is this a bug or am i missing something for both my questions?

This program was run on java 1.4.6 and 1.5.0_06 with both producing the same results

I really hope someone can help me with this problem

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
I agree. Here's the link:
subject: Collating
jQuery in Action, 3rd edition