[codenameone-discussions] UIID for TextComponent

2021-06-24 Thread steve nganga
Am having a hard time trying to set the UIID for teh textcomponent.
The documentation says we can use this constant textComponentFieldUIID but

   - *textComponentFieldUIID is not in the list of constants in the
   theme.res*
   -
*Hashtable uuids=new Hashtable<>();
   uuids.put("textComponentFieldUIID", "inputfields");
   UIManager.getInstance().addThemeProps(uuids);*

Using the UIManager does not seem to work. What am i missing?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZbfbw_BnuKNLMqPwhRYfMyGq5SVb3ovDFQ8yxRHwWG4A%40mail.gmail.com.


[codenameone-discussions] Java Code not updating after making change on GUIBuilder

2021-05-01 Thread steve nganga
I am building a Form using Gui Builder but after making changes on it
saving it and even clicking REgen, the code part is not updated hence
frustrating.
Am using Intelij  2019.3 Community version and on latest cn1 plugin 7.0.3

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqbm9t%2BauC1zfi2w_ZEN6Hr4J24M3tAKofWA-SQXN2Hovg%40mail.gmail.com.


Re: [codenameone-discussions] Re: Broken behavior on autocompletetextcompoment

2021-01-16 Thread steve nganga
This is happening on both simulator and android. I haven't tried any other
platform.

On Sat, 16 Jan 2021, 07:40 Shai Almog,  wrote:

> Is this only on Android or does it happen elsewhere?
> Is it still happening after this Friday update?
>
> On Saturday, January 16, 2021 at 2:56:11 AM UTC+2 ngosti2000 wrote:
>
>> Looks like there is a regression with autocomplete popup upon selecting
>> an item the cursor keeps jumping randomly on field rather than set the
>> selected text
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/1a763a0a-23c6-4ff3-be23-27363cd1ad74n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqaawi%3DiJk9VYb_Jb8wrmgoVWpRLhMSgg8UJEwVon3O1CA%40mail.gmail.com.


[codenameone-discussions] Capturing frames from Video

2018-01-20 Thread steve nganga
Am doing a YOLOv2 (https://www.youtube.com/watch?v=VOC3huqHrss) Detection
project and want to use codenameone for capturing image frames from video.
I checked on android and Camera2 API handles the same via callback
interfaces ImageReader.OnImageAvailableListener

.
How would i approach the same with codenameine one.i Checked Capture API
but didn't get way forward from it.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqYUoQwmbkcCzLy2uDY6O4vx1BqbVzvrub41ApRbcTXxmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: why my function is always returning null object

2017-04-26 Thread steve nganga
Try the following

NetworkManager.getInstance().addToQueue*AndWait*(con); and uncomment the
line


Connection also provides the addArgument method so instead of appending the
id to the url use the

ConnectionRequest con = new ConnectionRequest();
con.setUrl("http://localhost/piService/getUserById.php;);
con.addArgument("userId",id);





On Wed, Apr 26, 2017 at 3:00 PM, b.wassim Rmd 
wrote:

> this is what i get when im testing
>
> Le mercredi 26 avril 2017 02:27:25 UTC+1, b.wassim Rmd a écrit :
>>
>> If you are experiencing an issue please mention the full platform your
>> issue applies to:
>> IDE: NetBeans
>> Simulator
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/679a6adc-944a-4245-8134-
> d0a4e060497d%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqY5iMwKeXq3DPVAX29pVo%2B9Ho31bWBezvcDYA7%3DQYL8sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] why the blog have no new post?

2017-04-26 Thread steve nganga
https://www.codenameone.com/blog/questions-of-the-week-49.html

On Wed, Apr 26, 2017 at 1:41 PM,  wrote:

> Hi shai! everything its ok? im asking why since some weeks we cant find
> new post.
>
> regards!
>
>
> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator
> Device
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/b26be9ad-797b-48ab-9e64-
> 854bb808d5c6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZA1ghiZ_G3QJo%2BedLq-RVr5zWx-pRPwwMHOLAaJnd5Mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] why my function is always returning null object

2017-04-26 Thread steve nganga
Share the stacktrace... just from looking at your code you have already
instantiated Membre on the first line and hence does not make sense to
return null;

On Wed, Apr 26, 2017 at 4:27 AM, b.wassim Rmd 
wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans
> Simulator
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/162dbb4a-994b-40c8-a3af-
> acab803b928f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZGLn_F0SpV3iWoBzy%3DhMWfQJGzzTR0PTsdcfx_t%2B3%2B_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] How to add an ActionListener to a List ? please help me by code

