summaryrefslogtreecommitdiff
path: root/sources/prefs/editors/VSEditor.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-26 18:45:39 +0000
committerPaul Buetow <paul@buetow.org>2008-05-26 18:45:39 +0000
commit5b50abee94e410586ae92f81e41e4afd5a6fc71c (patch)
tree1c7d754220c3de4aec400ed1387f016f3760abf7 /sources/prefs/editors/VSEditor.java
parent1ae4c7dd5523bac3199c639cd79b0e5ec0583e82 (diff)
Berkely Protocol now uses the integer vector.
Diffstat (limited to 'sources/prefs/editors/VSEditor.java')
-rw-r--r--sources/prefs/editors/VSEditor.java19
1 files changed, 2 insertions, 17 deletions
diff --git a/sources/prefs/editors/VSEditor.java b/sources/prefs/editors/VSEditor.java
index 39a057f..c98434e 100644
--- a/sources/prefs/editors/VSEditor.java
+++ b/sources/prefs/editors/VSEditor.java
@@ -349,26 +349,11 @@ public abstract class VSEditor implements ActionListener {
protected VSTupel<String,Component,JTextField> createVectorComponent(String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
- Vector<Integer> vec = prefsToEdit.getVector(key);
+ Vector<Integer> vec = prefsToEdit.getVector(key);
JTextField valField = new JTextField();
valField.setBorder(null);
-
- StringBuffer buffer = new StringBuffer();
- buffer.append("[");
-
- synchronized (vec) {
- for (Integer integer : vec) {
- buffer.append(integer + ",");
- }
- }
-
- try {
- valField.setText(vec.toString());
- //valField.setText(buffer.toString().substring(0, buffer.length()-1)+"]");
- } catch (StringIndexOutOfBoundsException e) {
- valField.setText("[]");
- }
+ valField.setText(vec.toString());
return new VSTupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);