Index: trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java	(revision 7527)
+++ trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java	(revision 7528)
@@ -16,4 +16,5 @@
 import javax.swing.JComponent;
 import javax.swing.JDialog;
+import javax.swing.JLabel;
 import javax.swing.JOptionPane;
 import javax.swing.JPanel;
@@ -40,4 +41,5 @@
     private HistoryBrowser browser;
     private CloseAction closeAction;
+    private JLabel titleLabel;
 
     /**
@@ -59,10 +61,22 @@
     }
 
+    @Override
+    public void setTitle(String title) {
+        super.setTitle(title);
+        if (titleLabel != null) {
+            titleLabel.setText(title);
+        }
+    }
+
     /**
      * builds the GUI
-     *
      */
     protected void build() {
         setLayout(new BorderLayout());
+
+        titleLabel = new JLabel();
+        titleLabel.setHorizontalAlignment(JLabel.CENTER);
+        add(titleLabel, BorderLayout.NORTH);
+
         browser = new HistoryBrowser();
         add(browser, BorderLayout.CENTER);
@@ -92,7 +106,7 @@
 
     /**
-     * constructor
+     * Constructs a new {@code HistoryBrowserDialog}.
      *
-     * @param history  the history to be displayed
+     * @param history the history to be displayed
      */
     public HistoryBrowserDialog(History history) {
@@ -101,4 +115,8 @@
         setHistory(history);
         renderTitle(history);
+        pack();
+        if (getInsets().top > 0) {
+            titleLabel.setVisible(false);
+        }
         HistoryDataSet.getInstance().addHistoryDataSetListener(this);
         addWindowListener(new WindowClosingAdapter());
@@ -106,5 +124,5 @@
 
     /**
-     * sets the current history
+     * Sets the current history.
      * @param history
      */
@@ -113,4 +131,7 @@
     }
 
+    /**
+     * Removes this history browser model as listener for data change and layer change events.
+     */
     public void unlinkAsListener() {
         getHistoryBrowser().getModel().unlinkAsListener();
@@ -174,4 +195,8 @@
     }
 
+    /**
+     * Replies the history browser.
+     * @return the history browser
+     */
     public HistoryBrowser getHistoryBrowser() {
         return browser;
Index: trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java	(revision 7527)
+++ trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java	(revision 7528)
@@ -12,9 +12,6 @@
 import java.util.Map;
 
-import javax.swing.JDialog;
-import javax.swing.JFrame;
 import javax.swing.JOptionPane;
 import javax.swing.SwingUtilities;
-import javax.swing.UIManager;
 
 import org.openstreetmap.josm.Main;
@@ -70,16 +67,4 @@
             placeOnScreen(dialog);
             dialog.setVisible(true);
-            // Debug stuff for #10462
-            if (Main.isDebugEnabled()) {
-                Main.debug("#10462 - JDialog.isDefaultLookAndFeelDecorated: "+JDialog.isDefaultLookAndFeelDecorated());
-                Main.debug("#10462 - JFrame.isDefaultLookAndFeelDecorated: "+JFrame.isDefaultLookAndFeelDecorated());
-                Main.debug("#10462 - dialog.isUndecorated: "+dialog.isUndecorated());
-                Main.debug("#10462 - UIManager.getLookAndFeel: "+UIManager.getLookAndFeel());
-                Main.debug("#10462 - LookAndFeel.getSupportsWindowDecorations: "+UIManager.getLookAndFeel().getSupportsWindowDecorations());
-                Main.debug("#10462 - JRootPane.getWindowDecorationStyle: "+dialog.getRootPane().getWindowDecorationStyle());
-                Main.debug("#10462 - Window.getIconImages: "+dialog.getIconImages());
-                Main.debug("#10462 - Dialog.getTitle: "+dialog.getTitle());
-                Main.debug("#10462 - Dialog.getInsets: "+dialog.getInsets());
-            }
             dialogs.put(id, dialog);
         }