2017-04-20 Thread steve nganga
You can try something like below.  use your code on the the commented
space. Also note am using lambda expression feel free not to use it if you
are using java 7 and below.

 Form v[]={form1,form2,form3,form4};

l.addActionListener((e) -> {

// Your code here
eg
 v[l.getSelectedIndex()].show();

});


On Thu, Apr 20, 2017 at 12:29 PM, Sondes Hammami 
wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator
> Device
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/b7780132-0fc0-4e94-8c94-
> c5bc9be9eca8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZ8Lc6WsJ5SYwLYM6PyNQ1ha0fWM9yuP5606FQY%2B4BfsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Scrollable list

2017-04-19 Thread steve nganga
Here it is

/*
 * To change this license header, choose License Headers in Project
Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.testing.myapp;

import com.codename1.components.InfiniteScrollAdapter;
import com.codename1.ui.Button;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Label;
import com.codename1.ui.TextField;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.layouts.BoxLayout;
import com.codename1.ui.layouts.FlowLayout;
import com.codename1.ui.layouts.GridLayout;
import com.codename1.ui.table.TableLayout;

import java.util.List;

/**
 *
 * @author estewai
 */
public class BusinessDetailsContainer extends Container {

private BusinessDetails bd;
private Container center;
private Container north;
private TextField addF;
private Button phone;
private TextField hours;
private List items;
private List itemsContainer;

public BusinessDetailsContainer(BusinessDetails bd) {
this.bd = bd;
items = bd.getItems();
setUIID("searchContainer");
setLayout(new BorderLayout());
addF = new TextField();
addF.setEnabled(false);
addF.setText(bd.getAddress());
addF.setUIID("phoneField");
phone = new Button();

phone.setUIID("phoneField");

phone.setPreferredSize(addF.getPreferredSize());
phone.setText(bd.getTelephone());

hours = new TextField();
hours.setText(bd.getOpenCloseTime());
hours.setUIID("phoneField");
hours.setEnabled(false);

TableLayout tl = new TableLayout(4, 2);


Container westSubCenter = new Container();

westSubCenter.setUIID("westSubCenter");
westSubCenter.setLayout(tl);



center = new Container();
center.setLayout(new GridLayout(1, 2));

Label addr = new Label("Address");
addr.setUIID("AddressLabel");

westSubCenter.add(addr);
westSubCenter.add(addF);

north = new Container();
Label bus = new Label("");
bus.setText(bd.getBusName());
bus.setUIID("businessTitle");

FlowLayout flow = new FlowLayout();

north.setLayout(flow);
north.add(bus);

Label phoneLabel = new Label("Phone");
phoneLabel.setUIID("AddressLabel");
westSubCenter.add(phoneLabel);
westSubCenter.add(phone);

Label hoursLabel = new Label("Hours");
hoursLabel.setUIID("AddressLabel");
westSubCenter.add(hoursLabel);
westSubCenter.add(hours);

Label distLabel = new Label("Distance");
distLabel.setUIID("AddressLabel");
westSubCenter.add(distLabel);

TextField dist = new TextField();
dist.setEnabled(false);
dist.setText(bd.getDistance());
dist.setUIID("phoneField");
westSubCenter.add(dist);

BorderLayout t2 = new BorderLayout();
Container eastSubCenter = new Container();
eastSubCenter.setLayout(t2);

com.codename1.ui.List itemsUI=new com.codename1.ui.List();
//itemsUI.setScrollable();
itemsUI.setRenderer(new ItemRenderer());
Button b[]=new Button[items.size()];
for (int i = 0; i < items.size(); i++) {

itemsUI.addItem(items.get(i));
}
itemsUI.setMaxElementHeight(5);

itemsUI.setFixedSelection(com.codename1.ui.List.FIXED_NONE_CYCLIC);

eastSubCenter.add(BorderLayout.CENTER,itemsUI);
center.add(eastSubCenter);
center.add(westSubCenter);

addComponent(BorderLayout.CENTER, center);
addComponent(BorderLayout.NORTH, north);

}

}

On Wed, Apr 19, 2017 at 8:40 PM, Steve Hannah <steve.han...@codenameone.com>
wrote:

