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



Harry Mantheakis wrote:
>
> > 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

Harry,

Thanks, I wasn't looking for help, just confirmation. I've written a
few other small test cases and they all seem to exhibit the same symptom
when the window is not resizable. I've also found some strange behavior
between tooltips and the resize box. I plan on filing bugs, but I'm
amazed that no else has reported some of these.

--
Bob
Dixon, Ca.

My Cube WAS overpriced, but what a sweet piece of hardware.


References: 
 >Re: More SIGBUS when dragging JFrames (From: Harry Mantheakis <email@hidden>)



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.