Questions tagged [lwuit]

Lightweight User Interface Toolkit - widget-based UI library for J2ME enabled mobile devices

LWUIT is a framework for cross platform mobile development that was originally inspired by Swing but took a lot of inspiration from SwingX and went much further with themes & styles. LWUIT has a powerful GUI builder/theme creator and provides a porting layer to several platforms specifically J2ME/MIDP, Blackberry, TV, JavaSE (Applets and Applications), Android and others.

LWUIT allows a lot of power in configuring its theme and has 3rd party themes mimicking native Android/iPhone look and feels in the LWUIT incubator. LWUIT features elaborate special effects and transitions and is highly customizable, it supports all the common touch gestures as well as feature phone none-touch UI's seamlessly.

LWUIT is 100% open source and free under the GPL with classpath exception license which allows for both commercial and none commercial deployments.

LWUIT4IO is an additional library for LWUIT recently added to provide improved integration with filesystem, storage, serialization, Networking etc. To this date there is a large and thriving LWUIT community, there are many operator grade deployments of applications based on LWUIT within some of the biggest operators in the world.

Video of chat demo (shows off some animations and bubble chat): http://www.youtube.com/watch?v=LFClNS5vWQs

One of the many videos showing off the resource editor tool which includes a GUI builder, Theme editor, localization tool etc.: http://lwuit.blogspot.com/2011/04/generating-netbeans-project-from.html

Official Website

http://www.oracle.com/technetwork/java/javame/javamobile/download/lwuit/index.html

902 questions
0
votes
1 answer

How to make each index-instance of Label components in the ListCellRenderer have the same width?

I have a List , and in its ListCellRenderer class I put Labels to display "Labels" and data values. The problem is that when there are more than one elements in the List then the Labels are not aligned , they do not have the same width. Although I…
user833129
0
votes
1 answer

ClassCastException error ( Object and Vector )

I am working with LWUIT List. Here is how the List is created : db = new ClientDB(); listclient = db.listClient(); tModel = new ListSource(listclient); renderer = new CListCell(true, new String[]{"", "", "Encours : ", "Impayés : "}); tList = new…
user833129
0
votes
1 answer

TextArea in Table Cell strange issue

I have worked with javame + lwuit. I encountered an unusual behavior of textarea, when it is inside table cell. Originally textarea ыhifted to right over edge of cell, then I set a fixed size, the problem goes away, but there was another - even…
Maxim Bjjtwins
  • 108
  • 1
  • 8
0
votes
1 answer

How to adjust component's size according to the screen ( or display ) size?

I tested my application in another mobile phone , a htc mobile phone , and it has a very large screen size. So I was very surprised when I saw the arrangement of the components ! Here is the captured image of the screen from the camera of another…
user833129
0
votes
1 answer

How to suspend gif animation when the Button is deactivated and how to align center vertically the gif relative to a LWUIT Button?

I put animated gif into the Resource Editor. I created a Button based on this gif Image , and the Button has also a text : r = Resources.open("/resources.res"); uploadImg = r.getImage("upload"); envoieBtn = new Button("Envoyer",…
user833129
0
votes
1 answer

issue with virtual keyboard scrolling in BB LWUIT

I have done a j2me application when I port it to Blackberry using LWUIT framework I have a problem in virtual keyboard as it does not automatically scrolls because of which the user is unable to view what he is typing in the text field . Can help me…
varun
  • 11
  • 1
0
votes
1 answer

How to make Label's text centered vertically?

I tried one by one each of these methods : setting the BgAlign property to CENTER in the Resource Editor , myLabel.getStyle().setBackgroundAlignment(Style.BACKGROUND_IMAGE_ALIGN_CENTER); but the text of the Label is not centered vertically. So how…
user833129
0
votes
1 answer

How to set numeric virtual keyboard only for LWUIT TextField that constraint with Password and Numeric?

I want to set LWUIT TextField constraint to Number and Password. I make TextField by TextField tf=new TextField(); tf.setConstraints(TextArea.NUMBER|TextField.PASSWORD); tf.setInputModeOrder(new String[ ] {"123"} ); I use virtual keyboard for input…
AT07
  • 98
  • 1
  • 11
0
votes
2 answers

How to make each TextField of a BoxLayout.Y_AXIS have their own width?

There are TextFields , four , contained into a Container whose Layout is BoxLayout(BoxLayout.Y_AXIS). I want each of these TextFields to have their own width. I tried setPreferredW , also setColumns but the TextFields are all the same size which is…
user833129
0
votes
1 answer

How to make it possible to add a lcdui Gauge to a LWUIT Container / Form?

I have a LWUIT Form and LWUIT Containers into the Form. I want to add a lcdui Gauge inside this Form , but I received an error message on my SDK. So how to add the Gauge into the LWUIT Form / Container ?
user833129
0
votes
1 answer

LWUIT black lines between components

I have next question regarding LWUIT: I have container with child components. A black lines around the child components shown on the screen, how can I remove them? I tried to install zero option to padding and margin, but it did'nt help.
Maxim Bjjtwins
  • 108
  • 1
  • 8
0
votes
1 answer

Get current mouse position

It would seem a simple task, but I'm looking at a couple pair tens forums and haven't found the solution. How can I get the current mouse position in LWUIT? Only here it is: PointerInfo a = MouseInfo.getPointerInfo (); Point point = new Point…
Maxim Bjjtwins
  • 108
  • 1
  • 8
0
votes
1 answer

LWUIT item question

I have a standard com.sun.lwuit.list. I can get the selected item using methods getSelectedItem or getSelectedIndex. The item is a picture and two labels. How do I know if I clicked on the picture or on one of the labels. I admit that it is possible…
Maxim Bjjtwins
  • 108
  • 1
  • 8
0
votes
1 answer

How to set the value of a byte[] variable so that it can hold all an Image?

I have photos in the phone device. I want to get the byte[] value of a photo. I use this code to get it : fcDir = (FileConnection) Connector.open("file:///"+pRoot+photoDirectory+"/", Connector.READ); if (fcDir.exists()) …
user833129
0
votes
1 answer

j2me draw images on form with lwuit

I'm using lwuit library. i have a form with a background image. and i want to place another image on top of it at a particular angle, and at a particular position(center for instance). How can this be done. please help with code.
JaseemAmeer
  • 107
  • 2
  • 15