Index: /trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetDialog.java	(revision 2138)
+++ /trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetDialog.java	(revision 2139)
@@ -17,4 +17,5 @@
 import javax.swing.JOptionPane;
 import javax.swing.JPanel;
+import javax.swing.JScrollPane;
 import javax.swing.event.ListSelectionEvent;
 import javax.swing.event.ListSelectionListener;
@@ -28,8 +29,15 @@
 import static org.openstreetmap.josm.tools.I18n.tr;
 
+/**
+ * This dialog lets the user select changesets from a list of changesets.
+ *
+ */
 public class CloseChangesetDialog extends JDialog {
 
+    /** the list */
     private JList lstOpenChangesets;
+    /** true if the user cancelled the dialog */
     private boolean canceled;
+    /** the list model */
     private DefaultListModel model;
 
@@ -46,5 +54,5 @@
         pnl.setLayout(new BorderLayout());
         model = new DefaultListModel();
-        pnl.add(lstOpenChangesets = new JList(model), BorderLayout.CENTER);
+        pnl.add(new JScrollPane(lstOpenChangesets = new JList(model)), BorderLayout.CENTER);
         lstOpenChangesets.setCellRenderer(new ChangesetCellRenderer());
         return pnl;
@@ -125,12 +133,26 @@
     }
 
+    /**
+     * Replies true if this dialog was canceled
+     * @return true if this dialog was canceled
+     */
     public boolean isCanceled() {
         return canceled;
     }
 
+    /**
+     * Sets whether this dialog is canceled
+     * 
+     * @param canceled true, if this dialog is canceld
+     */
     protected void setCanceled(boolean canceled) {
         this.canceled = canceled;
     }
 
+    /**
+     * Sets the collection of changesets to be displayed
+     * 
+     * @param changesets the collection of changesets. Assumes an empty collection if null
+     */
     public void setChangesets(Collection<Changeset> changesets) {
         if (changesets == null) {
@@ -143,4 +165,10 @@
     }
 
+    /**
+     * Replies a collection with the changesets the user selected.
+     * Never null, but may be empty.
+     * 
+     * @return a collection with the changesets the user selected.
+     */
     public Collection<Changeset> getSelectedChangesets() {
         Object [] sel = lstOpenChangesets.getSelectedValues();
