Commit 2c0ab7cc authored by acq1305's avatar acq1305
Browse files

ajustando ubicación

parent d3b6646d
......@@ -180,8 +180,7 @@ public class FormServidor extends JPanel implements ActionListener {
JComponent miPanelFormulario = new FormServidor();
miPanelFormulario.setOpaque(true);
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension screenSize = tk.getScreenSize();
Toolkit tk = Toolkit.getDefaultToolkit();
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
Image icon = new ImageIcon(getClass().getResource("/img/firma.png")).getImage();
......@@ -192,7 +191,7 @@ public class FormServidor extends JPanel implements ActionListener {
frame.setContentPane(miPanelFormulario);
frame.setMinimumSize(new Dimension(600, 120));
frame.setResizable(false); // evito maximizar el formulario
frame.setLocation(screenSize.width, screenSize.height);
frame.setLocation(WIDTH, HEIGHT);
frame.pack();
frame.setAlwaysOnTop(true); // sobrepongo la aplicación
frame.setVisible(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment