All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.filePiper.gui.borders.RolloverButton Maven / Gradle / Ivy

Go to download

This project is a GUI utility for processing files. It allows selecting a set of source files and a pipeline of processes to apply onto those files. The applications shows in a nice-looking user interface where you can define profiles for your repetitive tasks. It provides pre-defined processors doing usual file manipulation tasks like: Copy, Head, Tail, Chunk, Search, Replace, Zip, Unzip... But the biggest value of this file processor tool is the ability to add easily custom file processors written in java.

The newest version!
package net.sf.filePiper.gui.borders;


import java.awt.Insets;

import javax.swing.Icon;
import javax.swing.JButton;


/**
 * A button with border appearing as rollover effect.
 */
public class RolloverButton extends JButton {


    public RolloverButton(Icon buttonIcon) {
        setIcon(buttonIcon);
        setMargin(new Insets(0, 0, 0, 0));
        setRolloverEnabled(true);
    }


    public boolean isBorderPainted() {
        return isEnabled() && getModel().isRollover();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy