BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-19-2009, 09:51 AM   #1
icefrost
New Member
 
Join Date: May 2009
Model: 8310
PIN: N/A
Carrier: China Mobile
Posts: 4
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
shraddha294
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Used & Tested ASUS DSAN-DX Motherboard picture

Used & Tested ASUS DSAN-DX Motherboard

$200.92



Used & Tested 195N2008 195N2131 2800 2900 Motherboard picture

Used & Tested 195N2008 195N2131 2800 2900 Motherboard

$194.90



4100U Simplex CPU Motherboard Assy 566-227 637-158 **UNTESTED** picture

4100U Simplex CPU Motherboard Assy 566-227 637-158 **UNTESTED**

$179.96



Used & Tested IEI SSC-5X86HVGA REV.1.8 Industrial Motherboard       picture

Used & Tested IEI SSC-5X86HVGA REV.1.8 Industrial Motherboard

$299.18



Used & Tested WAFER-LX-800-R11 VER:1.1 Motherboard picture

Used & Tested WAFER-LX-800-R11 VER:1.1 Motherboard

$336.17



Used & Tested FB2504 Motherboard picture

Used & Tested FB2504 Motherboard

$390.23







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