From: Marcel R. <mr...@ma...> - 2007-08-14 16:15:25
|
Hi again, i have now found out that it is related to my code using Canvas, here is a functional example, it works fine in WTK but not in microemu, thanks Marcel Title.java =============================== package title; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Display; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; public class Title extends MIDlet { Canvas c; protected void destroyApp(boolean arg0) throws MIDletStateChangeException {} protected void pauseApp() {} protected void startApp() throws MIDletStateChangeException { c = new CanvasTest("HELLO"); Display.getDisplay(this).setCurrent(c); } } =============================== CanvasTest.java =============================== package title; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; public class CanvasTest extends Canvas { public CanvasTest(String title) { setTitle(title); } protected void paint(Graphics arg0) { } } =============================== Bartek Teodorczyk wrote: > 2007/8/13, Marcel Ruff <mr...@ma...>: > >> Thanks this helped to compile, I'm using now the svn snapshot from today. >> >> But the problem remains: The title is white and empty (but fine on WTK >> and real devices). >> >> Any more ideas :-)? >> >> > > Create a send me simple MIDlet to reproduce that problem. > > >> thanks >> Marcel >> >> PS: When using the snapshot instead of 2.0.1 i have to use again >> '--usesystemclassloader' >> to get the debug session running (see my previous threads about this topic): >> >> --usesystemclassloader >> --propertiesjad My.jad >> org.xmlBlaster.MyMidlet >> >> is this a 'must have' option with the coming release? >> >> > > Please send me some sample code, I'll try to look into it. > > Bartek > > >> Vlad Skarzhevskyy wrote: >> >>> Uncomment pluginRepository pyx4me-web in your main pom. when building >>> the code from the SVN. >>> >>> On 8/13/07, *Marcel Ruff* < mr...@ma... >>> <mailto:mr...@ma...>> wrote: >>> >>> Bartek Teodorczyk wrote: >>> > I think the problem is not with the white colors but because of the >>> > bug that doesn't call repaint after setTitle call. I've fixed it >>> right >>> > now on the trunk. >>> > >>> >>> >> -- >> Marcel Ruff >> http://www.xmlBlaster.org >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Microemulator-users mailing list >> Mic...@li... >> https://lists.sourceforge.net/lists/listinfo/microemulator-users >> >> > > -- Marcel Ruff http://www.xmlBlaster.org |