<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
    主站蜘蛛池模板: 亚洲一级片免费看| 亚洲福利视频一区二区| 亚洲AV日韩精品久久久久久| 狠狠热精品免费观看| 亚洲av高清在线观看一区二区 | 中文字幕第13亚洲另类| av网站免费线看| 亚洲中久无码永久在线观看同| 一区二区三区免费在线视频| 国产亚洲av人片在线观看| 青柠影视在线观看免费高清| 老司机亚洲精品影院无码| 很黄很黄的网站免费的| 亚洲国产综合精品中文第一| 日韩中文字幕在线免费观看| 免费无码又爽又黄又刺激网站| 亚洲一区爱区精品无码| 精品无码AV无码免费专区 | 亚洲日韩中文字幕日韩在线| 你懂的网址免费国产| 亚洲精品视频观看| 在线jyzzjyzz免费视频| a级毛片免费网站| 亚洲精品美女在线观看| 国产成人在线观看免费网站 | 亚洲无码视频在线| 永久在线免费观看| 亚洲第一综合天堂另类专| 亚洲午夜AV无码专区在线播放| 日韩在线永久免费播放| 激情综合亚洲色婷婷五月 | 免费在线观看黄色毛片| 免费A级毛片无码视频| 亚洲色欲啪啪久久WWW综合网| 亚洲精品动漫人成3d在线| 67pao强力打造高清免费| 精品国产_亚洲人成在线| 日韩va亚洲va欧洲va国产| 午夜神器成在线人成在线人免费| 一级中文字幕乱码免费| 91亚洲视频在线观看|