[codenameone-discussions] Re: Generate XML file with XMLWriter

2019-04-09 Thread Shai Almog
I just tried this: Form hi = new Form("XML", BoxLayout.y()); Button write = new Button("Write"); hi.add(write); write.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { Element root = new Element("root"); XMLWriter xw = new

[codenameone-discussions] Re: how to render TextArea or textField to vary font and color within the body of text

2019-04-09 Thread Shai Almog
You have two options. Either native HTML or do it yourself. The native HTML can only be rendered in a very specific component area. That's a platform specific limitation that we can't workaround. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-09 Thread Shai Almog
Hi, I think pubnub cut support for older libraries they implemented. I haven't paid much attention since websockets proved to be a good substitute and removed the need for solutions like that. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: how to render TextArea or textField to vary font and color within the body of text

2019-04-09 Thread Dave Dyer
I don't know of a general solution. In my own universe I have a parallel to String called Text, which allows mixed text fonts colors and icons. Very handy once you have built out duplicates for all th widgets that have String arguments. Curse Java for making all the consumers of strings use

[codenameone-discussions] Re: how to render TextArea or textField to vary font and color within the body of text

2019-04-09 Thread shop . service . assistant
Thanks, however I don't like that lightweight option. What does one use on Mobile devices to mix up fonts like size and color highlighting. What is the preferred method? Regards. On Monday, April 8, 2019 at 1:32:25 PM UTC-4, shop.servi...@gmail.com wrote: > > If you are experiencing an issue

[codenameone-discussions] Generate XML file with XMLWriter

2019-04-09 Thread pythoudk
Hi, I have some problems to generate an XML file, the file is created but the root tag is not written into the file when I call the writeXML(writer, root) method; Here is the code : try{ //Element root Element root = new Element("root"); String path =

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-09 Thread greensoter
Hi Shai, I used below code to receive the message, but it didn't come. Do I need to execute this subscribe somewhere like original PubNub needs to execute after subscribe. public void subMessage() { Pubnub pubnub = new Pubnub(publishKey, subscribeKey); try