Re: Question about createUI() method?

2005-09-17 Thread Thomas Zander
On Wednesday 7 September 2005 12:17, Roman Kennke wrote: That was introduced by me. Honestly I don't remember myself why I found this important. I think I might have been mislead of the API docs in ComponentUI.createUI(): 'If the UI delegate is stateful, then it should return a new instance

Re: Question about createUI() method?

2005-09-07 Thread Roman Kennke
Am Dienstag, den 06.09.2005, 21:13 + schrieb David Gilbert: Hi, A quick question about Swing: A lot of the createUI() methods in the look and feel code are implemented with a HashMap to retain references to the UI delegates that are created. For example: public static

Question about createUI() method?

2005-09-06 Thread David Gilbert
Hi, A quick question about Swing: A lot of the createUI() methods in the look and feel code are implemented with a HashMap to retain references to the UI delegates that are created. For example: public static ComponentUI createUI(JComponent component) { if (instances == null)