BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-22-2009, 09:08 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 7100t
PIN: N/A
Carrier: verizon
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Cursor disapearing

Please Login to Remove!

Hello,
I created a form with a blackground color and now I cannot see the cursor.

Here is the code:
Code:
HorizontalFieldManager hfm = new HorizontalFieldManager();
        
        RichTextField label = new RichTextField(labelName, RichTextField.NON_FOCUSABLE  | RichTextField.USE_TEXT_WIDTH) {
            protected void paint(Graphics graphics) {
                graphics.setBackgroundColor(leftColor);
                graphics.clear();
                super.paint(graphics);
            }
        };
        label.setFont(Font.getDefault().derive(Font.BOLD, 13));
        BasicEditField editField;
        editField = new BasicEditField("", defaultValue, EditField.DEFAULT_MAXCHARS, EditField.NO_NEWLINE | Field.FIELD_RIGHT) {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(rightColor);
                    graphics.clear();
                    super.paint(graphics);
                }
                
                public int getPreferredWidth() {
                    return getScreen().getWidth() / 2;
                }

            };
        editField.setFont(Font.getDefault().derive(Font.PLAIN, 13));
        hfm.add(label);
        hfm.add(editField);
Any idea? thanks
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

JELENKO Commodore ll VPF porcelain oven
$500.0
JELENKO Commodore ll VPF porcelain oven pictureMCR Safety 600JX3 Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha...
$29.26
MCR Safety 600JX3 Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha... pictureMCR Safety 6003XL Commodore PVC/Non-Woven Polyester/Nylon 3-Piece Rain Suit w...
$47.62
MCR Safety 6003XL Commodore PVC/Non-Woven Polyester/Nylon 3-Piece Rain Suit w... pictureMCR Safety 600JL Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detachab...
$28.33
MCR Safety 600JL Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detachab... picture8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era
$4.95
8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era picture






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