how to write statements in jtextpane/jtextfield area? [duplicate]

This question already has an answer here:

here is my code i just want to write all statements in jtextpane/jtextarea but the problem is only the last statement is print there not the all statments(means “System.out.print” statements). So how do i write all statments in jtextpane/jtextfield area please help me i’m new to java and i’m trying from 2-3 days but didn’t found right answer.

int Cuka = 10;
int Burger = 20;
int Frenchfries= 30;
int icecream = 40;
int temp =0;
ArrayList<Cart_Bin> list=new ArrayList<>();
ArrayList<Cart_Bin> autocom=new ArrayList<>();
public customer() {  
public void actionPerformed(ActionEvent e) {

    for(int i=0;i<list.size();i++)
    {

        if(list.get(i).getItem_name() == "Burger")
        {
            temp = Integer.parseInt(list.get(i).getQty());
            System.out.println("Burger :: " + temp*Burger);
            output_box.setText("nBurger :: " + temp*Burger);

        }
        else if(list.get(i).getItem_name() == "Cuka") 
        {
            temp = Integer.parseInt(list.get(i).getQty());
            System.out.println("CUKA :: " + temp*Cuka);
            output_box.setText("nCUKA :: " + temp*Cuka);
        }
        else if(list.get(i).getItem_name() == "French fries") 
        {
            temp = Integer.parseInt(list.get(i).getQty());
            System.out.println("French Fries :: "+temp*Frenchfries);
            output_box.setText("nFrench Fries :: "+temp*Frenchfries);
        }
        else if(list.get(i).getItem_name() == "ice cream") 
        {
            temp = Integer.parseInt(list.get(i).getQty());
            System.out.println("ICE CREAM :: " + temp*icecream);
            output_box.setText("nICE CREAM :: " + temp*icecream);
        }
        else
        {
        }
    }
}
   output_box = new JTextField();
    output_box.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {

        }
    });