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:
  #1  
Old November 22nd, 2003, 04:10 PM
sravan sravan is offline
Registered User
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, 823 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,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 18
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


Developer Shed Advertisers and Affiliates


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap