02-08-2010 03:17 AM
I am not getting clear about the concept of getPreferredWidth() and getPreferredHeight() methods. What do they return means on what what basis the values are returned.??
What is difference between getWidth() and getPreferredWidth()???
02-08-2010 04:24 AM
I think following thread will clear you
02-08-2010 04:52 AM
Just to summarise
getPreferred... is returned from the Fields to indicate how big they would like to be. There should be a value fot his this regardless of thee state of the Field. The Manager will use this to determine how much space to allocate to the Field.
get... is the actual space that has been allocated by the Manager.