|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
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 |
#2
| |||
| |||
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 |
#3
| |||
| |||
Re: how can i move Line in graphique with keyboard Thanks for the link but the link not work |
#4
| |||
| |||
Re: how can i move Line in graphique with keyboard I want someone for help me please |
![]() |
|
Tags: graphique, keyboard |
Thread Tools | Search this Thread |
|
![]() | ||||
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 |