Context menu on pin header

Text Search => Text search
This commit is contained in:
Jindra Petřík
2022-11-20 21:19:55 +01:00
parent 0fc21ee689
commit af6c4a5beb
12 changed files with 346 additions and 211 deletions

View File

@@ -127,6 +127,12 @@ public class PinButton extends JPanel {
if (e.getButton() == MouseEvent.BUTTON1) {
//setBorder(loweredBorder);
}
if (e.getButton() == MouseEvent.BUTTON3) {
List<TreeItem> itemList = new ArrayList<>();
itemList.add(item);
mainPanel.getContextPopupMenu().update(itemList);
mainPanel.getContextPopupMenu().show(PinButton.this, 0, PinButton.this.getHeight());
}
}
@Override