Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private def getFeedsPanel: BoxPanel = {
- val feeds = reader.getFeedListing
- val box: BoxPanel = new BoxPanel(Orientation.Vertical)
- for (i <- feeds) {
- val flow = new FlowPanel
- flow.maximumSize_=(new Dimension(220, 40))
- val buttonDel = new Button
- val iconDel = new ImageIcon("del.png")
- buttonDel.icon_=(iconDel)
- buttonDel.name_=("del;" + i)
- val buttonFeed = new Button
- buttonFeed.text_=(i)
- buttonFeed.name_=("feed")
- flow.contents += buttonDel
- flow.contents += buttonFeed
- this.listenTo(buttonDel)
- this.listenTo(buttonFeed)
- box.contents += flow
- }
- box
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement