int x = getLocation().x - 30; int y = getLocation().y + 50;
int x = getLocationOnScreen().x; int y = getLocationOnScreen().y;
  public PropertyPanel(PropertyEditor pe) {    //    System.err.println("PropertyPanel::PropertyPanel()");    //    setBorder(BorderFactory.createEtchedBorder());    setOpaque(true);    m_Editor = pe;    addMouseListener(new MouseAdapter() {      public void mouseClicked(MouseEvent evt) {	if (m_PD == null) {	  int x = getLocation().x - 30;	  int y = getLocation().y + 50;	  m_PD = new PropertyDialog(m_Editor, x, y);	} else {	  m_PD.setVisible(true);	}      }    });    Dimension newPref = getPreferredSize();    newPref.height = getFontMetrics(getFont()).getHeight() * 5 / 4;    newPref.width = newPref.height * 5;    setPreferredSize(newPref);  }