JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 技巧文件  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:Swing Examples all in one file + Tips [Re:T55555]
yukuan





發文: 32
積分: 0
於 2004-03-03 03:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
  不知道有沒有人發現:MultiComponentTable2.java有誤,無法通過 compiling

原始的:
1
2
3
4
5
6
7
8
9
10
11
12
//...
public class MultiComponentTable2 extends JFrame {
   public MultiComponentTable2() {
      //...
      EachRowEditor rowEditor = new EachRowEditor();
      rowEditor.add(0, comboBoxEditor);
      rowEditor.add(1, comboBoxEditor);
      rowEditor.add(2, checkBoxEditor);
      rowEditor.add(3, checkBoxEditor);    
      JTable table = new JTable(dm);
      //...
//...

更正後如下:
1
2
3
4
5
6
7
8
      //...
      JTable table = new JTable(dm);
      EachRowEditor rowEditor = new EachRowEditor(table);
      rowEditor.setEditorAt(0, comboBoxEditor);
      rowEditor.setEditorAt(1, comboBoxEditor);
      rowEditor.setEditorAt(2, checkBoxEditor);
      rowEditor.setEditorAt(3, checkBoxEditor);
      //...


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
14456 Swing Examples all in one file + Tips T55555 2000 2004-01-13 06:40
7528 Re:Swing Examples all in one file + Tips yukuan 826 2004-03-03 03:27
5469 Re:Swing Examples all in one file + Tips godnesss 114 2006-03-27 15:31
5418 Re:Swing Examples all in one file + Tips godnesss 109 2006-03-27 15:35
5199 Re:Swing Examples all in one file + Tips weaker 212 2006-03-28 09:25
5812 Re:Swing Examples all in one file + Tips godnesss 35 2006-03-31 13:41
» JWorld@TW »  Java 技巧文件

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8