开发者

Java: Best way to display multiple buffered images in a horizontal orientation(e.g. film reel)

开发者 https://www.devze.com 2023-01-23 09:31 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号