Expanding and Centering ImageItems appearing as Buttons

Hi,
I am developing a midlet for school which has a Form as main menu. I've added StringItems appearing as Buttons to this menu and I want them to fill the complete screen so I used the LAYOUT.EXPAND. No problems so far, everything works but I want the my button's label to be centered as well. I've tried everything and searched everywhere but nothing works. My current source;
      roosterVandaag = new StringItem("Rooster vandaag", null, Item.BUTTON);
      datumKiezen = new StringItem("Datum kiezen", null, Item.BUTTON);
      settings = new StringItem("Opties", null, Item.BUTTON);
      roosterDownloaden = new StringItem("Rooster Downloaden", null, Item.BUTTON);
      afsluiten = new StringItem("Afsluiten", null, Item.BUTTON);
      //Set de layout voor de StringItems
      roosterVandaag.setLayout(Item.LAYOUT_EXPAND);
      datumKiezen.setLayout(Item.LAYOUT_EXPAND);
      settings.setLayout(Item.LAYOUT_EXPAND);
      roosterDownloaden.setLayout(Item.LAYOUT_EXPAND);
      afsluiten.setLayout(Item.LAYOUT_EXPAND);Now I need to center the text which appears in the Expanded Button..please help me, I'm desperate because this is for school!!

Hi,
Problems regarding the layout of items on the screen is a common problem in MIDP when developing for a specific target device.
Where did you encounter those problems? You didn't mention it, but does your solution -- including the correct hint from jack -- work as expected on the Wireless Toolkit simulator? I know that there are some devices out there that have a different implementation regarding the layouting of items...
Cheers,
Jasper

