Re: Re: Strange NullPointerException
[email protected] Thu, 26 May 2005 23:56:03 +0300
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Hi, I think this is quite a serious design restriction that swixml requires client's fields to be public. This make them unnecessarily accessible from other parts of application so they can be unintentionally modified. Though this is very easy to fix. SwingEngine.mapMembers method has to be modified something like this -Field[] flds = obj.getClass().getFields(); +Field[] flds = obj.getClass().getDeclaredFields(); +AccessibleObject.setAccessible(flds, true); Thanks, Vitali Tue, 24 May 2005 10:26:32 +0200, [email protected] писал(Р°): >Hey Frank, > >I have solved the problem. It occured because I declared my Swing >Components >'private' and therefore the automatic initialization by the >SwixEngine did >not work. I accidentally realized this, when looking through some of >the >examples. > >I think this should be put in the documentation somewhere. > >Thanks so far. :) > >Sebastian > ><[email protected]> schrieb im Newsbeitrag >news:[email protected]... >> [email protected] wrote: >>> I cannot understand this, because the documention says, that the gui >>> components are initialized automatically. >> >> Sebastian, >> >> please post your xml code to allow any diagnosis... >> >> Frank > > > > >_______________________________________________ >Forum mailing list >[email protected] >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com --- FORD "Р›РБЕРТРМОТОРС" представляет Ford Fusion РїРѕ РЅРѕРІРѕР№ цене РѕС‚ $11 900 Великолепная маневренность. Высокая посадка водителя. Панорамная обзорность. Ford Fusion: СЃ РіРѕСЂРѕРґРѕРј РЅР° РўР«! "Р›РБЕРТРМОТОРС". Авторынок "Малиновка". Тел. 201-79-15. http://www.fordmotor.by/