'Add object to a collection, call it from another class?

I'm trying to take an object I have created with user input and put it into a collection, so that this can be called in another class.

I tried to create an ArrayList, but I only got a value of false returning.

Here is my code for the object

Chair chairOrder = new Chair();
chairOrder.setFurnitureID(furnitureID); //Set the furnitureID input by the user

if (oakWood.isSelected()) {
    chairOrder.setWoodType(Furniture.WoodType.Oak); //Set the woodType to Oak
} else if(walnutWood.isSelected()) {
    chairOrder.setWoodType(Furniture.WoodType.Walnut); //Set the woodType to Walnut
}

chairOrder.setArmrestsOn(addArmrests.isSelected());//Checks to see if the checkbox for armrests is checked, if it is, armrests are added to the order

I want to be able to call this in another class to create a JLabel that allows me to have an image that when clicked, will display the information of this object.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source