|
@@ -20,33 +20,33 @@ import javax.swing.JPanel;
|
|
|
public class AboutUsPopUp extends JFrame {
|
|
|
|
|
|
* Serial.
|
|
|
- */
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
- private final JPanel contentPanel = new JPanel();
|
|
|
- private final JPanel contentPanel2 = new JPanel();
|
|
|
- private final JPanel contentPanel3 = new JPanel();
|
|
|
- private JLabel titel = new JLabel("Cyber Physical Systems");
|
|
|
+ */
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+ private final JPanel contentPanel = new JPanel();
|
|
|
+ private final JPanel contentPanel2 = new JPanel();
|
|
|
+ private final JPanel contentPanel3 = new JPanel();
|
|
|
+ private JLabel titel = new JLabel("Cyber Physical Systems");
|
|
|
private JLabel h1 = new JLabel("Project Management & Architect");
|
|
|
private JLabel h2 = new JLabel("Software Developers");
|
|
|
private JLabel h3 = new JLabel("Documentation");
|
|
|
private JLabel h4 = new JLabel("Additional Collaborators");
|
|
|
- private JLabel description = new JLabel("A discrete-time simulator for modeling Smart Grids that follow a Holon-based model.");
|
|
|
+ private JLabel description = new JLabel("A discrete-time simulator for modeling Smart Grids that follow a Holon-based model.");
|
|
|
private JLabel namesManagement = new JLabel("C. Garcia Cordero");
|
|
|
- private JLabel namesDevelopers = new JLabel("K. Trometer, D. Rieder, T. Zheng, J. Widhalm, E. Palza and I. Dix");
|
|
|
+ private JLabel namesDevelopers = new JLabel("K. Trometer, D. Rieder, T. Zheng, J. Widhalm, E. Palza and I. Dix");
|
|
|
private JLabel namesDocumentation = new JLabel("E. Palza, C. Garcia Cordero");
|
|
|
private JLabel namesCollaborators = new JLabel("R. Egert and F. Volk");
|
|
|
- private JLabel credits = new JLabel();
|
|
|
+ private JLabel credits = new JLabel();
|
|
|
|
|
|
-
|
|
|
- * Constructor
|
|
|
- */
|
|
|
- public AboutUsPopUp() {
|
|
|
- super(Languages.getLanguage()[14]);
|
|
|
+
|
|
|
+ * Constructor
|
|
|
+ */
|
|
|
+ public AboutUsPopUp() {
|
|
|
+ super(Languages.getLanguage()[14]);
|
|
|
|
|
|
|
|
|
- Font fontTitle = new Font("Titel", 2, 35);
|
|
|
- titel.setFont(fontTitle);
|
|
|
- titel.setBounds(150, 30, 100, 20);
|
|
|
+ Font fontTitle = new Font("Titel", 2, 35);
|
|
|
+ titel.setFont(fontTitle);
|
|
|
+ titel.setBounds(150, 30, 100, 20);
|
|
|
Font headerFont = new Font("Header", 2, 20);
|
|
|
h1.setFont(headerFont);
|
|
|
h2.setFont(headerFont);
|
|
@@ -61,18 +61,18 @@ public class AboutUsPopUp extends JFrame {
|
|
|
contentPanel2.setLayout(new BoxLayout(contentPanel2, BoxLayout.Y_AXIS));
|
|
|
contentPanel3.setLayout(new BoxLayout(contentPanel3, BoxLayout.Y_AXIS));
|
|
|
|
|
|
- this.setIconImage(new ImageIcon(this.getClass().getResource("/Images/Dummy_House.png")).getImage()
|
|
|
- .getScaledInstance(30, 30, Image.SCALE_SMOOTH));
|
|
|
- setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
|
- setBounds(100, 100, 500, 800);
|
|
|
- setLocationRelativeTo(this.getParent());
|
|
|
+ this.setIconImage(new ImageIcon(this.getClass().getResource("/Images/Dummy_House.png")).getImage()
|
|
|
+ .getScaledInstance(30, 30, Image.SCALE_SMOOTH));
|
|
|
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
|
+ setBounds(100, 100, 500, 800);
|
|
|
+ setLocationRelativeTo(this.getParent());
|
|
|
|
|
|
contentPanel.add(Box.createRigidArea(new Dimension(0,15)));
|
|
|
- contentPanel.add(titel);
|
|
|
+ contentPanel.add(titel);
|
|
|
contentPanel.add(Box.createRigidArea(new Dimension(0,15)));
|
|
|
- contentPanel.add(description);
|
|
|
+ contentPanel.add(description);
|
|
|
contentPanel.add(Box.createRigidArea(new Dimension(0,60)));
|
|
|
- getContentPane().add(contentPanel, BorderLayout.NORTH);
|
|
|
+ getContentPane().add(contentPanel, BorderLayout.NORTH);
|
|
|
|
|
|
contentPanel2.add(h1);
|
|
|
contentPanel2.add(namesManagement);
|
|
@@ -86,11 +86,11 @@ public class AboutUsPopUp extends JFrame {
|
|
|
contentPanel2.add(h4);
|
|
|
contentPanel2.add(namesCollaborators);
|
|
|
contentPanel2.add(Box.createRigidArea(new Dimension(0,50)));
|
|
|
- contentPanel2.add(credits);
|
|
|
- getContentPane().add(contentPanel2, BorderLayout.CENTER);
|
|
|
+ contentPanel2.add(credits);
|
|
|
+ getContentPane().add(contentPanel2, BorderLayout.CENTER);
|
|
|
|
|
|
contentPanel3.add(Box.createRigidArea(new Dimension(0,50)));
|
|
|
-
|
|
|
- getContentPane().add(contentPanel3, BorderLayout.SOUTH);
|
|
|
- }
|
|
|
+
|
|
|
+ getContentPane().add(contentPanel3, BorderLayout.SOUTH);
|
|
|
+ }
|
|
|
}
|