Subversion Repositories svn.mios

Rev

Rev 213 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 213 Rev 628
Line 19... Line 19...
19
 */
19
 */
20
20
21
package org.midibox.sidlibr.gui;
21
package org.midibox.sidlibr.gui;
22
22
23
import javax.swing.table.AbstractTableModel;
23
import javax.swing.table.AbstractTableModel;
-
 
24
24
import org.midibox.sidlibr.*;
25
import org.midibox.sidlibr.Bank;
25
26
26
public class EnsBankTableModel extends AbstractTableModel {
27
public class EnsBankTableModel extends AbstractTableModel {
27
    private String[] columnNames = {"#","Patch Name","Engine"};
28
    private String[] columnNames = { "#", "Patch Name", "Engine" };
28
    private Object[][] data;
29
    private Object[][] data;
29
   
30
Line 66... Line 67...
66
    }
67
    }
67
   
68
68
    private String intToStr3(int i) {
69
    private String intToStr3(int i) {
69
        String s = Integer.toString(i);
70
        String s = Integer.toString(i);
70
        switch (s.length()) {
71
        switch (s.length()) {
-
 
72
        case 1:
71
            case 1: s = "00" + s; break;
73
            s = "00" + s;
-
 
74
            break;
-
 
75
        case 2:
72
            case 2: s = "0" + s;  break;
76
            s = "0" + s;
-
 
77
            break;
73
        }
78
        }
74
        return s;
79
        return s;
75
    }
80
    }
76
}
81
}