Examples of StartStopState


Examples of com.sshtools.j2ssh.util.StartStopState

    public Component getTableCellRendererComponent(JTable table, Object value,
        boolean isSelected, boolean hasFocus, int row, int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
            row, column);

        StartStopState state = (StartStopState) value;

        if (state.getValue() == StartStopState.FAILED) {
            setIcon(failedIcon);
            setToolTipText(errorMsg);
        } else {
            setIcon((state.getValue() == StartStopState.STOPPED) ? stoppedIcon
                                                                 : startedIcon);
            setToolTipText(null);
        }

        return this;
View Full Code Here

Examples of com.sshtools.j2ssh.util.StartStopState

    public Component getTableCellRendererComponent(JTable table, Object value,
        boolean isSelected, boolean hasFocus, int row, int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
            row, column);

        StartStopState state = (StartStopState) value;

        if (state.getValue() == StartStopState.FAILED) {
            setIcon(failedIcon);
            setToolTipText(errorMsg);
        } else {
            setIcon((state.getValue() == StartStopState.STOPPED) ? stoppedIcon
                                                                 : startedIcon);
            setToolTipText(null);
        }

        return this;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.