public boolean saveSettings()
    {
        String line = null;

        BufferedWriter ini_file;
        try
        {
            //open file
            ini_file = new BufferedWriter( new FileWriter( JIPT_INI_PATH + JIPT_INI_FILENAME ) );

            //write show Splash screen info
            ini_file.write( "SPLASHSCREEN= " + booleanToInt( this.showSplashScreen ) );
            ini_file.newLine();

            //write autoHistogram data
            ini_file.write( "AUTOHISTOGRAM= " + booleanToInt( this.autoHistogram ) );
            ini_file.newLine();

            //write autoFileInfo data
            ini_file.write( "AUTOINFO= " + booleanToInt( this.autoFileInfo ) );
            ini_file.newLine();

            //write saveWindowSettings data
            ini_file.write( "SAVEWINSETTINGS= " + booleanToInt( this.saveWindowSettings ) );
			ini_file.newLine();

            if( this.saveWindowSettings )
            {
                //write Window Settings Sizes
                ini_file.write( "WINSIZEX= " + this.savedParentWidth );
                ini_file.newLine();

                ini_file.write( "WINSIZEY= " + this.savedParentHeight );
                ini_file.newLine();

                //write Window Settings Location
                ini_file.write( "WINPOSX= " + this.windowPositionX );
                ini_file.newLine();

                ini_file.write( "WINPOSY= " + this.windowPositionY );
                ini_file.newLine();
            }

            //write Image Load Path
            ini_file.write( "CURRENTPATH= " + this.current_path );
            ini_file.newLine();

            //write clear pixel color
            ini_file.write( "CLEARPIXEL= " + this.clearPixelColor );
            ini_file.newLine();

            //write max_undo_size
            ini_file.write( "NUMUNDO= " + this.max_undo_size );
            ini_file.newLine();

            //write number of recent files to save
            ini_file.write( "MAXRECENT= " + this.numRecentFiles );
            ini_file.newLine();

            //write recentFile array to store filenames
            for( int loop=0; loop < this.numRecentFiles; loop++ )
            {
                String rf = this.recentFile[loop];
                if( (rf != null) && (!rf.equalsIgnoreCase("null")) )
                {
                    ini_file.write( "RECENTFILE= " + rf );
                    ini_file.newLine();
                }
            }

            //store background color
            ini_file.write( "BGCOLOR= " + this.bg_color );
            ini_file.newLine();

            //store custom colors
            for( int loop=0; loop < this.customColor.size(); loop++ )
            {
                JIPTColor c = (JIPTColor)this.customColor.get( loop );
                Color color = c.getColor();
                ini_file.write( "CUSTOMCOLOR= " + color.getRed() + " " + color.getGreen() + " " + color.getBlue() + " " + c.getName() );
                ini_file.newLine();
            }

            //close file
            ini_file.close();

        }
        catch( FileNotFoundException e )
        {
            e.printStackTrace();
            return false;
        }
        catch( IOException e )
        {
            e.printStackTrace();
            return false;
        }

        return true;
    }//end saveSettings