modifica proporzioni label
This commit is contained in:
parent
720b70b7c8
commit
e0b3307584
@ -1512,7 +1512,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
w = (tw / 8);
|
w = (tw / 8);
|
||||||
h = 60;
|
h = 60;
|
||||||
|
|
||||||
int part = (displayWidth - lblDB.getWidth()) / 7;
|
int part = (displayWidth - lblDB.getWidth()) / 8;
|
||||||
|
|
||||||
lblUtenteLoggato.setLocation(x, y);
|
lblUtenteLoggato.setLocation(x, y);
|
||||||
//lblUtenteLoggato.setSize(w, h);
|
//lblUtenteLoggato.setSize(w, h);
|
||||||
@ -1522,7 +1522,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
lblInfo.setLocation(lblUtenteLoggato.getLocation().x + lblUtenteLoggato.getSize().width, y);
|
lblInfo.setLocation(lblUtenteLoggato.getLocation().x + lblUtenteLoggato.getSize().width, y);
|
||||||
//lblInfo.setSize(w * 2 + 60 - lblDB.getWidth(), h);
|
//lblInfo.setSize(w * 2 + 60 - lblDB.getWidth(), h);
|
||||||
//lblInfo.setSize(296, h);
|
//lblInfo.setSize(296, h);
|
||||||
lblInfo.setSize((int)(part * 1.5), h);
|
lblInfo.setSize((int)(part * 2.5), h);
|
||||||
|
|
||||||
//lblInfo2.setLocation(w * 3 + 60 - lblDB.getWidth(), y);
|
//lblInfo2.setLocation(w * 3 + 60 - lblDB.getWidth(), y);
|
||||||
lblInfo2.setLocation(lblInfo.getLocation().x + lblInfo.getSize().width, y);
|
lblInfo2.setLocation(lblInfo.getLocation().x + lblInfo.getSize().width, y);
|
||||||
@ -1530,7 +1530,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
int larg = tw - (w * 2 + 10) - 359;
|
int larg = tw - (w * 2 + 10) - 359;
|
||||||
//lblInfo2.setSize(larg, h);
|
//lblInfo2.setSize(larg, h);
|
||||||
//lblInfo2.setSize(444, h);
|
//lblInfo2.setSize(444, h);
|
||||||
lblInfo2.setSize(part * 3, h);
|
lblInfo2.setSize((int)(part * 3), h);
|
||||||
|
|
||||||
//lblStatoConnessione.setLocation(tw - 181 - lblDB.getWidth(), y);
|
//lblStatoConnessione.setLocation(tw - 181 - lblDB.getWidth(), y);
|
||||||
lblStatoConnessione.setLocation(lblInfo2.getLocation().x + lblInfo2.getSize().width, y);
|
lblStatoConnessione.setLocation(lblInfo2.getLocation().x + lblInfo2.getSize().width, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user