> Post your current code.  Probably you have a scrollable container in your
> hierarchy somewhere that is preventing the list from scrolling.
>
> On Wed, Apr 19, 2017 at 10:22 AM, steve nganga <ngosti2...@gmail.com>
> wrote:
>
>> Yes i did... still list is not scrolling
>>
>> On Wed, Apr 19, 2017 at 8:19 PM, Steve Hannah <
>> steve.han...@codenameone.com> wrote:
>>
>>> Did you change the container to use BorderLayout?
>>>
>>> On Wed, Apr 19, 2017 at 10:17 AM, steve nganga <ngosti2...@gmail.com>
>>> wrote:
>>>
>>>> That still doesn't work... and btw way the list does not have the
>>>> method to set the scrollability ie setScrollableX/Y()... i find this
>>>> strange as it has the method List.isScrollableX() and List.isScrollableY()
>>>> unless am missing something.
>>>>
>>>> On Wed, Apr 19, 

Re: [codenameone-discussions] Scrollable list

2017-04-19 Thread steve nganga
Yes i did... still list is not scrolling

On Wed, Apr 19, 2017 at 8:19 PM, Steve Hannah <steve.han...@codenameone.com>
wrote:

> Did you change the container to use BorderLayout?
>
> On Wed, Apr 19, 2017 at 10:17 AM, steve nganga <ngosti2...@gmail.com>
> wrote:
>
>> That still doesn't work... and btw way the list does not have the method
>> to set the scrollability ie setScrollableX/Y()... i find this strange as it
>> has the method List.isScrollableX() and List.isScrollableY() unless am
>> missing something.
>>
>> On Wed, Apr 19, 2017 at 8:06 PM, Steve Hannah <
>> steve.han...@codenameone.com> wrote:
>>
>>> You are adding List inside a Container with BoxLayout.Y, and setting the
>>> container to scrollable, but not the list. You need to set the container to
>>> *not* scrollable, and the list to *scrollable*.  Consider changing the
>>> Container to use BorderLayout instead.
>>>
>>> Steve
>>>
>>> On Wed, Apr 19, 2017 at 9:59 AM, steve nganga <ngosti2...@gmail.com>
>>> wrote:
>>>
>>>> thanks but this doesn't seem to work . the list is still not
>>>> scrollable. I want to have 5 items displayed on the list at any one time.
>>>>
>>>> Below is the code snippet and the image of the simulator with the
>>>> highlighted showing the list.
>>>>
>>>>
>>>> BoxLayout t2 = new BoxLayout(BoxLayout.Y_AXIS);
>>>> Container eastSubCenter = new Container();
>>>> eastSubCenter.setLayout(t2);
>>>> eastSubCenter.setScrollableY(true);
>>>> com.codename1.ui.List itemsUI=new com.codename1.ui.List();
>>>>
>>>> itemsUI.setRenderer(new ItemRenderer());
>>>> Button b[]=new Button[items.size()];
>>>> for (int i = 0; i < items.size(); i++) {
>>>>
>>>> itemsUI.addItem(items.get(i));
>>>> }
>>>> itemsUI.setMaxElementHeight(5);
>>>>
>>>> itemsUI.setFixedSelection(com.codename1.ui.List.FIXED_NONE_C
>>>> YCLIC);
>>>>
>>>> eastSubCenter.add(itemsUI);
>>>> center.add(eastSubCenter);
>>>> center.add(westSubCenter);
>>>>
>>>> [image: Inline image 1]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Apr 19, 2017 at 7:26 PM, Steve Hannah <
>>>> steve.han...@codenameone.com> wrote:
>>>>
>>>>> Just call setScrollableY(true) on the container (if using a container
>>>>> with boxlayout.y) or the list (if using a List).
>>>>>
>>>>> Steve
>>>>>
>>>>> On Wed, Apr 19, 2017 at 6:41 AM, steve nganga <ngosti2...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> How do i make a list to be scrollable?
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "CodenameOne Discussions" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to codenameone-discussions+unsubscr...@googlegroups.com
>>>>>> .
>>>>>> Visit this group at https://groups.google.com/grou
>>>>>> p/codenameone-discussions.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/CA
>>>>>> OfyKqZBPmarXQ%2BydEfDJ12Opuh6v_1Qe7LEH%2BKO1bC-CMYOyw%40mail
>>>>>> .gmail.com
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v_1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Steve Hannah
>>>>> Software Developer
>>>>> Codename One
>>>>> http://www.codenameone.com
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop rec

Re: [codenameone-discussions] Scrollable list

