Java Code Examples for java.awt.event.MouseEvent#ALT_MASK
The following examples show how to use
java.awt.event.MouseEvent#ALT_MASK .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: bug6690791.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 2
Source File: bug6690791.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 3
Source File: bug6690791.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 4
Source File: bug6690791.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 5
Source File: bug6690791.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 6
Source File: bug6690791.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 7
Source File: bug6690791.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 8
Source File: bug6690791.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 9
Source File: bug6690791.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 10
Source File: bug6690791.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 11
Source File: bug6690791.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 12
Source File: ListenToFileSystemToggleConfigurationAction.java From aem-ide-tooling-4-intellij with Apache License 2.0 | 5 votes |
public final void actionPerformed(@NotNull AnActionEvent event) { if((event.getModifiers() & MouseEvent.ALT_MASK) != 0) { ShowSettingsUtil.getInstance().showSettingsDialog(event.getProject(), AEMPluginConfiguration.DISPLAY_NAME); } else { boolean state = !this.isSelected(event); this.setSelected(event, state); Presentation presentation = event.getPresentation(); presentation.putClientProperty("selected", state); } }
Example 13
Source File: bug6690791.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }
Example 14
Source File: bug6690791.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { MouseEvent me = new MouseEvent(new JLabel(), MouseEvent.MOUSE_CLICKED, System.currentTimeMillis(), MouseEvent.ALT_MASK, 10, 10, 100, 100, 1, false, MouseEvent.BUTTON1); me.setSource(new Object()); MenuSelectionManager.defaultManager().processMouseEvent(me); }