Similar Messages

  • How to perform expand and collapse operation on click of link or button

    Hi
    Is there anyway by which i can perform expand and collapse operation over a table on click of a command link or button without using show details component.
    Is there any other alternative to show detail.
    I do not want to use show detail because of the following reason.
    I have got a page where in i pass some parameters to the URL based on which details get displayed on the page.
    Now when i pass a parameter, change the parameter, once again send the previously used parameter(i,e the parameter that i passed initially), values in the table under show detail do not show any change in values.
    Once i pass values which i have already passed, values in the table under show detail component do not refreshed.
    If anyone has encountered with similar situation, then please post me reply's as to how you could over come the problem??

    Hi
    Perhaps you could use an on-demand application process instead - you can specify these in the URL.
    The URL syntax (for your link) would be like...
    f?p=application_id:page_id:session:APPLICATION_PROCESS=process_idIs this what you mean?
    Cheers
    Ben

  • I'm running an iBook G4. On occasion, a black and white display appears (in multiple languages) and requires restarting by holding the power button.

    I'm running an iBook G4. On occasion, a black and white display appears (in multiple languages) and requires restarting by holding the power button.

    What you are seeing is a kernel panic.
    Check out the X Lab's article on Resolving Kernel Panics. Maybe something there will help.

  • My macbook froze and i pressed the power button and the OSX utilities appeared

    My macbook froze and i pressed the power button and the OSX utilities appeared .. i don't know if my things got erased or what does it mean and what should i do ? it doesn't let me click out of it or anything. the options are to restore fro time machine, reinstall OSX get help online and disk utility ,, how can i do to not erase anything i do not have an external memory or anything. PLEASE HELP

    Hi there. If you have 10.9 Maverick you can get in recovery mode By using /command r Option R or Option. Then you came click on the link to go to disk utilities and repair your disk or do a reinstall of you operating system. I think the screen you are seeing is the recovery screen. Here is a hot of what it looks like. You will have to scroll down a little to see it.http://osxdaily.com/2013/11/05/downgrade-from-os-x-mavericks/   http://support.apple.com/en-us/HT4718  This link tells you what you can do.

  • Expand and collapse button in maintenance view

    hi all,
               i want help for functionality of expand and collapse buttons present there in maintenance view. delimit button is also there what is the functionality for these buttons.
    u ppl can see these buttons while enetering values in standarad maintenance view V_T510
    my requirement is to create same buttons and their working in user defined maintenance view.

    Hi Chavi,
    check the PDF document
    Module Poolo tuorials
    regs,
    Hema sundar.

  • Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. How to revert it?

    I'm having trouble with something in firefox, it's quite minor but still bugs me. Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. I can't remember what I did to change this if it's my fault; if someone knows how to revert it I'd be thankful.

    cor-el : thanks for the pointers! I wish the solution isn't an add-on every time ... if such long-standing behaviour is going to change, the least that could be done is put in an about:config option to get back the old behaviour.

  • My iphone is showing the apple pic so i Pressed both home and sleep/wake buttons until the Apple logo appears, then release the sleep/wake button and continue pressing the home button alone until iTunes detects and Recoveys but it is gives an error 1051

    my phone was showing the apple pic when i eraseed all content and settings so i did Pressed both home and sleep/wake buttons until the Apple logo appeared, then released the sleep/wake button and continued pressing the home button alone until iTunes detected the phone in Recovery Mode but an error is coming (1015) plz help me!!!!

    plug into itunes and take it from there
    http://support.apple.com/kb/HT1808

  • My ipad is password protected and i can't remember the password.  when I try to restore it, the itunes restore plugin screen will not appear on my ipad.  I have tried to shut down, plug in, and hold down the home button method and get nothing.

    my ipad is password protected and i can't remember the password.  when I try to restore it, the itunes restore plugin screen will not appear on my ipad.  I have tried to shut down, plug in, and hold down the home button method and only get the password screen again on the iPad.  Any suggestions??

    tried all that and was looking good with new software etc downloaded and then got a message in iTunes."we're sorry we are unable to conitue with your activation at this time etc " tried process again and got to the same message. iPAD still has the connect to it tunes screen ..any suggestions?

  • Mt iPhone shows unread messages that aren't there! I have held down the power and home buttons until blank screen and apple icon appear only to find it is cleared, but within minutes the unread messages reappear! Please help

    Mt iPhone shows unread messages that aren't there! I have held down the power and home buttons until blank screen and apple icon appear only to find it is cleared, but within minutes the unread messages reappear! Please help

    Have you restored the iphone through itunes?
    You say the unread messages aren't there but then they appear?

  • My ipod is locked on the initial screen that appears black apple logo, and not respond to any button, please someone knows I do? PLEASE it is urgent

    My ipod is locked on the initial screen that appears black apple logo, and not respond to any button, please someone knows I do? PLEASE it is urgent

    Try to connect in recovery mode, shown here: iPhone and iPod touch: Unable to restore

  • On click of image button, table expanding and  minimizing

    Hi guys,
    on click of a button, a table should expand ,if we again click on button it should hide.
    i dont want to use tray.. because it will occupy entire line,
    visibility also wont work, because if we hide using visibility attribute, table will be invisible but table space still unused.
    u guys understand the query?
    i need same tray functionality in button.
    Regards
    Srinivas

    Hello Srinivas,
    this is strange. I thought if you set the VISIBILITY to NONE, then it wont occupy any space. Are you sure after setting the Table VISIBILITY to 'NONE' its still occupies UI space?
    BR, Saravanan

  • Is it possible to make the TOC expand and collapse icons larger?

    OR to have the TOC expanding and collapsing by usage of a self made buttons?

    You can use graphics that are slightly taller, but not wider.
    If you go to this page and take a look at the example named Supply Chain Management, you will see that I have used a different TOC expand image that is slightly taller:
    http://www.infosemantics.com.au/portfolio
    I had originally tried to use a larger image but it appears that Captivate limits the width.
    You can use the On Success action of a button to assign the value of the cpCmndTOCVisible system variable to 1 or 0 to open or close the TOC.  You can create a toggle action using a Standard or Conditional action to make the same button alternately open or close the TOC each time it is clicked.

  • My iphone wont let me recieve yahoo mail, tried switching off phone,taking account off and on cant get server button to move says on but is pale so cant move on or off!!!!

    iphone wont let me recieve yahoo mail, tried switching off phone,taking account off and on. did a restore on my phone the yahoo server says on but it is pale so you cant switch off or on.  my phone will recieve bt mail and internet not affected.  Any ideas on how to fix this?

    Hello there stidhambr15,
    I was researching the issue you are having and recommend a couple of things. First it might be a good idea to reset the device following iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting found here http://support.apple.com/kb/ht1430
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't quite get the device going again, I recommend restoring the device.
    iTunes: Restoring iOS software
    http://support.apple.com/kb/ht1414
    Might even be a good idea to turn off the phone, reseat the SIM card, and turn it back on.
    iPhone and iPad: How to remove the SIM card
    http://support.apple.com/kb/ht5163
    iPhone 4 (GSM model)
    iPhone 4S
    Cheers,
    Sterling

  • I open iWeb but the main window doesn't open/appear on screen. The little windows like the inspector and font windows appear. Can anyone help?

    I open iWeb but the main window doesn't open/appear on screen. The little windows like the inspector and font windows appear. Can anyone help?

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

Maybe you are looking for

  • Can I restore a iPhone back up from time machine and if so how?

    I have upgraded my iphone to IOS 7 this morning. However as I was backing up my phone, the cable I was using was removed from the macbook. I now have a iPhone back up that is corrupted, and when i try and restore my settings to the new IOS7 upgraded

  • Referenz on interface controller needed

    Hello, my COMPONENTCONTROLLER has an interface method which needs to be called outside the web dynpro component. To be more specific: this method needs to be called in an ABAP OO class, not in a using component. Therefore I want to transfer a referen

  • How can I create a master PDX that pulls from multiple other PDXs?

    I process aviation maintenance manuals, with the individual manuals having their own PDX. How can I create a master PDX that pulls from the individual PDXs? I have access to myriad versions of Windows and Acrobat so there's that...

  • Sad faced smiley on my Ipod Appears and telling me to go to Ipod.support...

    This is something i see for the first time, I have a sad faced Ipod on the screen of my ipod with an exclamation point that appears on the screen and its telling me to go to this site. Please HELP.....

  • Home Phone

    I'm having issues with my home landline.  When a call comes in I have to let it go to voicemail because if I answer it the call disconnects.  If I let it go to voicemail the caller is able to leave a message.  We can call out on the phone without any