2017-04-19 Thread steve nganga
That still doesn't work... and btw way the list does not have the method to
set the scrollability ie setScrollableX/Y()... i find this strange as it
has the method List.isScrollableX() and List.isScrollableY() unless am
missing something.

On Wed, Apr 19, 2017 at 8:06 PM, Steve Hannah <steve.han...@codenameone.com>
wrote:

> You are adding List inside a Container with BoxLayout.Y, and setting the
> container to scrollable, but not the list. You need to set the container to
> *not* scrollable, and the list to *scrollable*.  Consider changing the
> Container to use BorderLayout instead.
>
> Steve
>
> On Wed, Apr 19, 2017 at 9:59 AM, steve nganga <ngosti2...@gmail.com>
> wrote:
>
>> thanks but this doesn't seem to work . the list is still not
>> scrollable. I want to have 5 items displayed on the list at any one time.
>>
>> Below is the code snippet and the image of the simulator with the
>> highlighted showing the list.
>>
>>
>> BoxLayout t2 = new BoxLayout(BoxLayout.Y_AXIS);
>> Container eastSubCenter = new Container();
>> eastSubCenter.setLayout(t2);
>> eastSubCenter.setScrollableY(true);
>> com.codename1.ui.List itemsUI=new com.codename1.ui.List();
>>
>> itemsUI.setRenderer(new ItemRenderer());
>> Button b[]=new Button[items.size()];
>> for (int i = 0; i < items.size(); i++) {
>>
>> itemsUI.addItem(items.get(i));
>> }
>> itemsUI.setMaxElementHeight(5);
>>
>> itemsUI.setFixedSelection(com.codename1.ui.List.FIXED_NONE_C
>> YCLIC);
>>
>> eastSubCenter.add(itemsUI);
>> center.add(eastSubCenter);
>> center.add(westSubCenter);
>>
>> [image: Inline image 1]
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Apr 19, 2017 at 7:26 PM, Steve Hannah <
>> steve.han...@codenameone.com> wrote:
>>
>>> Just call setScrollableY(true) on the container (if using a container
>>> with boxlayout.y) or the list (if using a List).
>>>
>>> Steve
>>>
>>> On Wed, Apr 19, 2017 at 6:41 AM, steve nganga <ngosti2...@gmail.com>
>>> wrote:
>>>
>>>> How do i make a list to be scrollable?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/grou
>>>> p/codenameone-discussions.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v
>>>> _1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v_1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>> Visit this group at https://groups.google.com/grou
>>> p/codenameone-discussions.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/codenameone-discussions/CAGOYrKWWvbQLAKZxUk8jqeSkgSqLtLo
>>> Cf%3DZaMfd9Ec22kthGgA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWWvbQLAKZxUk8jqeSkgSqLtLoCf%3DZaMfd9Ec22kthGgA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> Visit this group at https://groups.google.com/grou
>> p/codenameone-discu

Re: [codenameone-discussions] Scrollable list

2017-04-19 Thread steve nganga
thanks but this doesn't seem to work . the list is still not
scrollable. I want to have 5 items displayed on the list at any one time.

Below is the code snippet and the image of the simulator with the
highlighted showing the list.


BoxLayout t2 = new BoxLayout(BoxLayout.Y_AXIS);
Container eastSubCenter = new Container();
eastSubCenter.setLayout(t2);
eastSubCenter.setScrollableY(true);
com.codename1.ui.List itemsUI=new com.codename1.ui.List();

itemsUI.setRenderer(new ItemRenderer());
Button b[]=new Button[items.size()];
for (int i = 0; i < items.size(); i++) {

itemsUI.addItem(items.get(i));
}
itemsUI.setMaxElementHeight(5);

itemsUI.setFixedSelection(com.codename1.ui.List.FIXED_NONE_CYCLIC);

eastSubCenter.add(itemsUI);
center.add(eastSubCenter);
center.add(westSubCenter);

[image: Inline image 1]








On Wed, Apr 19, 2017 at 7:26 PM, Steve Hannah <steve.han...@codenameone.com>
wrote:

> Just call setScrollableY(true) on the container (if using a container with
> boxlayout.y) or the list (if using a List).
>
> Steve
>
> On Wed, Apr 19, 2017 at 6:41 AM, steve nganga <ngosti2...@gmail.com>
> wrote:
>
>> How do i make a list to be scrollable?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> Visit this group at https://groups.google.com/grou
>> p/codenameone-discussions.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v
>> _1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v_1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/CAGOYrKWWvbQLAKZxUk8jqeSkgSqLt
> LoCf%3DZaMfd9Ec22kthGgA%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWWvbQLAKZxUk8jqeSkgSqLtLoCf%3DZaMfd9Ec22kthGgA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqacZZ0Z3Zacr_t_s9tkx%3DU0XvidXxbEEfRNPb2V-us40g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Scrollable list

