ComponentListener.componentResized() not getting called???



I have a JDialog jd that has a JPanel jp added to its content pane.
The JPanel jp has a ComponentListener added to it using the
addComponentListener() method but when I call jp.setBounds(x,y,w,h)
the componentResized method never get executed! I can see that the
setBounds call is working if I override the setBounds method and put
in a debug statement it prints out. I even checked to make sure the
ComponentListener was properly added and it was. But it doesn't
execute. Anyone run into this before? Does this have something to do
with the fact that the JPanel is inside of a JDialog???

Failing that, is there a way to draw a JFrame without the top
decorations (icon, close/minimize/maximize buttons, etc.) ? I tried
using a JWindow originally but ran into trouble getting it to maintain
focus for keyboard input, hence the JDialog.
??? :(
-Will
.


Quantcast