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 { ...@@ -180,8 +180,7 @@ public class FormServidor extends JPanel implements ActionListener {
JComponent miPanelFormulario = new FormServidor(); JComponent miPanelFormulario = new FormServidor();
miPanelFormulario.setOpaque(true); miPanelFormulario.setOpaque(true);
Toolkit tk = Toolkit.getDefaultToolkit(); Toolkit tk = Toolkit.getDefaultToolkit();
Dimension screenSize = tk.getScreenSize();
JFrame.setDefaultLookAndFeelDecorated(true); JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true); JDialog.setDefaultLookAndFeelDecorated(true);
Image icon = new ImageIcon(getClass().getResource("/img/firma.png")).getImage(); Image icon = new ImageIcon(getClass().getResource("/img/firma.png")).getImage();
...@@ -192,7 +191,7 @@ public class FormServidor extends JPanel implements ActionListener { ...@@ -192,7 +191,7 @@ public class FormServidor extends JPanel implements ActionListener {
frame.setContentPane(miPanelFormulario); frame.setContentPane(miPanelFormulario);
frame.setMinimumSize(new Dimension(600, 120)); frame.setMinimumSize(new Dimension(600, 120));
frame.setResizable(false); // evito maximizar el formulario frame.setResizable(false); // evito maximizar el formulario
frame.setLocation(screenSize.width, screenSize.height); frame.setLocation(WIDTH, HEIGHT);
frame.pack(); frame.pack();
frame.setAlwaysOnTop(true); // sobrepongo la aplicación frame.setAlwaysOnTop(true); // sobrepongo la aplicación
frame.setVisible(true); 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