<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
    主站蜘蛛池模板: 亚洲日韩中文字幕日韩在线| 亚洲精品蜜桃久久久久久| 午夜亚洲乱码伦小说区69堂| 亚洲欧洲日产国码无码网站| 色欲A∨无码蜜臀AV免费播| 亚洲国产成人精品无码区花野真一| 国产精品高清免费网站| 亚洲国产av一区二区三区| 国产一精品一av一免费爽爽| 国产l精品国产亚洲区在线观看| 久久精品无码专区免费| 亚洲大尺码专区影院| 亚洲综合精品网站| 日韩在线免费视频| 亚洲乱码一区二区三区国产精品| 日本亚洲免费无线码| 免费无码专区毛片高潮喷水| 亚洲欧洲一区二区三区| 在线观看www日本免费网站| 一级毛片**免费看试看20分钟| 亚洲午夜精品一区二区公牛电影院 | 2021国产精品成人免费视频| 亚洲国产午夜精品理论片| 亚洲国产成人精品女人久久久 | 一级毛片免费全部播放| 亚洲av无码片在线观看| 亚洲人成亚洲人成在线观看| 香蕉高清免费永久在线视频| 最近2019免费中文字幕视频三| 免费无遮挡无遮羞在线看| 亚洲乱亚洲乱妇24p| 亚洲精品视频在线免费| 美腿丝袜亚洲综合| 免费观看国产小粉嫩喷水| 亚洲人成网站免费播放| 色天使色婷婷在线影院亚洲| 亚洲伊人久久综合中文成人网| 国产在线国偷精品产拍免费| 精品特级一级毛片免费观看| 色偷偷亚洲女人天堂观看欧| 免费国产怡红院在线观看|