Forums Register Login

Midlet Colours? (On forms etc..)

+Pie Number of slices to send: Send
I've written a midlet (consisting of several forms) for one of our customers. However they'd like the midlet to change to reflect the colours of their company's branding.
Is it possible to change the colour/background or anything else of the forms & items in a midlet..? (MIDP 2.0).
any help/pointers appreciated,
+Pie Number of slices to send: Send
Yes you can. If you use the Canvas class and create your own class that extends Canvas, you can use the Graphics object in the paint method and change colors.

In this code I fill the background with a color. I don't remember which color this is, but you can use the setColor() method of the Graphics object and change the color. But remember to change it back or you might find your text invisible because it has the same color as the background. I did this that is how I know.
Mark
+Pie Number of slices to send: Send
Sorry I should have been more specific, yes I know that you can use the graphics class to draw colours on canvas etc.. but what I am trying to change is the colours of forms, buttons, choicegroups etc.. basically midp2.0 Items.
I don't think it can be done.
They weren't very bright, but they were very, very big. Ad contrast:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1156 times.
Similar Threads
Objectives for the SCMAD exam are here!!
Changing the text color
SCMAD beta starts Feb 5th.
Carrier support for PushRegistry & inbound connections
ActionListener and Event
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:27:27.