Skip to main content

New Code Drop available for download now

10 replies [Last post]
chenf
Offline
Joined: 2008-04-29
Points: 0

Hi All,

We are very pleased to announce the new code drop is available to download now, we put allot of effort into this drop and we want to assure you we are still working very hard to get everything open sourced as soon as we can.

Highlights of this drop include many bug fixes, stability and portability issues. Performance and size were major drivers in this drop.

Enjoy,
Chen

Highlights

* Added ticker functionality for label and its subclasses allowing both animated tickers and "..." shortening
* Performance improvements in critical sections such as the paint queue
* Slightly smaller size of binary
* New look for checkbox/combo box & radio button that works better across look and feels - all of the above are now pluggable and can be replaced with custom images
* Form.show() was made more thread aware hopefully fixing some race conditions for simpler use cases of LWUIT
* Changes for focus behavior: Added focusUp/Left. Removed the special treatment given to focus right/down.
* Game action no longer returns a value for numeric input to improve cross platform portability
* Gesture based scrolling now works horizontally as well.
* Commands/menus now support icons
* The flushGraphics flag had an incorrect default which caused regressions on several phones
* Fix for newline character in text area bug, improved text area documentation
* Reworked and deprecated default commands the functionality is now within Form.setDefaultCommand()

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tauntz
Offline
Joined: 2007-02-21
Points: 0

Hi, can you be any more specific on that matter? Is it a matter of days/weeks/months/years? :)

> Hi All,
>
> ... we want to assure you we are still
> working very hard to get everything open sourced as
> soon as we can.

chen

Hi,
This is a matter of weeks.

Chen

