contact info panel optimized

cusax-fix
Yana Stamcheva 20 years ago
parent 154b9bb763
commit 78fb706f81

@ -118,4 +118,11 @@ public void windowLostFocus(WindowEvent e) {
this.dispose();
}
public void setPopupLocation(int x, int y){
this.setLocation(x, y);
this.bg.updateBackground(x, y);
}
}

@ -242,7 +242,7 @@ public void run() {
SwingUtilities.convertPointToScreen(p, contactListTree);
// TODO: to calculate popup window posititon properly.
contactInfoPanel.setLocation(p.x - 140, p.y - 15);
contactInfoPanel.setPopupLocation(p.x - 140, p.y - 15);
contactInfoPanel.setVisible(true);

Loading…
Cancel
Save