Commit 4f351a91 authored by acq1305's avatar acq1305
Browse files

ajustando ubicación

parent 2c0ab7cc
......@@ -4,9 +4,12 @@ import bo.gob.softwarelibre.firmadorestatal.servidor.ServidorRest;
import bo.gob.softwarelibre.firmadorestatal.token.GestorSlot;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Image;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
......@@ -16,6 +19,7 @@ import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.stage.Screen;
import javax.swing.ImageIcon;
import javax.swing.JButton;
......@@ -180,7 +184,8 @@ public class FormServidor extends JPanel implements ActionListener {
JComponent miPanelFormulario = new FormServidor();
miPanelFormulario.setOpaque(true);
Toolkit tk = Toolkit.getDefaultToolkit();
int ancho = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width-600;
int alto = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height-120;
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
Image icon = new ImageIcon(getClass().getResource("/img/firma.png")).getImage();
......@@ -191,7 +196,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(WIDTH, HEIGHT);
frame.setLocation(new Point(ancho, alto));
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