SunQuest
 
           Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 22nd, 2003, 04:10 PM
sravan sravan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 4 sravan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Action Listener Problem

Dear Members ,

I have a task of editing a java program.

I am sending it as a jar file so that you can have a look at it.
There is a blue color rectangle which can be moved up and down by using the mouse and using up and down arrow keys also.

I even want to move the blue color rectangle by clicking on the up and down arrow buttons which i have created in the program.

As i am new to java,I am facing some problem in linking the code to the up and down arrow buttons.


Can any one solve the problem.

Thanks in Advance
Attached Files
File Type: zip ultra.zip (24.9 KB, 388 views)

Reply With Quote
  #2  
Old December 2nd, 2003, 01:03 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
sravan,

You need to add a check in your actionPerformed method that checks whether or not your UButton or DButton have been pressed (triggered). Then simply add the code you want (your drawing methods, as well as a call to repaint() ).

Have you had any progress with this?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Action Listener Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway