Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6520730
Votes 0
Synopsis HyperlinkEvent should contain InputEvent information
Category java:classes_swing
Reported Against
Release Fixed 7(b20), 6-open(b01) (Bug ID:2152953)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 6542094
Submit Date 02-FEB-2007
Description
When a HyperlinkEvent is fired, there's often the need to know what input modifiers were turned on when a link was activated.  For example, popular web browsers perform different actions when Control and/or Shift keys were pressed during the link activation.  The javax.swing.event.HyperlinkEvent  customer  should expose this information when available.
Posted Date : 2007-02-02 14:22:34.0
Work Around
Register key actions for Control and/or Shift key press/release and set/clear the appropriate flags.  There's no guarantee however that the key action and the hyperlink activation action actually happened at the same time.
Evaluation
The following should be added to the HyperlinkEvent: a field for the InputEvent, the accessor method that returns the InputEvent object and the constructor that accepts the InputEvent parameter.  The code which creates HyperlinkEvent objects (first of all, HTMLEditorKit) should supply InputEvent objects to the HyperlinkEvent constructor.
Posted Date : 2007-02-02 14:53:23.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang