If you use a development tool such as Borland JBuilder, you can easilycreate beans from menu.If not, for example, create a frame as you want, it will treat as abean.