GUI: Simplify InputMap handling
Bryce McKinlay
mckinlay@redhat.com
Mon Aug 30 13:48:00 GMT 2004
This patch simplifies the keyboard InputMap code in JComponent by using
an array, indexed by condition, instead of having separate inputmap
fields for each condition type. I wrote this thinking it would be more
memory efficient too, but looking at the code more it seems that
many/most JComponents will have getInputMap() called on them and thus
need InputMaps created, so perhaps the field approach is better in terms
of memory usage.
Graydon, what do you think of this patch?
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-jcomponent.patch
Type: text/x-patch
Size: 6559 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040830/76b0998c/attachment.bin>
More information about the Java-patches
mailing list