diff --git a/src/main/java/ui/window/JDialogELNComponentCapacitor.java b/src/main/java/ui/window/JDialogELNComponentCapacitor.java
index 877e7da280306ad66bc695ec0cf05cc670d3ed6f..180498bb0ca560f4d531c36ef54427825eb5c0ca 100644
--- a/src/main/java/ui/window/JDialogELNComponentCapacitor.java
+++ b/src/main/java/ui/window/JDialogELNComponentCapacitor.java
@@ -93,7 +93,6 @@ public class JDialogELNComponentCapacitor extends JDialog implements ActionListe
 	public JDialogELNComponentCapacitor(ELNComponentCapacitor _c) {
 		/** Set JDialog **/
 		setTitle("Setting the capacitor");
-		setSize(500, 190);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -275,7 +274,7 @@ public class JDialogELNComponentCapacitor extends JDialog implements ActionListe
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -335,4 +334,4 @@ public class JDialogELNComponentCapacitor extends JDialog implements ActionListe
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentCurrentControlledCurrentSource.java b/src/main/java/ui/window/JDialogELNComponentCurrentControlledCurrentSource.java
index 1aa691c9265c043275aa98b8166b2ee7d62df2c0..e8c8cb6df453cb58d253356dc5b7e95f01a392a9 100644
--- a/src/main/java/ui/window/JDialogELNComponentCurrentControlledCurrentSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentCurrentControlledCurrentSource.java
@@ -87,7 +87,6 @@ public class JDialogELNComponentCurrentControlledCurrentSource extends JDialog i
 	public JDialogELNComponentCurrentControlledCurrentSource(ELNComponentCurrentControlledCurrentSource _cccs) {
 		/** Set JDialog **/
 		setTitle("Setting the current controlled current source");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -177,7 +176,7 @@ public class JDialogELNComponentCurrentControlledCurrentSource extends JDialog i
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -210,4 +209,4 @@ public class JDialogELNComponentCurrentControlledCurrentSource extends JDialog i
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentCurrentControlledVoltageSource.java b/src/main/java/ui/window/JDialogELNComponentCurrentControlledVoltageSource.java
index 652b6026e44022e3f6d38a1774472943f198033a..8c22a22071d2b55c527d3d9ce173d5df361b130c 100644
--- a/src/main/java/ui/window/JDialogELNComponentCurrentControlledVoltageSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentCurrentControlledVoltageSource.java
@@ -90,7 +90,6 @@ public class JDialogELNComponentCurrentControlledVoltageSource extends JDialog i
 	public JDialogELNComponentCurrentControlledVoltageSource(ELNComponentCurrentControlledVoltageSource _ccvs) {
 		/** Set JDialog **/
 		setTitle("Setting the current controlled voltage source");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -218,7 +217,7 @@ public class JDialogELNComponentCurrentControlledVoltageSource extends JDialog i
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -252,4 +251,4 @@ public class JDialogELNComponentCurrentControlledVoltageSource extends JDialog i
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentGyrator.java b/src/main/java/ui/window/JDialogELNComponentGyrator.java
index 20c0e17c722e83d027b44019ff94a9acff0db86f..5a34c734e2a055fb24f34da842d0f8c039f55fec 100644
--- a/src/main/java/ui/window/JDialogELNComponentGyrator.java
+++ b/src/main/java/ui/window/JDialogELNComponentGyrator.java
@@ -93,7 +93,6 @@ public class JDialogELNComponentGyrator extends JDialog implements ActionListene
 	public JDialogELNComponentGyrator(ELNComponentGyrator _gyrator) {
 		/** Set JDialog **/
 		setTitle("Setting the gyrator");
-		setSize(500, 190);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -275,7 +274,7 @@ public class JDialogELNComponentGyrator extends JDialog implements ActionListene
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -328,4 +327,4 @@ public class JDialogELNComponentGyrator extends JDialog implements ActionListene
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentIdealTransformer.java b/src/main/java/ui/window/JDialogELNComponentIdealTransformer.java
index d6cbf2bd7b794c33840d7fb44acb2da0d45248b9..3dea27811081eafc687850888b2707252f6237e1 100644
--- a/src/main/java/ui/window/JDialogELNComponentIdealTransformer.java
+++ b/src/main/java/ui/window/JDialogELNComponentIdealTransformer.java
@@ -87,7 +87,6 @@ public class JDialogELNComponentIdealTransformer extends JDialog implements Acti
 	public JDialogELNComponentIdealTransformer(ELNComponentIdealTransformer _idealTransformer) {
 		/** Set JDialog **/
 		setTitle("Setting the ideal transformer");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -177,7 +176,7 @@ public class JDialogELNComponentIdealTransformer extends JDialog implements Acti
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -210,4 +209,4 @@ public class JDialogELNComponentIdealTransformer extends JDialog implements Acti
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentIndependentCurrentSource.java b/src/main/java/ui/window/JDialogELNComponentIndependentCurrentSource.java
index 8465522bc8f59cf6e1e0410c55dcd89b82e8b179..723391569af05409e9fbcc4cd89bb26b52fe233e 100644
--- a/src/main/java/ui/window/JDialogELNComponentIndependentCurrentSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentIndependentCurrentSource.java
@@ -99,7 +99,6 @@ public class JDialogELNComponentIndependentCurrentSource extends JDialog impleme
 	public JDialogELNComponentIndependentCurrentSource(ELNComponentIndependentCurrentSource _isource) {
 		/** Set JDialog **/
 		setTitle("Setting the independent current source");
-		setSize(500, 390);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -372,7 +371,7 @@ public class JDialogELNComponentIndependentCurrentSource extends JDialog impleme
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -540,4 +539,4 @@ public class JDialogELNComponentIndependentCurrentSource extends JDialog impleme
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentIndependentVoltageSource.java b/src/main/java/ui/window/JDialogELNComponentIndependentVoltageSource.java
index 88dbcf1169d564faccfaea95a196feee0b8d9bd7..3ae2e7caffde0c55da4377d5e50388540d23d376 100644
--- a/src/main/java/ui/window/JDialogELNComponentIndependentVoltageSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentIndependentVoltageSource.java
@@ -99,7 +99,6 @@ public class JDialogELNComponentIndependentVoltageSource extends JDialog impleme
 	public JDialogELNComponentIndependentVoltageSource(ELNComponentIndependentVoltageSource _vsource) {
 		/** Set JDialog **/
 		setTitle("Setting the independent voltage source");
-		setSize(500, 390);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -372,7 +371,7 @@ public class JDialogELNComponentIndependentVoltageSource extends JDialog impleme
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -540,4 +539,4 @@ public class JDialogELNComponentIndependentVoltageSource extends JDialog impleme
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentInductor.java b/src/main/java/ui/window/JDialogELNComponentInductor.java
index 56a3eb9da63120469f8dd9eb413622d8fdcb57ea..14681319b4259c8534a14702c079cd819af156ef 100644
--- a/src/main/java/ui/window/JDialogELNComponentInductor.java
+++ b/src/main/java/ui/window/JDialogELNComponentInductor.java
@@ -93,7 +93,6 @@ public class JDialogELNComponentInductor extends JDialog implements ActionListen
 	public JDialogELNComponentInductor(ELNComponentInductor _l) {
 		/** Set JDialog **/
 		setTitle("Setting the inductor");
-		setSize(500, 190);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -275,7 +274,7 @@ public class JDialogELNComponentInductor extends JDialog implements ActionListen
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -335,4 +334,4 @@ public class JDialogELNComponentInductor extends JDialog implements ActionListen
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentNullor.java b/src/main/java/ui/window/JDialogELNComponentNullor.java
index afd7db66cdc61040fe195f7d46181bfb957cc7ae..c64b3ab9a5c25398553cb1e6e621971910a22354 100644
--- a/src/main/java/ui/window/JDialogELNComponentNullor.java
+++ b/src/main/java/ui/window/JDialogELNComponentNullor.java
@@ -85,7 +85,6 @@ public class JDialogELNComponentNullor extends JDialog implements ActionListener
 	public JDialogELNComponentNullor(ELNComponentNullor _nullor) {
 		/** Set JDialog **/
 		setTitle("Setting the nullor");
-		setSize(500, 120);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -159,7 +158,7 @@ public class JDialogELNComponentNullor extends JDialog implements ActionListener
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -174,4 +173,4 @@ public class JDialogELNComponentNullor extends JDialog implements ActionListener
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentResistor.java b/src/main/java/ui/window/JDialogELNComponentResistor.java
index 66d39a67bed85f5b41916789206394c7869caa78..a53f9499da7db9fb140c8ed85b9412d324a1f13d 100644
--- a/src/main/java/ui/window/JDialogELNComponentResistor.java
+++ b/src/main/java/ui/window/JDialogELNComponentResistor.java
@@ -90,7 +90,6 @@ public class JDialogELNComponentResistor extends JDialog implements ActionListen
 	public JDialogELNComponentResistor(ELNComponentResistor _r) {
 		/** Set JDialog **/
 		setTitle("Setting the resistance");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -218,7 +217,7 @@ public class JDialogELNComponentResistor extends JDialog implements ActionListen
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -252,4 +251,4 @@ public class JDialogELNComponentResistor extends JDialog implements ActionListen
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentTransmissionLine.java b/src/main/java/ui/window/JDialogELNComponentTransmissionLine.java
index 8f87b52b6ad0ff46f6ba1daef2974f604243a1ab..8ec0bbac777229d24376914016e058c19c102f69 100644
--- a/src/main/java/ui/window/JDialogELNComponentTransmissionLine.java
+++ b/src/main/java/ui/window/JDialogELNComponentTransmissionLine.java
@@ -95,7 +95,6 @@ public class JDialogELNComponentTransmissionLine extends JDialog implements Acti
 	public JDialogELNComponentTransmissionLine(ELNComponentTransmissionLine _transmission_line) {
 		/** Set JDialog **/
 		setTitle("Setting the transmission line");
-		setSize(500, 220);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -293,7 +292,7 @@ public class JDialogELNComponentTransmissionLine extends JDialog implements Acti
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -353,4 +352,4 @@ public class JDialogELNComponentTransmissionLine extends JDialog implements Acti
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentVoltageControlledCurrentSource.java b/src/main/java/ui/window/JDialogELNComponentVoltageControlledCurrentSource.java
index f6b4e83046d69828097aab13d6076422f8b4ea20..22b8fdd49a383120ea96eec66c4285d6fe9bdec7 100644
--- a/src/main/java/ui/window/JDialogELNComponentVoltageControlledCurrentSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentVoltageControlledCurrentSource.java
@@ -90,7 +90,6 @@ public class JDialogELNComponentVoltageControlledCurrentSource extends JDialog i
 	public JDialogELNComponentVoltageControlledCurrentSource(ELNComponentVoltageControlledCurrentSource _vccs) {
 		/** Set JDialog **/
 		setTitle("Setting the voltage controlled current source");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -218,7 +217,7 @@ public class JDialogELNComponentVoltageControlledCurrentSource extends JDialog i
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -252,4 +251,4 @@ public class JDialogELNComponentVoltageControlledCurrentSource extends JDialog i
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ui/window/JDialogELNComponentVoltageControlledVoltageSource.java b/src/main/java/ui/window/JDialogELNComponentVoltageControlledVoltageSource.java
index d44c8d38fcdb8d0af81048d572bf0dbe0676edaf..2c2febca118a31da3f99fe432da632e76b4495b3 100644
--- a/src/main/java/ui/window/JDialogELNComponentVoltageControlledVoltageSource.java
+++ b/src/main/java/ui/window/JDialogELNComponentVoltageControlledVoltageSource.java
@@ -87,7 +87,6 @@ public class JDialogELNComponentVoltageControlledVoltageSource extends JDialog i
 	public JDialogELNComponentVoltageControlledVoltageSource(ELNComponentVoltageControlledVoltageSource _vcvs) {
 		/** Set JDialog **/
 		setTitle("Setting the voltage controlled voltage source");
-		setSize(500, 150);
 		setLocationRelativeTo(null);
 		setVisible(true);
 		setAlwaysOnTop(true);
@@ -177,7 +176,7 @@ public class JDialogELNComponentVoltageControlledVoltageSource extends JDialog i
 		downPanel.add(cancelButton);
 
 		mainPanel.add(downPanel, BorderLayout.CENTER);
-		
+		pack();
 		this.getRootPane().setDefaultButton(saveCloseButton);
 	}
 
@@ -210,4 +209,4 @@ public class JDialogELNComponentVoltageControlledVoltageSource extends JDialog i
 			this.dispose();
 		}
 	}
-}
\ No newline at end of file
+}