Forums Register Login

keyEvent handling?

1
+Pie Number of slices to send: Send
hi everyone
i am trying to make a calender application.
what is does is print the calender of month of date you provide. & after that move the calender to next year same month or next month same year according to arrow keys....

what i want to ask is is their any way to perform event handling on keyboard keys without using awt ie, without making button or key objects as such.
thanks......
2
+Pie Number of slices to send: Send
Just because you don't want to use AWT components doesn't mean you can't use anything from AWT. Swing is built on top of AWT; Component is still an indirect super class of all Swing components. Other classes like java.awt.Dimension, java.awt.Rectangle and java.awt.Point are also used extensively in Swing, and the Swing listeners (from javax.swing.event) are not meant to replace the AWT listeners (from java.awt.event), but add to them for Swing specifics. You can still use interfaces and classes like KeyListener, KeyEvent, MouseListener and MouseEvent.
1
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
Listen to Rob's advice. Both of them.
Slime does not pay. Always keep your tiny ad dry.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1032 times.
Similar Threads
GregorianCalendar issues - how to display?
java.util.Calendar
java calander class
java calander class
Happy Gudi Padawa ! Maharashtrian New Year
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:18:09.