String position = ""; int x = getX(); int y = getY(); if (x>0) { position = "+"; } position = position + Integer.toString(x); if (y>0) { position = position + "+"; } position = position + Integer.toString(y); Preferences.getPreferences().setProperty("WebScarab.position",position);
if (! isShowing()) return; Preferences.getPreferences().setProperty("WebScarab.position.x",Integer.toString(getX())); Preferences.getPreferences().setProperty("WebScarab.position.y",Integer.toString(getY()));
    private void formComponentMoved(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentMoved        String position = "";        int x = getX();        int y = getY();        if (x>0) {            position = "+";        }        position = position + Integer.toString(x);        if (y>0) {            position = position + "+";        }        position = position + Integer.toString(y);        Preferences.getPreferences().setProperty("WebScarab.position",position);    }//GEN-LAST:event_formComponentMoved