Chan Ag wrote:I think my example details are immaterial cause like repaint() method always calls paintComponent(), there must be some method that always calls preferredSize() too?
luck, db
There are no new questions, but there may be new answers.
Chan Ag wrote:My original requirement was to find out how preferredSize() method is being called by the event dispatching thread. I still don't have that clarity.
But I guess I'm going to skip over that part for now and take that as a given.
Just to keep things somewhat simple for now...
And what difference would it make if you knew the answer to that question?
Chan Ag wrote:One of the premise I had was there are no events before I have clicked on the start button on the GUI because the actionPerformed code for the start button enabled other components ( and hence other events possible ) on the GUI.
luck, db
There are no new questions, but there may be new answers.
Chan Ag wrote:And I can see why I should just avoid trying to delve further into this topic. I can see there are event queues, native method calls, locks, synchronization and what nots ( I can see why you're saying what you're saying ) .... Since the book has yet not skipped mentioning the needed details, it is a good thing to consider that whenever internal details are somewhat skimmed through, there is a good reason behind it.
Beauty is in the eye of the tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|