>
> Hi,
>
> I am having some really annoying problems with KDE and applets using jdk1.1.7
> The problem is that if I try to display a non-resiable dialog through the applet,
>the dialog -simply- never
> appears!
> This is really annoying, if you take into account that the same dialog appears if I
>use fvwm or if I revert to
> jdk1.1.6v5! (but it is resizable in the latter case since that sun bug is still
>there in .6)!!!
> And -guess what...
> If I make the dialog resizable - no call to setResizable- my dialog appears - as if
>by magic...
> Has anybody observed something similar?
> Is there a bug in1.1.7 (possibly related to a KDE bug) thathas to do with dialogs?
> I remember that there was an issue of resolving some resizability bugs with Dialogs
>in this release. but it seems
> that it might have introduced some obscure issues... At least imy dialog is not
>resizable - if it ever appears.
> I woudl appreciate any comments/ideas...
This could be a basic bug in JDK, but invisibile dialogs
frequently are caused by simple sizing bug in your dialog
instance. Check to make sure they have a reasonable
minimum size -- the relationship to the resizability attribute
might only be an artifact where the size is changed by
the frame placed around the dialog by the window
manager, not a bug per se.
In Solaris, typing CTRL-SHIFT-F1 in an AWT window will
dump the entire tree of AWT elements for the current process.
Note especially objects marked as invalid, since that can
cause layout problems. If this was ported, it could be useful.
(I have dead hardware at home, so I don't even have java on
linux yet.)
If that doesn't work, one low-rent version of debugging this
problem is to override getPreferredSize() or doLayout() or
whatever so that you can see when/if these methods are being
called for your object.
t