BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-06-2010, 09:07 AM   #1 (permalink)
New Member
 
SergioTapia's Avatar
 
Join Date: Aug 2010
Model: 7100T
PIN: N/A
Carrier: asdfasdf
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Fields not floating to the right where I want them to be.

Please Login to Remove!

Code:
/** BEGIN TEXT INPUT AMOUNT **/
VerticalFieldManager hfm = new VerticalFieldManager(USE_ALL_WIDTH);
CustomTextField txtAmount = new CustomTextField(50, 20);
txtAmount.setText("0.00");

hfm.add(new RichTextField("Amount: ", FIELD_RIGHT));
hfm.add(txtAmount);			
txtAmount.setFocusListener(focusListener);
add(hfm);
chbExternalExpense = new CheckboxField("External Expense?", false,
		Field.FIELD_RIGHT);
add(chbExternalExpense);
/** END TEXT INPUT AMOUNT **/
Using the above code I would expect the RichTextField to float to the right but it doesn't. Granted the txtAmount doesn't have the style set yet, but the RichTextField SHOULD.

Here is a picture of how it looks:

imgur[DOT]com/6HUYG.png
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

INBUS 187697 CIRCUIT BOARD TESTED WORKING NO MEMORY
$399.99
INBUS 187697 CIRCUIT BOARD TESTED WORKING NO MEMORY  picture160009 New In Box, Allen-Bradley 1742-M2 Memory Module, Ser: A
$232.21
160009 New In Box, Allen-Bradley 1742-M2 Memory Module, Ser: A picture Used Siemens memory card 6ES7 953-8LF20-0AA0 Tested
$75.99
 Used Siemens memory card 6ES7 953-8LF20-0AA0 Tested    pictureLucent TN798B V4 Digital Network Processor Board w/ Memory Card
$35.0
Lucent TN798B V4 Digital Network Processor Board w/ Memory Card  pictureTESTED NICOLET 320 OSCILLOSCOPE W PROBE MANUAL MEMORY CARTRIDGE NR
$115.0
TESTED NICOLET 320  OSCILLOSCOPE W  PROBE MANUAL MEMORY CARTRIDGE  NR picture






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