-
Bug
-
Resolution: Fixed
-
P2
-
1.2.2_005, 1.3.0
-
linux-rc1
-
x86
-
linux
-
Verified
The following code does not display the complete print dialog window
but a small corner on Gnone/Enlightenment, with KWM/KDE it works ok
import java.io.*;
import java.awt.*;
import java.awt.print.*;
import javax.swing.*;
public class PrintDialogTest {
public static void main(String[] args) {
new PrintDialogTest().run(System.out);
System.exit(0);
}
void run(PrintStream out) {
PageFormat pf = new PageFormat();
JFrame frame = new JFrame();
JPanel p = new JPanel();
out.println("Toolkit.getPrintJob()");
p.getToolkit().getPrintJob(frame, "", null);
}
}
but a small corner on Gnone/Enlightenment, with KWM/KDE it works ok
import java.io.*;
import java.awt.*;
import java.awt.print.*;
import javax.swing.*;
public class PrintDialogTest {
public static void main(String[] args) {
new PrintDialogTest().run(System.out);
System.exit(0);
}
void run(PrintStream out) {
PageFormat pf = new PageFormat();
JFrame frame = new JFrame();
JPanel p = new JPanel();
out.println("Toolkit.getPrintJob()");
p.getToolkit().getPrintJob(frame, "", null);
}
}
- duplicates
-
JDK-4339507 Linux: Toolkit.getPrintJob() does not work.
-
- Closed
-