Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#11248 - swing widgets unpainted

Attached to Project: Arch Linux
Opened by x86hemi (xhemi) - Monday, 18 August 2008, 10:57 GMT
Last edited by Jan de Groot (JGC) - Monday, 18 August 2008, 13:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Jan de Groot (JGC)
Architecture x86_64
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The WmTest doesn't paint any widget.

Additional info:
extra/jdk 6u7-1

Steps to reproduce:
compile and run <<JAVAPROG
import javax.swing.*;

public class WmTest extends JFrame {

public WmTest () {
JLabel l = new JLabel ("WM Test");

this.getContentPane().add(l);
this.setSize(256, 256);

//this.pack();
this.setVisible (true);
}

public static void
main (String args[]) {
WmTest r = new WmTest ();
}

}
JAVAPROG;
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 18 August 2008, 13:13 GMT
Reason for closing:  Works for me
Comment by x86hemi (xhemi) - Monday, 18 August 2008, 11:06 GMT
same result with:
testing/openjdk6 1.2-2
Comment by Jan de Groot (JGC) - Monday, 18 August 2008, 11:55 GMT
Works fine here with openjdk. I get a 256x256 sized window with a "WM Test" label on it with your example code.
Comment by x86hemi (xhemi) - Monday, 18 August 2008, 12:24 GMT
i thought it might be a 64bit issue, good to know its not, i haven't resolved this though
Comment by x86hemi (xhemi) - Monday, 18 August 2008, 13:00 GMT
some ubuntu folks seemed to have the same issue and their suggested solution was to change:
AWT_TOOLKIT=MToolkit
and restart your wm, java coredumped and spat the following log.
Comment by Jan de Groot (JGC) - Monday, 18 August 2008, 13:08 GMT
OpenJDK doesn't come with Mtoolkit, as it's Motif, which is dropped from recent icedtea builds.
Comment by x86hemi (xhemi) - Monday, 18 August 2008, 13:11 GMT
thats good to know, also i found out that the problem resides with the awesome windowmanager and not the jdk, everything works great under windowmaker. perhaps awesome has beryl patches? you may close this...

Loading...