Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: GUI Buttons

I beleive thses examples are not RIM specific, i.e. are for Midlets.  AFAIK, you can't mix MIDlet and RIM Ui in the one application. 

Developer
ankit
Posts: 146
Registered: ‎07-24-2008
My Device: none

Re: GUI Buttons

Hi Dan

you can override the paint method and do painting your self. For handling focus you need to override drawFocus() method.

 

Thanks

Ankit

Thanks & Regards,
Ankit Dubey
Module Lead Software Engineer, mLabs
Impetus InfoTech (India) Pvt. Ltd.
Developer
dankolix
Posts: 100
Registered: ‎06-21-2010
My Device: Not Specified

Re: GUI Buttons

ankit,

 

I am new to development.

 

Please give exmaples or links to backup your statement. Otherwise you may as well be speaking in a language I dont understand.

 

Thanks.

 

Dan

Developer
dankolix
Posts: 100
Registered: ‎06-21-2010
My Device: Not Specified

Re: GUI Buttons

Thanks nikhill

 

But i think Peter is right in saying that you cannot use UI compnonents from MIDLet API with UI components in RIM API.

 

but still thanks

Developer
satchell
Posts: 48
Registered: ‎07-28-2009
My Device: Tour 9630

Re: GUI Buttons

Hi ,

 

Have you looked at the CustomButternsDemo that comes with the JDE or Component packs for the Eclipse Plug-in? Not sure of the lowest OS version it comes with though, been using 5.0 exclusively.

 

As for the Gradient, this might be of some use, http://supportforums.blackberry.com/t5/Java-Development/Example-gradient-filled-rounded-rectangle-wi...

 

I hope this helps.

 

Good Luck,

 

Brent

Developer
dankolix
Posts: 100
Registered: ‎06-21-2010
My Device: Not Specified

Re: GUI Buttons

Thanks Brent !

 

The plugin for eclipse  version I am using is 4.5.0 but i'll check to see if the CustomButtonsDemo exists in it.

 

Also the link you posted does look helpful..

 

To that effect here is a Kudo

 

Thanks for the help


Dan