Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo draw note

JAVA MOBILE, J2ME, piano canvas, draw note, draw selection, key pressed

JAVA MOBILE, J2ME, piano canvas, draw note, draw selection, key pressed! /*Marcelo Xavier */ package pianomobileapplication; import javax.microedition.media.*; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class PianoMIDlet     extends MIDlet {   public void startApp() {     Displayable d = new PianoCanvas();          d.addCommand(new Command("Exit", Command.EXIT, 0));     d.setCommandListener(new CommandListener() {       public void commandAction(Command c, Displayable s) {         notifyDestroyed();       }     });          Display.getDisplay(this).setCurrent(d);   }      public void pauseApp() {}   public void destroyApp(boolean unconditional) {} } class PianoCanvas extends Canvas {   private static final int[] kNoteX = {      0...