lwuit-users@mobileandembedded.org wrote:
> Hi, can you be any more specific on that matter? Is it a matter of days/weeks/months/years? :)
>
>
>
>> Hi All,
>>
>> ... we want to assure you we are still
>> working very hard to get everything open sourced as
>> soon as we can.
>>
> [Message sent by forum member 'tauntz' (tauntz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282701
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

nafs
Offline
Joined: 2008-06-10
Points: 0

Hi guys,

This released fixed the bug I spoke about here (http://forums.java.net/jive/thread.jspa?threadID=42897&tstart=0). Now if only this release came 1 day earlier... would've saved me so much trouble, heh. But keep it up guys!

BTW, I am kinda worried that Chen and Shai are the only 2 people in Sun working on LWUIT.
Drive safely please! :)

Message was edited by: nafs

francisdb
Offline
Joined: 2006-06-16
Points: 0

Thanks!

Are you sure the TextArea has been fixed? All my text stays on the same line with no word wrapping/newline done. (BorderLayout.Center)

Shai Almog

Hi Francisdb,
Did you use the "\\n" character in the code or did you use something
else?
Is this in the text area in LWUIT or when moving to the native text box?

Thanks,
Shai.

> Thanks!
>
> Are you sure the TextArea has been fixed? All my text stays on the
> same line with no word wrapping/newline done. (BorderLayout.Center)
> [Message sent by forum member 'francisdb' (francisdb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282570
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

francisdb
Offline
Joined: 2006-06-16
Points: 0

In the native box everything is correctly printed but not in the lwuit box.
this is the code (form constructor)

this.setLayout(new BorderLayout());

this.addCommand(backCommand);
this.setBackCommand(backCommand);

Container buttoncoContainer = new Container(new BoxLayout(BoxLayout.Y_AXIS));
buttoncoContainer.addComponent(new Button(selectLoggingCommand));
buttoncoContainer.addComponent(new Button(selectServerCommand));

this.addComponent(BorderLayout.NORTH ,buttoncoContainer);

showInfo();
}

private void showInfo() {
TextArea text = new TextArea(context.getAppInfo());
//text.setFocusable(true);
//text.setEditable(false);
//text.setBorderPainted(false);
this.addComponent(BorderLayout.CENTER ,text);
}

public String getAppInfo() {
StringBuffer buffer = new StringBuffer();
buffer.append("Free Memory: ").append(rt.freeMemory()).append("\n");
buffer.append("Total Memory: ").append(rt.totalMemory()).append("\n");
buffer.append("Version: " + getVersion());
return buffer.toString();
}

Shai Almog

Works as expected when the constructor accepts rows/columns (which it
doesn't in the code).
[Picture 21.png]

Form listForm = new Form("TextField") {
{
this.setLayout(new BorderLayout());

this.addCommand(new Command("Back"));

Container buttoncoContainer = new Container
(new BoxLayout(BoxLayout.Y_AXIS));
buttoncoContainer.addComponent(new Button
("Logging"));
buttoncoContainer.addComponent(new Button
("Server"));

this.addComponent
(BorderLayout.NORTH ,buttoncoContainer);

showInfo();
}

private void showInfo() {
TextArea text = new TextArea( 5, 100,
TextArea.ANY | TextArea.UNEDITABLE );
text.setText(getAppInfo());
//text.setFocusable(true);
//text.setEditable(false);
//text.setBorderPainted(false);
this.addComponent(BorderLayout.CENTER ,text);
}

public String getAppInfo() {
StringBuffer buffer = new StringBuffer();
Runtime rt = Runtime.getRuntime();
buffer.append("Free Memory: ").append
(rt.freeMemory()).append("\n");
buffer.append("Total Memory: ").append
(rt.totalMemory()).append("\n");
buffer.append("Version: 0");
return buffer.toString();
}
};
listForm.show();

On Jun 26, 2008, at 12:52 AM, lwuit-users@mobileandembedded.org wrote:

> In the native box everything is correctly printed but not in the
> lwuit box.
> this is the code (form constructor)
>
> this.setLayout(new BorderLayout());
>
> this.addCommand(backCommand);
> this.setBackCommand(backCommand);
>
> Container buttoncoContainer = new Container(new BoxLayout
> (BoxLayout.Y_AXIS));
> buttoncoContainer.addComponent(new Button
> (selectLoggingCommand));
> buttoncoContainer.addComponent(new Button
> (selectServerCommand));
>
> this.addComponent(BorderLayout.NORTH ,buttoncoContainer);
>
> showInfo();
> }
>
> private void showInfo() {
> TextArea text = new TextArea(context.getAppInfo());
> //text.setFocusable(true);
> //text.setEditable(false);
> //text.setBorderPainted(false);
> this.addComponent(BorderLayout.CENTER ,text);
> }
>
> public String getAppInfo() {
> StringBuffer buffer = new StringBuffer();
> buffer.append("Free Memory: ").append(rt.freeMemory
> ()).append("\n");
> buffer.append("Total Memory: ").append(rt.totalMemory
> ()).append("\n");
> buffer.append("Version: " + getVersion());
> return buffer.toString();
> }
> [Message sent by forum member 'francisdb' (francisdb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282632
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Francis De Brabandere

Thanks

On Thu, Jun 26, 2008 at 5:32 AM, Shai Almog wrote:
> Works as expected when the constructor accepts rows/columns (which it
> doesn't in the code).
>
>
>
> Form listForm = new Form("TextField") {
> {
> this.setLayout(new BorderLayout());
>
> this.addCommand(new Command("Back"));
>
> Container buttoncoContainer = new Container(new
> BoxLayout(BoxLayout.Y_AXIS));
> buttoncoContainer.addComponent(new
> Button("Logging"));
> buttoncoContainer.addComponent(new Button("Server"));
>
> this.addComponent(BorderLayout.NORTH
> ,buttoncoContainer);
>
> showInfo();
> }
>
> private void showInfo() {
> TextArea text = new TextArea( 5, 100, TextArea.ANY |
> TextArea.UNEDITABLE );
> text.setText(getAppInfo());
> //text.setFocusable(true);
> //text.setEditable(false);
> //text.setBorderPainted(false);
> this.addComponent(BorderLayout.CENTER ,text);
> }
>
> public String getAppInfo() {
> StringBuffer buffer = new StringBuffer();
> Runtime rt = Runtime.getRuntime();
> buffer.append("Free Memory:
> ").append(rt.freeMemory()).append("\n");
> buffer.append("Total Memory:
> ").append(rt.totalMemory()).append("\n");
> buffer.append("Version: 0");
> return buffer.toString();
> }
> };
> listForm.show();
>
> On Jun 26, 2008, at 12:52 AM, lwuit-users@mobileandembedded.org wrote:
>
>> In the native box everything is correctly printed but not in the lwuit
>> box.
>> this is the code (form constructor)
>>
>> this.setLayout(new BorderLayout());
>>
>> this.addCommand(backCommand);
>> this.setBackCommand(backCommand);
>>
>> Container buttoncoContainer = new Container(new
>> BoxLayout(BoxLayout.Y_AXIS));
>> buttoncoContainer.addComponent(new Button(selectLoggingCommand));
>> buttoncoContainer.addComponent(new Button(selectServerCommand));
>>
>> this.addComponent(BorderLayout.NORTH ,buttoncoContainer);
>>
>> showInfo();
>> }
>>
>> private void showInfo() {
>> TextArea text = new TextArea(context.getAppInfo());
>> //text.setFocusable(true);
>> //text.setEditable(false);
>> //text.setBorderPainted(false);
>> this.addComponent(BorderLayout.CENTER ,text);
>> }
>>
>> public String getAppInfo() {
>> StringBuffer buffer = new StringBuffer();
>> buffer.append("Free Memory:
>> ").append(rt.freeMemory()).append("\n");
>> buffer.append("Total Memory:
>> ").append(rt.totalMemory()).append("\n");
>> buffer.append("Version: " + getVersion());
>> return buffer.toString();
>> }
>> [Message sent by forum member 'francisdb' (francisdb)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=282632
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Qunhuan Mei

Hi Chen and Shai,

A quick test found that the traverse problem I reported earlier disappeared from the new code drop, well done.

Thanks very much for your hard work!

Q

-----Original Message-----
From: lwuit-users@mobileandembedded.org [mailto:lwuit-users@mobileandembedded.org]
Sent: 25 June 2008 17:35
To: users@lwuit.dev.java.net
Subject: New Code Drop available for download now

Hi All,

We are very pleased to announce the new code drop is available to download now, we put allot of effort into this drop and we want to assure you we are still working very hard to get everything open sourced as soon as we can.

Highlights of this drop include many bug fixes, stability and portability issues. Performance and size were major drivers in this drop.

Enjoy,
Chen

[b]Highlights

* Added ticker functionality for label and its subclasses allowing both animated tickers and "..." shortening
* Performance improvements in critical sections such as the paint queue
* Slightly smaller size of binary
* New look for checkbox/combo box & radio button that works better across look and feels - all of the above are now pluggable and can be replaced with custom images
* Form.show() was made more thread aware hopefully fixing some race conditions for simpler use cases of LWUIT
* Changes for focus behavior: Added focusUp/Left. Removed the special treatment given to focus right/down.
* Game action no longer returns a value for numeric input to improve cross platform portability
* Gesture based scrolling now works horizontally as well.
* Commands/menus now support icons
* The flushGraphics flag had an incorrect default which caused regressions on several phones
* Fix for newline character in text area bug, improved text area documentation
* Reworked and deprecated default commands the functionality is now within Form.setDefaultCommand()
[/b]
[Message sent by forum member 'chenf' (chenf)]

http://forums.java.net/jive/thread.jspa?messageID=282564

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Matteo Mazzotti

Wow, that's a very good news!
Thank you guys for your excellent work.

I'll grab the code right now.

Cheers
Matteo

> -----Messaggio originale-----
> Da: lwuit-users@mobileandembedded.org
> [mailto:lwuit-users@mobileandembedded.org]
> Inviato: mercoledì 25 giugno 2008 18.35
> A: users@lwuit.dev.java.net
> Oggetto: New Code Drop available for download now
>
> Hi All,
>
> We are very pleased to announce the new code drop is
> available to download now, we put allot of effort into this
> drop and we want to assure you we are still working very hard
> to get everything open sourced as soon as we can.
>
> Highlights of this drop include many bug fixes, stability and
> portability issues. Performance and size were major drivers
> in this drop.
>
> Enjoy,
> Chen
>
>
> [b]Highlights
>
> * Added ticker functionality for label and its subclasses
> allowing both animated tickers and "..." shortening
> * Performance improvements in critical sections such as
> the paint queue
> * Slightly smaller size of binary
> * New look for checkbox/combo box & radio button that
> works better across look and feels - all of the above are now
> pluggable and can be replaced with custom images
> * Form.show() was made more thread aware hopefully fixing
> some race conditions for simpler use cases of LWUIT
> * Changes for focus behavior: Added focusUp/Left. Removed
> the special treatment given to focus right/down.
> * Game action no longer returns a value for numeric input
> to improve cross platform portability
> * Gesture based scrolling now works horizontally as well.
> * Commands/menus now support icons
> * The flushGraphics flag had an incorrect default which
> caused regressions on several phones
> * Fix for newline character in text area bug, improved
> text area documentation
> * Reworked and deprecated default commands the
> functionality is now within Form.setDefaultCommand() [/b]
> [Message sent by forum member 'chenf' (chenf)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282564
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net