Java: Best way to display multiple buffered images in a horizontal orientation(e.g. film reel)
I have a doubly linked list tha开发者_如何学Pythont's storing a bufferedimage in each node. I can easily retrieve all the buffered images by creating an iterator and iterating through list. I want to display each node horizontally one after the other in some sort of a panel. This would be similar to a film reel where frames are linked one after the other. I am not quite sure on how to go about doing so and what I should look into. I am not asking for any specific code I just need some pointing in the right direction.
Use a JList. You can add Icons to the ListModel and display the list horizontally in a scroll pane.
Read the section from the Swing tutorial on How to Use Lists for more details.
精彩评论