java - Windows Explorer like swing layout -


i want create custom filechooser images special format (.blp). using library can load them bufferedimage objects. want create scrollable image preview of these icons in windows explorer: please don't confused german os ;)

the main issue can't find suitable solution allows vertical scrolling, amount of images limited window size.

i took @ answers these questions:

no scrolling support

no image / scrolling support

so ideas?

the scrollpane needs custom layout

yes, has layout support scrollbars , row , column headers , viewport.

so can't use gridbaglayout or columnsflowlayout in there

sure can because add panel viewport, panel can use layout want.

you may want use jlist , add viewport supports automatic wrapping. check out section swing tutorial on how use lists. can set jlist orientation horizontal wrapping.

a jlist can render icons default, add icons listmodel. if want icons , names need create custom renderer display both text , icon.

or can use panel wrap layout. wraplayout wrap components horizontally , works dynamically frame resized.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -