OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 149 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 156
Line 53... Line 53...
53
import javax.swing.DefaultListCellRenderer;
53
import javax.swing.DefaultListCellRenderer;
54
import javax.swing.JButton;
54
import javax.swing.JButton;
55
import javax.swing.JComboBox;
55
import javax.swing.JComboBox;
56
import javax.swing.JComponent;
56
import javax.swing.JComponent;
57
import javax.swing.JList;
57
import javax.swing.JList;
-
 
58
import javax.swing.JTextField;
58
import javax.swing.SwingUtilities;
59
import javax.swing.SwingUtilities;
59
import javax.swing.SwingWorker;
60
import javax.swing.SwingWorker;
60
import javax.swing.event.DocumentEvent;
61
import javax.swing.event.DocumentEvent;
61
import javax.swing.text.AbstractDocument;
62
import javax.swing.text.AbstractDocument;
62
import javax.swing.text.BadLocationException;
63
import javax.swing.text.BadLocationException;
Line 135... Line 136...
135
 
136
 
136
        this.cache = null;
137
        this.cache = null;
137
        this.cacheLoading = false;
138
        this.cacheLoading = false;
138
        this.modifyingDoc = false;
139
        this.modifyingDoc = false;
139
 
140
 
-
 
141
        final int h = new JTextField("12").getPreferredSize().height;
140
        this.setMinimumSize(new Dimension(80, 22));
142
        this.setMinimumSize(new Dimension(80, h));
141
        // Test de Preferred Size pour ne pas exploser les GridBagLayouts
143
        // Test de Preferred Size pour ne pas exploser les GridBagLayouts
142
        this.setPreferredSize(new Dimension(120, 22));
144
        this.setPreferredSize(new Dimension(120, h));
143
        this.setInteractionMode(InteractionMode.READ_WRITE);
145
        this.setInteractionMode(InteractionMode.READ_WRITE);
144
 
146
 
145
        // ATTN marche car locked est final, sinon il faudrait pouvoir enlever/ajouter les listeners
147
        // ATTN marche car locked est final, sinon il faudrait pouvoir enlever/ajouter les listeners
146
        if (this.isLocked()) {
148
        if (this.isLocked()) {
147
            this.addActionListener(new ActionListener() {
149
            this.addActionListener(new ActionListener() {