aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Event Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Event" Watch "Event" New topic
Author

Event

vandana
Greenhorn

Joined: Mar 29, 2001
Posts: 13
hi folks,
i am just gvg some snippets of code below.
pl. explain...
int modifiers = me.getModifiers();
if ((modifiers & InputEvent.BUTTON3_MASK)==InputEvent.BUTTON3_MASK)
{---
-------}

wht does ths modifiers do?
wht Do v use InputEvent for? how is it diff frm Actionevent?
wht is Masking used for?
thanx

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"vandana":
hmmm... ...maybe I was not clear the first time...
serinity now!
your name doesnot agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Event
 
Similar Threads
Swings
JTable an popup menu
A unique and interesting post in Sun Java forums :D
Event handeling
pop up menu