<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    有才華的人,別忘記給滋潤你的那塊土壤施肥

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      28 隨筆 :: 5 文章 :: 147 評論 :: 0 Trackbacks

     

  • You know your target domain or business logic, so that you are able to design expressive and concise domain objects.

  • You are thinking in "swing models", not the UI-components. If you understand your domain, you probably have an idea as well how to visualize the business concepts in object oriented way. The use of Swing models just becomes natural.

  • You are starting with the domain objects covered with unit tests, then develop the Swing models - after that the work is almost complete. You "only" have to create the view and pass the model to it.

  • You are NOT trying to work with the views directly and force them to behave in your way. This could become quite complex, cumbersome and very hard to maintain. E.g. if you are working with the JTable directly, instead of TableModel, even reordering the table columns can cause you some headaches. The are no issues with a custom model in this case.

  • The use of TableCellRenderers and TableCellEditors in JTables helps you to visualize you domain objects directly - without any overhead.

  • You are using visual designers like e.g. Matisse in pragmatic way and separate the generated, from your code.

  • You have a clear concept how to bind (e.g. with reflection+annotations or JSR-295) the UI-components to domain objects and how and where to validate the input (e.g. in controllers, domain objects or converters).

  • Try to leverage existing JavaBean patterns like PropertyChangeListener, PropertyChangeSupport and the already built-in listeners in the UI-components. There is lot of stuff which can be reused.

  • If you spend more than half hour to solve a specific "Swing-problem", just stop hacking and use google to find a solution for your problem. There are amazingly good tutorials, articles and posts out there.

  • If you lose your motivation. Just stop developing Swing, build a quick prototype with SWT/JFace for few hours (but use Tables and Trees). Your motivation should increase dramatically after this experiment :-)
  •  

    From: Adam Bien's Weblog

    posted on 2008-11-27 11:57 kissjava 閱讀(337) 評論(0)  編輯  收藏 所屬分類: swing
    主站蜘蛛池模板: 久久国产免费福利永久| 日韩亚洲国产二区| 希望影院高清免费观看视频| 国产高清在线免费| 日本亚洲欧洲免费天堂午夜看片女人员| 亚洲国产精品线观看不卡| 日本视频免费观看| 100000免费啪啪18免进| 亚洲性久久久影院| 91亚洲性爱在线视频| eeuss草民免费| 在线观看成人免费视频| 久久夜色精品国产嚕嚕亚洲av| 亚洲欧洲日产国码无码久久99| 亚洲中文字幕无码av| 99免费观看视频| 亚洲国产成人乱码精品女人久久久不卡| 亚洲综合无码一区二区三区| 一个人免费观看www视频| 大陆一级毛片免费视频观看i| 亚洲人成网站色在线观看| 黄色网站软件app在线观看免费 | 亚洲一区在线视频观看| 最好免费观看高清在线| 亚洲AV人无码综合在线观看| 四虎最新永久免费视频| 亚洲乱妇熟女爽到高潮的片| 5555在线播放免费播放| 美女免费视频一区二区三区| 99久久免费国产精品热| 国产成人无码免费视频97| 亚洲av无码专区亚洲av不卡| 无码精品A∨在线观看免费 | 成人最新午夜免费视频| 久久丫精品国产亚洲av| 91成人免费福利网站在线| 亚洲酒色1314狠狠做| 久久久久久夜精品精品免费啦| 免费人成在线观看视频播放| 亚洲欧美aⅴ在线资源| 免费中文字幕不卡视频|