🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

The bug is dead

Published July 17, 2000
Advertisement
The bug is fixed!

Big thanks to Larry Hannay who manifested the bug on his machine, provided me with the exceptions that the applet was throwing, and verified that the fix I made did indeed fix the bug.

Turns out it's a problem in IE's Java class library. When laying out your components with the AWT border layout, it's supposed to assume you're centering a component if you don't provide any constraints. Or. . .



PanelQuestionControls.add(PanelButtons);





should be equivalent to. . .



PanelQuestionControls.add(PanelButtons, BorderLayout.CENTER);





Some class libraries, though, throw an exception rather than assuming that the control should be centered. I assume it's something that was later fixed, as I never saw the problem even though we were running IE 5.0.



Thanks also to the folks who emailed me with your experiences and suggestions as to what could be the problem. I appreciate it.

Previous Entry I gots a bug
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement