I am working to create a custom layout for an application, as I am not able to implement the functionality using existing layouts like CardLayout.
I need to store various Component instances in a collection. As, I see in CardLayout source code, they've used Vector to hold Card instances.
By going through many answers on StackOverflow, I have learned, we should use ArrayList over Vector. But, which one should we prefer in the case of GUI related applications like holding Component instances in a LayoutManager.