Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More SIGBUS when dragging JFrames



> I've done a bit more investigation and it appears that making a JFrame
> resizable has something to do with the SIGBUS errors. The following test
> case will fail.

> (snipped code)

> If the statement "mImageLabel.setText("The Text Goes Here");" is
> removed everything is fine. If I leave the setText call and instead
> change "setResizable(false);" to "setResizable(true);" all is well.
> Would someone be willing to try this and let me know the results? I feel
> like I've entered the Twilight Zone.

I tried your code and (yes) the "culprit" seems to be the call to
setResizable(false). Changing it to "true" gets rid of the problem,
regardless of whether or not I call mImageLabel.setText(...).

If I comment out mImageLabel.setText(...) but still call setResizable(false)
the window appears, but if I try to drag it, it disappears.

I also tried the "JLabel(String text, Icon icon, int horizontalAlignment)"
constructor, but that did not change anything.

Hmm...

Sorry I cannot help, but I thought I would just confirm your experience with
this code.

Harry Mantheakis
London, UK




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.