Java Code Examples for java.awt.event.MouseEvent#ALT_MASK
The following examples show how to use
java.awt.event.MouseEvent#ALT_MASK .
These examples are extracted from open source projects.
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 Project: dragonwell8_jdk File: bug6690791.java License: 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 Project: TencentKona-8 File: bug6690791.java License: 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 Project: jdk8u60 File: bug6690791.java License: 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 Project: openjdk-jdk8u File: bug6690791.java License: 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 Project: openjdk-jdk8u-backup File: bug6690791.java License: 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 Project: openjdk-jdk9 File: bug6690791.java License: 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 Project: jdk8u-jdk File: bug6690791.java License: 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 Project: hottub File: bug6690791.java License: 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 Project: openjdk-8-source File: bug6690791.java License: 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 Project: openjdk-8 File: bug6690791.java License: 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 Project: jdk8u_jdk File: bug6690791.java License: 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 Project: aem-ide-tooling-4-intellij File: ListenToFileSystemToggleConfigurationAction.java License: 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 Project: jdk8u-jdk File: bug6690791.java License: 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 Project: jdk8u-dev-jdk File: bug6690791.java License: 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); }