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


Johnson Controls MS-VMA1630-1 VMA ProgrammableVAV Box Controller picture

Johnson Controls MS-VMA1630-1 VMA ProgrammableVAV Box Controller

$229.00



Johnson Controls (240) F4-CGM04060-0 picture

Johnson Controls (240) F4-CGM04060-0

$149.99



York Johnson Controls SE-SPU1012-6 5584429 25-2899-94 S1-03103031000 HVAC Board picture

York Johnson Controls SE-SPU1012-6 5584429 25-2899-94 S1-03103031000 HVAC Board

$143.99



Johnson Controls NSB8BTN240-0 Network Sensor - NEW IN FACTORY SEALED BOX picture

Johnson Controls NSB8BTN240-0 Network Sensor - NEW IN FACTORY SEALED BOX

$72.95



Johnson Controls A421abc-04C Electronic Temperature Control, Open/Close On picture

Johnson Controls A421abc-04C Electronic Temperature Control, Open/Close On

$108.99



Johnson Controls T-8000-6 Bulb Element Controller FNFP picture

Johnson Controls T-8000-6 Bulb Element Controller FNFP

$260.25







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