more efficient layout than Box

后端 未结 2 1675
暖寄归人
暖寄归人 2020-12-21 06:53

I\'ve got some very old code which uses a Box to list some information. I create it like so:

Box patterns = Box.createVerticalBox();
         


        
2条回答
  •  青春惊慌失措
    2020-12-21 07:47

    Why don't you just use a JList and implement a cell renderer?

    Or more flexibility with a JTable and implement a table cell renderer (returns a Component instead)?

提交回复
热议问题