action lsiteners converted to java 8 member references 2

This commit is contained in:
honfika@gmail.com
2015-05-03 10:29:05 +02:00
parent 183105b5c2
commit 1de608207f
7 changed files with 566 additions and 1000 deletions

View File

@@ -340,8 +340,7 @@ public class PreviewPanel extends JSplitPane {
/*JPanel bottomPanel = new JPanel(new BorderLayout());
JPanel buttonsPanel = new JPanel(new FlowLayout());
JButton selectColorButton = new JButton(View.getIcon("color16"));
selectColorButton.addActionListener(mainPanel);
selectColorButton.setActionCommand(MainPanel.ACTION_SELECT_BKCOLOR);
selectColorButton.addActionListener(mainPanel::selectBkColor);
selectColorButton.setToolTipText(AppStrings.translate("button.selectbkcolor.hint"));
buttonsPanel.add(selectColorButton);
bottomPanel.add(buttonsPanel, BorderLayout.EAST);