<AWT Dev> [PATCH] Cleanup AWT peer interfaces

Andrei V. Dmitriev Andrei.Dmitriev at Sun.COM
Fri Sep 19 05:14:59 PDT 2008


Hi folks,
>>
>> 1) Just curious if the concrete peer code are supposed to be changed? 
>> Looking on XTextFieldPeer we may notice something like that:
>>
>>      /**
>>       * DEPRECATED
>>       * @see java.awt.peer.TextFieldPeer
>>       */
>>      public Dimension preferredSize(int cols) {
>>          return getPreferredSize(cols);
>>      }
>>
>>      public Dimension getPreferredSize() {
>>          return xtext.getPreferredSize();
>>      }
>>
>> With this patch applied we aren't obliged anymore to support that stuff, 
>> right?
> 
> Yeah sure. I reviewed all the existing implementations and they should
> not break, but a lot of stuff could be removed.
Just appeared to public access:
http://bugs.sun.com/view_bug.do?bug_id=6749920

Thanks,
   Andrei




More information about the awt-dev mailing list