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

100pack 3900uf 10v 105c RCZ Low Impedance Electrolytic Capacitors 12.5x40x5 NEW
$12.49
100pack 3900uf 10v 105c RCZ Low Impedance Electrolytic Capacitors 12.5x40x5 NEW pictureUsed Dual Impedance Match Assembly 100Z vs 25KZ Ultrad 2569 Part No. TF1RX10YY
$34.99
Used Dual Impedance Match Assembly 100Z vs 25KZ Ultrad 2569 Part No. TF1RX10YY pictureAs-Is - Agilent/HP 16047A Impedance Test Fixture w/ clips
$285.0
As-Is - Agilent/HP 16047A Impedance Test Fixture w/ clips picturePolar Controlled Impedance Test System CITS500s2a
$2580.0
Polar Controlled Impedance Test System CITS500s2a pictureThermail Impedance Pads - Sil-Pad 400 - 3223-07FR-54
$5.0
Thermail Impedance Pads - Sil-Pad 400 - 3223-07FR-54 picture






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