protected ToggleButton createToggleButton(final Object[] args) {
        String tip = new String();
        String text = new String();
        try{
             tip =
                    ((args.length > 0) && (args[0] != null))
                    ? args[0].toString()
                    : null;
        } catch(final Throwable exp) {
            System.out.println(exp.getMessage());
        }
        try{
            text =
                    ((args.length > 1) && (args[1] != null))
                    ? args[1].toString()
                    : null;
        } catch(final Throwable exp) {
            System.out.println(exp.getMessage());
        }      
        final Object imageArg = args[2];
        final Dimension size =
                ((args.length > 3) && (args[3] instanceof Dimension))
                ? (Dimension) args[3]
                : new Dimension(-1, -1);
        
        final ToggleButton retval =
                new ToggleButton(
                tip,
                (imageArg == null)
                ? text
                : null,
                imageArg,
                size,
                false);

        retval.setActionCommand(tip);
        toggleButtonList.addElement(retval);

        return retval;
    }