Re: Paint Event does not fire until teh frame has been resized
- From: Mayeul <mayeul.marguet@xxxxxxx>
- Date: Thu, 07 May 2009 14:42:11 +0200
Iain wrote:
Hi Sabine
Hm. Switch the setVisible and setSize around. Read [1]. I'm a bit
stumped.
I have switched the lines about. No difference.
Apart from the panel there are no other objects on the panel.
The paint function uses only
g2.fillOval
g2.fillRect
to display various shapes. Am I right (in my newbie mind) that these
are not physical objects so the pack() would not see them ?
The pack() doesn't see what is painted where, it only deals with components. No idea what would qualify as a physical object.
So, indeed, pack() doesn't see g2.fillOval() and such.
--
Mayeul
.
- References:
- Paint Event does not fire until teh frame has been resized
- From: Iain
- Re: Paint Event does not fire until teh frame has been resized
- From: Sabine Dinis Blochberger
- Re: Paint Event does not fire until teh frame has been resized
- From: Iain
- Re: Paint Event does not fire until teh frame has been resized
- From: Sabine Dinis Blochberger
- Re: Paint Event does not fire until teh frame has been resized
- From: Iain
- Paint Event does not fire until teh frame has been resized
- Prev by Date: Sell Footwear,Handbags,Wallets,Wathes,Sunglasses,Belts and accessorie Mens jeans
- Next by Date: Drawing images on a JPanel
- Previous by thread: Re: Paint Event does not fire until teh frame has been resized
- Next by thread: Re: Paint Event does not fire until teh frame has been resized
- Index(es):
Relevant Pages
|