public void displayFrnds(){
        try {
            txtArea.setText("");
            database.getFriendsList();
            ResultSetMetaData met = database.resultSet.getMetaData();
            int numberOfColumns = met.getColumnCount();
            
            
            PrintStream printStream = new PrintStream(new CustomOutputStream(txtArea));
            System.setOut(printStream);
            //System.setErr(printStream);
            try {
                database.getFriendsList();
                database.resultSet.beforeFirst();
                
                while(database.resultSet.next()){
                    for(int i=1;i<=numberOfColumns;i++)
                        System.out.printf("%-8s\t", database.resultSet.getObject(i));
                    System.out.println();
                }
                
              //  System.setOut(this.outOrg);
                //txtFrnd.requestFocus();
            }
            catch (SQLException ex) {
                //Logger.getLogger(FTablePrint.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        catch (SQLException ex)
        {  //         Logger.getLogger(FTablePrint.class.getName()).log(Level.SEVERE, null, ex);
            //Logger.getLogger(FTablePrint.class.getName()).log(Level.SEVERE, null, ex);
        }
        finally{
            if(reFrns == null){
                reFrns = new refreshFriends();
                reFrns.start();
            }
        }
    }