Tips about UI beans

Hello,

I using UIDesigner and try to do some ideas about better programming with
it. I have some idea about designing UI forms and binding it to classes.

At first time, i create my Swing classes like that:


But after i see that my code is not good, i think that some fields is not
setted etc. In my last plugin i try follow: For UI forms i use spesial bean
package local class. For example:

After this, i have more flexible code and easy to understand. All my XxxUI
classes is initialized by UIDesigner, i must only call getRootPanel method
and do not think about more. Also it help to reuse UI forms in other classes
:)

I'll be very interest if somebody comment this

Thanks!

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com


Please sign in to leave a comment.