Re: Paint Event does not fire until teh frame has been resized



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
.



Relevant Pages

  • Re: Paint Event does not fire until teh frame has been resized
    ... Apart from the panel there are no other objects on the panel. ... The paint function uses only ... are not physical objects so the pack() would not see them? ...
    (comp.lang.java.programmer)
  • Re: How many differences, categories?
    ... >> If through categorization our brain analyzes the information ... categories are too many before it has to pack ... So just like in the case of the physical objects where I have to make ...
    (sci.cognitive)
  • Re: Animation flickers
    ... Don't draw your shapes to the Panel ... I copied the double-buffering part from the ... I have a loop which updates a panel with a few shapes. ... public int minDiameter = 15; ...
    (microsoft.public.pocketpc.developer)
  • Re: How many Amps to specify for a dimming system.
    ... for the house will trip. ... My understanding is that as a practical matter (Putting in a really ... awfully expensive) the main feed into any panel is rated for less than ... Note that I am not saying that the feed to any one dimer pack should be ...
    (rec.arts.theatre.stagecraft)
  • Re: O2 Cylinders vs exothermic generators -- Quantas
    ... pressurization. ... Uh yes they do and the airconditioning packs work just fine without cyrogenic distillation. ... If you look at the Flight engineers panel on the older aircraft you'll see a graphic panel showing the switch for the bleed ... You only need one engine and onc pack to keep a big bird like 747 pressurized. ...
    (rec.aviation.military)