Skip to main content

Scrollable TextArea and TabbedPane

6 replies [Last post]
kawaiimomo
Offline
Joined: 2008-07-10

Hi all,

I'm new to LWUIT and I have some questions I hope some kind soul reply to this.

I'm the app I'm working on, I need scrollable TextAreas as the component inside a tab. The problem is when I scroll down or up in the TextArea, the focus goes to the tab pane. I guessed the better way to handle this is by handling vertical keys as textarea scroll, and horizontal keys as tab switching. Any hints on how to avoid the focus and capture the keys on a lower level?

Also I'm using MMAPI to take a snapshot, but I can't get the VideoControl to have my desirable size and position. It just gets arranged at top left and the size is the pic size...

I want to open some bugs and send some feedback for the developers, where i can do this?

Thank you very much. Regards,
Victor

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
the text area focus has an issue with scrolling which will be fixed
in the next drop of LWUIT.

Regarding MMAPI I'm having a hard time understanding what's wrong
with the control having the picture size?
Does setPreferredSize(Dimension) work for you?

Bugs can be opened using the issue tracker in http://
lwuit.dev.java.net/ you need to join the project which we will
approve for observer roles.

Thanks,
Shai.

> Hi all,
>
> I'm new to LWUIT and I have some questions I hope some kind soul
> reply to this.
>
> I'm the app I'm working on, I need scrollable TextAreas as the
> component inside a tab. The problem is when I scroll down or up in
> the TextArea, the focus goes to the tab pane. I guessed the better
> way to handle this is by handling vertical keys as textarea scroll,
> and horizontal keys as tab switching. Any hints on how to avoid the
> focus and capture the keys on a lower level?
>
> Also I'm using MMAPI to take a snapshot, but I can't get the
> VideoControl to have my desirable size and position. It just gets
> arranged at top left and the size is the pic size...
>
> I want to open some bugs and send some feedback for the developers,
> where i can do this?
>
> Thank you very much. Regards,
> Victor
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=285707
>
> ---------------------------------------------------------------------
> 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

kawaiimomo
Offline
Joined: 2008-07-10

Hi there,

Thank you very much for your kind answers.

I'm gonna try if i can control the behaviour of the focus as i wish with keyPressed().

About MMAPI, I'll try the setPreferredSize() method and let you know if it works.

Thanks again to both ;-)

*EDIT*

setPreferredSize(Dimension) works for me if I don't specify a Layout. If I use BoxLayout on y axis the MediaComponent is resized to fit horizontally. If using BorderLayout the component gets resized too (It seems a square when using constraint center).

Any ideas?

*/EDIT*

kawaiimomo
Offline
Joined: 2008-07-10

About MMAPI,

I'm finally using a BorderLayout with empty labels on north, south, west and east. So the MediaComponent it's in the center and not fullscreen, but anyway it would be nice to be able to define the exact dimensions the developer wants to use.

Regards

chen

Hi kawaiimomo,
Instead of using empty Labels you can use getStyle().setPading(...),
getStyle().setMargin(...) , that will give you a better control on the
video size, location.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> About MMAPI,
>
> I'm finally using a BorderLayout with empty labels on north, south, west and east. So the MediaComponent it's in the center and not fullscreen, but anyway it would be nice to be able to define the exact dimensions the developer wants to use.
>
> Regards
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=286404
>
> ---------------------------------------------------------------------
> 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

kawaiimomo
Offline
Joined: 2008-07-10

Hi chen,

How absent minded of me :-P I I guess was too focused on evaluating the API to see if it suits the on-going project (camera support and ui issues as layout and focus behaviour). But with padding and margins I should get the desired size and is the way to work ;-)

Thanks!

Francis De Brabandere

your first question is answered here:
http://lwuit.blogspot.com/2008/06/customizing-lwuits-focus-behavior.html

try using the MediaComponent for you mmapi needs

On Thu, Jul 10, 2008 at 6:09 PM, wrote:
> Hi all,
>
> I'm new to LWUIT and I have some questions I hope some kind soul reply to this.
>
> I'm the app I'm working on, I need scrollable TextAreas as the component inside a tab. The problem is when I scroll down or up in the TextArea, the focus goes to the tab pane. I guessed the better way to handle this is by handling vertical keys as textarea scroll, and horizontal keys as tab switching. Any hints on how to avoid the focus and capture the keys on a lower level?
>
> Also I'm using MMAPI to take a snapshot, but I can't get the VideoControl to have my desirable size and position. It just gets arranged at top left and the size is the pic size...
>
> I want to open some bugs and send some feedback for the developers, where i can do this?
>
> Thank you very much. Regards,
> Victor
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=285707
>
> ---------------------------------------------------------------------
> 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