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

anlavn.ui.timechooser.TimePickerMenu Maven / Gradle / Ivy

package anlavn.ui.timechooser;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPopupMenu;

public class TimePickerMenu extends JPopupMenu {

    @Override
    protected void paintComponent(Graphics grphcs) {
        grphcs.setColor(getBackground());
        grphcs.fillRect(0, 0, getWidth(), 81);
        grphcs.setColor(Color.WHITE);
        grphcs.fillRect(0, 81, getWidth(), getHeight());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy