BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-19-2009, 09:51 AM   #1 (permalink)
New Member
 
Join Date: May 2009
Model: 8310
PIN: N/A
Carrier: China Mobile
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default MIDlet TextField - how to fix this?

Please Login to Remove!

Hi

I'm creating a J2ME MIDlet TextField as usual, though on BlackBerry devices (the main target, though it needs to run on other devices as well), I can't get the UI as desired.

What I'm trying to do is supposed to be simple, but I can't find a solution.

I want the TextField to have a border around it (there is a method called setBorder, but it's private) and I don't want to allow multiline input (there's a property called multiline, but again it's private).

Can someone please give some suggestion?

Regards

Lionel
Offline  
Old 08-21-2009, 01:03 AM   #2 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I presume you are using javax.microedition.lcdui.TextField and not the RIM UI APIs. The J2ME API does not allow drawing border around the textfield.
You can do some fancy stuff with TextField using the net.rim.device.api.ui.component.TextField like adding focus etc. But no border can be set.

If you want some more custom things to be added maybe consider creating Custom field.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Modicon Quantum CPU Controller 140CPU11303
$590.0
Modicon Quantum CPU Controller 140CPU11303 picture2015 FACTORY SEALED Allen Bradley 1747-L541 Series D 5/04 SLC 500 Processor
$1595.0
2015 FACTORY SEALED Allen Bradley 1747-L541 Series D 5/04 SLC 500 Processor picture1PC Panasonic CPU AFP6211-V3
$165.02
1PC Panasonic CPU AFP6211-V3 pictureAlphaSmart K2VDANA001 Portable Desktop Word Processor/Processing System
$32.0
AlphaSmart K2VDANA001 Portable Desktop Word Processor/Processing System  pictureAllen Bradley 1747-L553 Series A SLC 5/05 Processor SLC 500
$1495.0
Allen Bradley 1747-L553 Series A SLC 5/05 Processor SLC 500 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.