2017-04-19 Thread steve nganga
How do i make a list to be scrollable?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZBPmarXQ%2BydEfDJ12Opuh6v_1Qe7LEH%2BKO1bC-CMYOyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] AutoCompleteTextField not populating

2017-04-10 Thread steve nganga
I am fetching data from the the database and can even print the data on the
overridden filter method of the AutoCompleteTextField. The issue is that
even after adding the newly fetched items in the DefaultListModel..  the
items are not being displayed in the in the popup of the autoComplete. What
could be the issu

Screenshot below

[image: Inline image 1]

Here is my Code.



import com.codename1.ui.AutoCompleteTextField;
import com.codename1.ui.list.DefaultListModel;

public class AutoCompleteUI extends AutoCompleteTextField {

private DefaultListModel dlm;

public AutoCompleteUI(DefaultListModel model) {
this.dlm = model;
setMinimumElementsShownInPopup(5);
}

@Override
public boolean filter(String text) {
if (text.trim().length() == 0) {
return false;
}

try
{
 String data[]=ConnectionUtil.getResultsFromDB(text);
 dlm.removeAll();

 if(data==null || data.length==0)
 return false;

 for(String res:data)
 {
 System.out.println(res);
 dlm.addItem(res);
 }
 return true;

}catch(Exception io)
{
io.printStackTrace();
}


return false;
}


}

Where the Component is added
 DefaultListModel dlm=new DefaultListModel<>();
  AutoCompleteUI vp=new AutoCompleteUI(dlm);

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqa%3DW1NRG8mOBdagxj2dcwPPYjfMCBH4spwwtFMyZrKV6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: MapContainer not displaying maps

2016-07-12 Thread steve nganga
Thanks for the tip..now works fine

On Tue, Jul 12, 2016 at 7:12 AM, Shai Almog  wrote:

> Hi,
> connect the device with a cable and DDMS. If there is an error it is
> logged there with the app package, sha1 key etc.
> Verify that those match the settings in the native maps section there.
> Keep in mind it take 20-30 minutes for the settings to update...
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/f0925e3e-7bdf-474d-86be-02c5cc2eb899%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqZOTe2k6C0emzTY3jF2id6tbSvJmet1o8%2BAF%2BEO2Me89A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] m: Moving from screen to another screen in Codename oneii

2016-06-26 Thread steve nganga
nope sent accidentally

On Sat, Jun 25, 2016 at 9:13 AM, Shai Almog  wrote:

> Is this a question?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/b7ca6917-4127-44ba-9d03-2bb3567f2a13%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqaqLVwNGLekzQn2LS0H7xsXncyNPjfa7yOj%3DNDgfoOL_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] m: Moving from screen to another screen in Codename oneii

2016-06-24 Thread steve nganga
M:mm
On Jun 1, 2016 8:58 AM, "Mahmoud Sabri"  wrote:
>
> Thanks shai ,
> i found another solution programmatically using:
> setTransition(Out/In)Animator(...);
>
> thank you very much
>
>
> On Wednesday, 1 June 2016 07:20:32 UTC+3, Shai Almog wrote:
>>
>> In the theme constants there is a formTransitionOut constant:
>> https://www.codenameone.com/manual/advanced-theming.html
>
> --
> You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/a610155b-e161-42a2-90c5-0ff338f55663%40googlegroups.com
.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqa7Z%3Dttes0eVu80WzpoUUFMusJ6yYfLrdH7p%2BdaUnwJKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Moving from screen to another screen in Codename one

2016-06-24 Thread steve nganga
M
On Jun 1, 2016 8:58 AM, "Mahmoud Sabri"  wrote:

> Thanks shai ,
> i found another solution programmatically using:
> *setTransition(Out/In)Animator(...);*
>
> thank you very much
>
> On Wednesday, 1 June 2016 07:20:32 UTC+3, Shai Almog wrote:
>>
>> In the theme constants there is a formTransitionOut constant:
>> https://www.codenameone.com/manual/advanced-theming.html
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/a610155b-e161-42a2-90c5-0ff338f55663%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAOfyKqaTXHbBqKLkoST%3De09UFfR%3Dgstb2BKCnODw-7TVsQqK_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.