This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug SWING/16576] New: JLayeredPane's setLayer methods not working
- From: "kho at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2004 20:27:46 -0000
- Subject: [Bug SWING/16576] New: JLayeredPane's setLayer methods not working
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Running the attached test case gives:
Exception in thread "main" java.lang.IllegalArgumentException
at javax.swing.JLayeredPane.layerToRange(java.lang.Integer)
(/home/kho/gcj-inst/i686-pc-linux-gnu/libjava/.libs/lib-javax-swing.so.0.0.0)
at javax.swing.JLayeredPane.setPosition(java.awt.Component, int)
(/home/kho/gcj-inst/i686-pc-linux-gnu/libjava/.libs/lib-javax-swing.so.0.0.0)
at javax.swing.JLayeredPane.setLayer(java.awt.Component, int, int)
(/home/kho/gcj-inst/i686-pc-linux-gnu/libjava/.libs/lib-javax-swing.so.0.0.0)
at layer.main(java.lang.String[]) (Unknown Source)
What is should do is show the larger button behind the smaller button.
This is caused by the setLayer call when using the position parameter.
--
Summary: JLayeredPane's setLayer methods not working
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: SWING
AssignedTo: graydon at redhat dot com
ReportedBy: kho at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16576