Code example for Preferences

Methods: putBoolean

0
    public void componentResized(ComponentEvent e) {
        locationChanged(); 
    } 
     
    public void componentShown(ComponentEvent e) {
        prefs.putBoolean(prefsPrefix+".visible", true);
    } 
     
    public void ancestorAdded(AncestorEvent event) {
        locationChanged(); 
    } 
     
    public void ancestorMoved(AncestorEvent event) {
        if (toolbar.getUI() instanceof BasicToolBarUI) {
            if (((BasicToolBarUI) toolbar.getUI()).isFloating()) {
                locationChanged(); 
            } 
        } 
    } 
     
    public void ancestorRemoved(AncestorEvent event) {