Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-11-2008
Member
 
Join Date: Nov 2008
Posts: 25
how can i move Line in graphique with keyboard

hello,
i want porgramming i game with java but i am juste start with java i want to know how can i move the line with keyboard and my code here:
public class Barre extends Frame
{
public void paint(Graphics g)
{
addWindowListener(new FenetreAdaptateur());
g.drawLine(100, 100, 120, 100);
g.setColor(Color.black);

}
//M?thode de l'adaptateur Window
class FenetreAdaptateur extends WindowAdapter
{
public void WindowClosing(WindowEvent event)
{
System.exit(1);

}
}
//point d'entr?e de l'interface
public static void main(String arg[])
{
Barre b=new Barre();
b.setSize(200,200);
b.setVisible(true);

}

}
please help me

best
Reply With Quote
  #2  
Old 17-11-2008
Member
 
Join Date: Oct 2008
Posts: 114
Re: how can i move Line in graphique with keyboard

Hi manjava,
The line of code will be different and will be much lengthier to explain here, you can check for your code from the following link:

https://coloane.lip6.fr/trac/browser....java?rev=1582

Hope this may help you
Reply With Quote
  #3  
Old 17-11-2008
Member
 
Join Date: Nov 2008
Posts: 25
Re: how can i move Line in graphique with keyboard

Thanks for the link but the link not work
Reply With Quote
  #4  
Old 17-11-2008
Member
 
Join Date: Nov 2008
Posts: 25
Re: how can i move Line in graphique with keyboard

I want someone for help me please
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "how can i move Line in graphique with keyboard"
Thread Thread Starter Forum Replies Last Post
How to move to next line by PHP in text file? Ramona19 Software Development 4 09-06-2011 07:09 AM
move cluster resource using the command line cluster.exe faf1967 Windows Server Help 7 06-04-2010 01:58 AM
Unable to move to the next line in c++ program Madaleno Software Development 5 09-02-2010 09:18 PM
How to let Java read text file line by line. Visala28 Software Development 3 04-08-2009 11:30 PM
Move the Mouse with the Keyboard - VisualBasic softte Software Development 2 14-01-2009 01:16 PM


All times are GMT +5.5. The time now is 06:54 AM.