Hi all !!
I'm trying to execute this code
It's weird because, when I call the class wich extends the canvas... I'm still seeing the "old canvas", with the message "do you accept the request" (because of the Connector), and AFTER accepted, I see that the fillRect has been executed (le background is white).Code:protected void paint(Graphics g) { g.setColor(255,255,255); g.fillRect(0, 0, this.getWidth(), this.getHeight()); g.setColor(0,0,0); g.drawString("Loading...", this.getHeight()/3, this.getWidth()/3, Graphics.TOP | Graphics.LEFT); StreamConnection connection = null; InputStream in = null; StringBuffer buffer = new StringBuffer(); try { connection = (StreamConnection) Connector.open("http://metalcam.free.fr/brut.php"); ...
Is it normal ? What can I do ?

Reply With Quote

