Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Need extremely simple code: box with words in it, when clicked can move with arrows

Can someone please help me with this? I need it to be as simple as possible. Its a mouse and keyboard control. It makes a fillRect with words in it (doesn't matter what words, I can change that myself. The rectangle is in the center of the screen. If you click it you can move it with the arrows. Please and thanks! I need it by tonight and I cant get the damn thing to work myself :(
(May 13, 2012 11:44 AM)specizripn Wrote:  Can someone please help me with this? I need it to be as simple as possible. Its a mouse and keyboard control. It makes a fillRect with words in it (doesn't matter what words, I can change that myself. The rectangle is in the center of the screen. If you click it you can move it with the arrows. Please and thanks! I need it by tonight and I cant get the damn thing to work myself :(

Is this what are you looking for?
http://www.leepoint.net/notes-java/GUI-l...ydemo.html
NordName.com - best domain registrar and web hosting provider
(May 13, 2012 12:25 PM)Kasgel Wrote:  Is this what are you looking for?
http://www.leepoint.net/notes-java/GUI-l...ydemo.html

Kind of, this may be able to help me thanks. I was able to move a rectangle, and i was able to move text, but I cant get them to line up and move on top of each other. Every time I tried to change their starting location I screwed the whole thing up and wasn't able get it to work. Ill look at this, and I guess I'll just keep messing around until I can get it to work. Thanks for the help!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Dir50Jun 5, 2018 08:56 AM 9 317 Jun 5, 2018 08:56 AM
Last Post: 0xDEAD10CC
[Shell] by decendedJan 22, 2018 03:09 AM 1 205 Jan 22, 2018 03:09 AM
Last Post: Sir-Teabag
[Python] by jg0dJul 31, 2017 10:57 AM 6 279 Jul 31, 2017 10:57 AM
Last Post: jg0d