[kepler-dev] Kepler build errors

Edward A. Lee eal at eecs.berkeley.edu
Sat Apr 15 10:54:51 PDT 2006


Would any of the listeners in the base class Window do the job?
E.g., Window (and hence Top) have methods

    addPropertyChangeListener, addPropertyChangeListener,
    addWindowFocusListener, addWindowListener,
    addWindowStateListener,

Typical of Java, these are not very well documented, but perhaps
by experimentation you could determine which one might do the job...

In any case, it seems like a listener pattern would be a more
robust design...

Edward

At 09:49 PM 4/14/2006, Matthew Brooke wrote:

>Edward -
>
>The method is used by the Kepler menu system - and in future by the 
>splash screen - both of which only need to know when the frame has 
>finished being "built" and displayed for the first time; subsequent 
>calls to pack are inconsequential to these observers, and are ignored.
>
>Having said that, I do understand your point, and I think the method 
>name is currently misleading. Maybe it would be better named 
>isFrameDoneRendering() or something similar?
>
>m
>
>
>
>---------------------------------------------
>Matthew Brooke, Ph.D.
>Marine Sciences Research Building, Room #3407
>University of California
>Santa Barbara, CA  93106-6150
>ph: (805) 893-7108   fx: 805-893-8062
>brooke at nceas.ucsb.edu
>---------------------------------------------
>
>Edward A. Lee wrote:
>>The change to Top looks suspicious to me...
>>The pack() method gets invoked multiple times, e.g. if
>>you resize a window.  However, it looks like _isPackThreadFinished
>>is never set to false after being set to true.
>>So, whatever you are needing this for will probably
>>not work when the window is resized...
>>Edward
>>At 12:27 PM 4/14/2006, Matthew Brooke wrote:
>>
>>>Hi all -
>>>
>>>just a heads-up - I changed some code in Kepler *and* in ptii this
>>>morning - so you'll need to update ptii (or at least the source for
>>>ptolemy/gui/Top.java) in order to build kepler
>>>
>>>cheers
>>>
>>>m
>>>
>>>
>>>
>>>--
>>>
>>>---------------------------------------------
>>>Matthew Brooke, Ph.D.
>>>Marine Sciences Research Building, Room #3407
>>>University of California
>>>Santa Barbara, CA  93106-6150
>>>ph: (805) 893-7108   fx: 805-893-8062
>>>brooke at nceas.ucsb.edu
>>>---------------------------------------------
>>>_______________________________________________
>>>Kepler-dev mailing list
>>>Kepler-dev at ecoinformatics.org
>>>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>------------
>>Edward A. Lee
>>Professor, Chair of the EE Division, Associate Chair of EECS
>>231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
>>phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
>>eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal

------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  



More information about the Kepler-dev mailing list