BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-04-2008, 06:04 AM   #1
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Display the Icon on the Title Bar portion of the List and all the Screens.(J2ME)

Please Login to Remove!

I want to display the Icon on the Title Bar portion of the List and all the Screens.
Problem is that I am not using the Native BlackBerry UiApplication.
I want to do it in J2ME, and when I specify the Icon in the JAD, traditionally, in all the devices other than BlackBerry, the Application Icon is displayed in all the screens.
Thanks in advance.
Offline  
Old 08-14-2008, 01:43 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

is it possible to show an icon on the titlebar of mainscreen?

I want to show the mute icon there...
Offline  
Old 08-19-2008, 09:56 AM   #3
nyte3k
Thumbs Must Hurt
 
nyte3k's Avatar
 
Join Date: May 2008
Model: 8320
PIN: N/A
Carrier: Tmobile
Posts: 62
Default

Quote:
Originally Posted by arunk View Post
is it possible to show an icon on the titlebar of mainscreen?

I want to show the mute icon there...
This should be possible since setTitle() takes in a Field parameter.

You could insert say... a horizontal field manager and position an icon (bitmapfield) and text (labelfield) within it. And insert that fieldmanager into the title.
Offline  
Old 08-28-2008, 11:46 PM   #4
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default In the MIDlet can you insert ICON in the title bar

In BlackBerry it is fine but I have the MIDlet and not BBApp.
I have never tried to implement a ObjectListField API of BBApp in the List or Form of MIDlet.
Code:
Bitmap bmp=Bitmap.getBitmapSource(bmpPath);
LabelField label=new LabelField(title, LabelField.FIELD_LEFT);
label.setImage(bmp);
ObjectListField list.setTitle(label);
I have to re-write the code entirely into BBApp if I can't find a way to
insert the bmp in the same way.
Regards
Offline  
Old 11-18-2008, 06:47 AM   #5
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default

You can use paint :
PHP Code:
 protected void paint(Graphics g) {
        
super.paint(g);
        
invalidate();
        
int width bmp.getWidth();
        
g.drawBitmap(getContentLeft(), getContentTop(), widthbmp.getHeight(), bmp00);
    } 
__________________
having new s for developers!!!

Last edited by abhsax1978@hotmail.com; 11-18-2008 at 06:48 AM..
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


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2519.95



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE LARGE picture

MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE LARGE

$13.99







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