List of usage examples for javax.swing JPopupMenu JPopupMenu
public JPopupMenu(String label)
JPopupMenu
with the specified title. From source file:it.unibas.spicygui.controllo.provider.intermediatezone.MyPopupProviderDeleteConst.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;//from www .j a va 2s . c o m item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.GENERIC_DELETE)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.MyPopupProviderConnectionInfo.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.HIDE_INFO_CONNECTION)); item.setActionCommand(HIDE_CONNECTION_INFO); item.addActionListener(this); menu.add(item);/*from w ww . j a va2 s. c om*/ // menu.addSeparator(); // // JMenuItem item2 = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.IMPLIED)); // item2.setActionCommand(SET_IMPLIED); // item2.addActionListener(this); // menu.add(item2); }
From source file:it.unibas.spicygui.controllo.provider.composition.MyPopupProviderWidgetConstantComposition.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem itemDeleteWidget;//w w w . ja va 2 s . com itemDeleteWidget = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_WIDGET_COMPOSITION)); itemDeleteWidget.setActionCommand(DELETE); itemDeleteWidget.addActionListener(this); menu.add(itemDeleteWidget); }
From source file:it.unibas.spicygui.controllo.provider.intermediatezone.MyPopupProviderConnectionFunctionalDep.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;// w w w.ja va 2 s .c om item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.MyPopupProviderConnectionSpicy.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;/*from w ww .java 2 s.c o m*/ item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.SHOW_HIDE_INFO_CONNECTION)); item.setActionCommand(SHOW); item.addActionListener(this); menu.add(item); item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.MyPopupProviderJoinCondition.java
private void createPopupMenu() { bindingGroup = new BindingGroup(); menu = new JPopupMenu("Popup menu"); JMenuItem item1;/*from w w w . j av a 2 s . com*/ JCheckBoxMenuItem item2; JCheckBoxMenuItem item3; JCheckBoxMenuItem item4; item1 = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.GENERIC_DELETE)); item1.setActionCommand(DELETE); item1.addActionListener(this); item2 = new JCheckBoxMenuItem(NbBundle.getMessage(Costanti.class, Costanti.TOGGLE_MANDATORY)); Binding binding = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, joinCondition, ELProperty.create("${mandatory}"), item2, BeanProperty.create("selected")); bindingGroup.addBinding(binding); item2.setActionCommand(TOGGLE_MANDATORY); item2.addActionListener(this); item3 = new JCheckBoxMenuItem(NbBundle.getMessage(Costanti.class, Costanti.TOGGLE_FOREIGN)); Binding binding2 = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, joinCondition, ELProperty.create("${monodirectional}"), item3, BeanProperty.create("selected")); bindingGroup.addBinding(binding2); item3.setActionCommand(TOGGLE_FOREIGN); item3.addActionListener(this); item4 = new JCheckBoxMenuItem(NbBundle.getMessage(Costanti.class, Costanti.TOGGLE_MATCH_STRING)); Binding binding3 = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, joinCondition, ELProperty.create("${matchString}"), item4, BeanProperty.create("selected")); bindingGroup.addBinding(binding3); item4.setActionCommand(TOGGLE_MATCH_STRING); item4.addActionListener(this); menu.add(item1); menu.add(item2); menu.add(item3); menu.add(item4); bindingGroup.bind(); }
From source file:it.unibas.spicygui.controllo.provider.MyPopupProviderConnectionMappingTask.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;//from w w w .j av a 2 s. co m // item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.SHOW_HIDE_INFO_CONNECTION)); // item.setActionCommand(SHOW); // item.addActionListener(this); // menu.add(item); itemConfidence = new JMenuItem(); menu.add(itemConfidence); itemImplied = new JCheckBoxMenuItem(); menu.add(itemImplied); item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.intermediatezone.MyPopupProviderConnectionFunc.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;//w w w . java 2s . co m // item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.SHOW_HIDE_INFO_CONNECTION)); // item.setActionCommand(SHOW); // item.addActionListener(this); // menu.add(item); // // // itemConfidence = new JMenuItem(); // menu.add(itemConfidence); // // itemImplied = new JCheckBoxMenuItem(NbBundle.getMessage(Costanti.class, Costanti.IMPLIED)); // menu.add(itemImplied); item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.composition.MyPopupProviderConnectionChainComposition.java
private void createPopupMenu() { menu = new JPopupMenu("Popup menu"); JMenuItem item;/*www . ja va2s . c o m*/ // item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.SHOW_HIDE_INFO_CONNECTION)); // item.setActionCommand(SHOW); // item.addActionListener(this); // menu.add(item); // itemConfidence = new JMenuItem(); // menu.add(itemConfidence); // // itemImplied = new JCheckBoxMenuItem(); // menu.add(itemImplied); item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION)); item.setActionCommand(DELETE); item.addActionListener(this); menu.add(item); }
From source file:it.unibas.spicygui.controllo.provider.MyPopupSceneMatcher.java
private void createPopupMenuGlassPane() { popupMenu = new JPopupMenu("Popup menu"); JMenuItem item;/*from w w w . j ava2 s . co m*/ item = new JMenuItem(NbBundle.getMessage(Costanti.class, Costanti.ACTION_SLIDER)); item.setActionCommand(Costanti.ACTION_SLIDER); item.addActionListener(this); popupMenu.add(item); }