Results 1 to 2 of 2
- 06-08-2011, 09:27 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 1
- Rep Power
- 0
Help with creating a shape and moving it with mouse and keyboard!
Hello I'm new to Java, and I have to make a solid shape and move it with my mouse and my keyboard.
My teacher literally taught me nothing, and he is expecting me to do this project...
Please help! Thank you!
I have to use Netbeans IDE
- 06-08-2011, 10:22 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Start with Trail: Creating a GUI With JFC/Swing: Table of Contents (The Java™ Tutorials).
It will show you how to create a GUI and add components to it. You can then start with section like "How to Write a Mouse Listener" to help with dragging. You might also want to check out the sectoin on "Custom Painting". To move the object with a keyboard you will want to check the section on "How to Use Key Bindings".
Similar Threads
-
Bluetooth mouse/keyboard emulation
By matech in forum Advanced JavaReplies: 0Last Post: 01-29-2011, 04:40 PM -
Make shape rounding (moving in circle)
By mneskovic in forum New To JavaReplies: 8Last Post: 08-17-2010, 03:05 PM -
Help with mouse moving object and colisions
By macwadu in forum AWT / SwingReplies: 12Last Post: 07-01-2010, 11:18 PM -
locking keyboard and mouse
By vibhor in forum AWT / SwingReplies: 4Last Post: 02-26-2009, 11:12 PM -
how to resize a shape on a jpanel, using mouse
By New to JAVA in forum New To JavaReplies: 1Last Post: 12-26-2008, 07:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks