Index: trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java	(revision 9537)
+++ trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java	(revision 9543)
@@ -38,6 +38,5 @@
      */
     protected JPanel buildWarningPanel(List<Relation> dep) {
-        JPanel pnl = new JPanel();
-        pnl.setLayout(new BorderLayout());
+        JPanel pnl = new JPanel(new BorderLayout());
         String msg = tr("<html>{0} relations build a cycle because they refer to each other.<br>"
                 + "JOSM cannot upload them. Please edit the relations and remove the "
