Hello,
I want to print from a Cocoa (Java) App.
I used a sample Code with a new AWT Java App. Everything worked great.
Then I created a Cocoa App, but when I tried to create a printjob with the following line
PrinterJob printJob = PrinterJob.getPrinterJob();
the app always freezes!!
I don't get any error message and compiling was ok.
What mistake have I done?
My Includes are the following:
import java.awt.print.PrinterJob;
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
import java.util.*;
import java.io.*;
import com.apple.cocoa.foundation.*;
import com.apple.cocoa.application.*;
Mark