BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-26-2009, 10:23 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 9000
PIN: N/A
Carrier: student
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile question about displaying button field and grahics line on the screen

Please Login to Remove!

Hello,

I want to display a button field and a line on the screen. code:

ButtonField myButton1 = new ButtonField("hello");
myButton1.setEditable(true);
XYEdges b1 = new XYEdges();
b1.set(5, 10, 5,10);
myButton1.setPadding(b1);

this.setPadding(b1);
this.add(myButton1);

Graphics GUI = this.getGraphics();
GUI.drawLine(25, 275, 55, 275);

however, only the button can be showed on the screen. The line will disappear once "this.add(myButton1)" is called.

how can I solve it?

Thank you
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

Hand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971
$55.0
Hand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971 pictureVintage Cast Iron Barbwire Stretcher Dated Dec 6 1885 ~ Unknown Manufacturer
$19.99
Vintage Cast Iron Barbwire Stretcher Dated Dec 6 1885 ~ Unknown Manufacturer pictureVintage Digital DEC M3106 Line SYNC MUX Board
$29.99
Vintage Digital DEC M3106 Line SYNC MUX Board pictureAshcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique
$49.0
Ashcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique pictureDated DEC 1910: LARGE Vintage Brass Pressure Gauge By ASHCROFT, Steampunk Part
$39.99
Dated DEC 1910: LARGE  Vintage Brass Pressure Gauge By ASHCROFT, Steampunk Part picture






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