×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Question How to hide/remove title bar of LWUIT form?

    Hi,

    I try to hide the title of a LWUIT form:

    Code:
    Form f = new Form("");
    f.getTitleComponent().setVisible(false);
    f.getTitleArea().setVisible(false);
    But it still shows the title bar when I test it on Nokia Asha 305 emulator.

    Can anyone please help me? Thanks so much.

  2. #2
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: How to hide/remove title bar of LWUIT form?

    Hi ducngo,

    Try the following code:

    form.getTitleArea().setVisible(false);
    Regards,
    Harsha

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: How to hide/remove title bar of LWUIT form?

    Hi harsha,

    As in my first post, I do this but the title is still visible.

    Thanks.

    Quote Originally Posted by harsha921 View Post
    Hi ducngo,

    Try the following code:

    form.getTitleArea().setVisible(false);

  4. #4
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    Re: How to hide/remove title bar of LWUIT form?

    Quote Originally Posted by ducngo View Post
    Hi,

    I try to hide the title of a LWUIT form:

    Code:
    Form f = new Form("");
    f.getTitleComponent().setVisible(false);
    f.getTitleArea().setVisible(false);
    But it still shows the title bar when I test it on Nokia Asha 305 emulator.

    Can anyone please help me? Thanks so much.
    Check for the theme file there if you are using any image for title , try to remove the same from the theme . I guess this should resolve your issue. And in my apps i have done unless i set any title to form there wont be any title displayed.
    Regards,
    Venkatesh

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: How to hide/remove title bar of LWUIT form?

    I am not using any theme file.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    1,213

    Re: How to hide/remove title bar of LWUIT form?

    Hi,

    note that in full touch devices, by default the LWUIT application is run in normal canvas. Thus it shows the headerbar and backbutton from the platform. LWUIT app title / Form title is displayed in the headerbar. You can force the LWUIT application to run in full-screen mode by using the Display.getInstance().setForceFullScreen(true) method;

    import com.sun.lwuit.Display;
    ...
    public void startApp() {
    Display.init(this);
    Display.getInstance().setForceFullScreen(true);
    ...
    }

  7. #7
    Nokia Developer Expert
    Join Date
    May 2012
    Location
    Espoo
    Posts
    224

    Re: How to hide/remove title bar of LWUIT form?

    Hi,

    if you want to hide tittle bar only, but still show status bar then use object traits as below:
    public void startApp() {
    Display.init(this);
    Display.getInstance().setForceFullScreen(true);
    Display.setObjectTrait(Display.getInstance().getImplementation(), "nokia.ui.canvas.status_zone", Boolean.TRUE);
    ...
    }

Similar Threads

  1. How to append LWUIT List screen to a LWUIT Form in j2me?
    By pavanragi in forum Mobile Java General
    Replies: 1
    Last Post: 2012-08-06, 07:01
  2. Hide Title of Application
    By nair.shanker in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-05, 11:55
  3. How to hide the Application Title bar?
    By lozanbt in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-03-19, 15:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×