<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 閱讀(331) 評論(0)  編輯  收藏 所屬分類: swing
    主站蜘蛛池模板: 一道本不卡免费视频| 91成年人免费视频| 亚洲精品偷拍无码不卡av| 国产v精品成人免费视频400条| 无码天堂亚洲国产AV| 日本红怡院亚洲红怡院最新| 日本精品人妻无码免费大全| a一级爱做片免费| 亚洲精品午夜视频| 无码欧精品亚洲日韩一区夜夜嗨 | 亚洲av无码专区亚洲av不卡| 中文字幕亚洲无线码a| 青青草a免费线观a| 在线观看免费黄网站| 亚洲色大成网站www尤物| 国产亚洲精品国产| 国产嫩草影院精品免费网址| 99re热精品视频国产免费| 美女视频黄a视频全免费网站色 | 亚洲AV综合色区无码二区爱AV| 亚洲国产成人久久综合野外| 噼里啪啦电影在线观看免费高清| 国产亚洲精品免费视频播放| 亚洲女女女同性video| 亚洲黄色免费电影| 国产亚洲午夜高清国产拍精品| 成人片黄网站色大片免费| 久久免费观看国产99精品| 精品女同一区二区三区免费播放 | 永久免费无码网站在线观看个| 亚洲午夜精品国产电影在线观看| 狠狠亚洲婷婷综合色香五月排名| 日韩精品无码人妻免费视频| 18禁男女爽爽爽午夜网站免费| 国产在线精品观看免费观看| 精品国产亚洲一区二区三区在线观看| 亚洲校园春色小说| 亚洲综合精品一二三区在线| 亚洲中文字幕无码日韩| 亚洲国产综合精品一区在线播放| 免费观看的毛片手机视频|