Noob question: call the new Menu screen

Hello.

I have two screens. The first is called myScreen and is defined in a class file called plotter.java. It works very well. It has a menu that also works.

What I want to do is to launch a new screen called windshield which is defined in windscreen.java. I tried to do it with the following menu item code, but it does not compile because it does not recognize the windScreen() method:

private MenuItem menuWind = new MenuItem("Set Wind", 1, 1)
{
    public void run(){
        pushScreen(windScreen());
    }
};

What I am doing wrong?

P.S. My apologies for the basicness of this issue, you can tell I'm new to the Java/BlackBerry development.

Try this,

Windshield wn = new windScreen();

UiApplication () .getUiApplication () .pushscreen (wn);

This will help u.

------------------------------------------------------------------------------------

Kudo press to say thank you to the developer.
Also, press accept it as a button when you got the Solution.

Tags: BlackBerry Developers

Similar Questions

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How do to call the BlackBerry menu form share an Adobe Air application?

    Hello

    I'm looking for a tutorial or demo code that describes how to call the BlackBerry menu sharing an Adobe Air based application.

    I found a tutorial of waterfalls for it - there's one for Adobe Air too?
    - http://bbcascadescode.tumblr.com/post/38998702671/invoke-share-for-bb10

    This is a screenshot of the Action menu:

    Advice welcome!

    Here you go:

    package com.lib.playbook.invocation
    {
        import com.lib.playbook.controls.List;
        import com.lib.playbook.pages.TitlePage;
        import com.lib.playbook.renderers.IconListRenderer;
    
        import flash.events.Event;
        import flash.events.IEventDispatcher;
    
        import qnx.events.InvokeEvent;
        import qnx.events.InvokeQueryTargetEvent;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.events.ActionEvent;
        import qnx.fuse.ui.events.ListEvent;
        import qnx.invoke.ActionQuery;
        import qnx.invoke.InvokeManager;
        import qnx.invoke.InvokeRequest;
        import qnx.invoke.InvokeTarget;
    
        public class InvokeSearchPage extends TitlePage
        {
            private var request : InvokeRequest = null;
            private var targets : List = new List();
    
            /////////////////////////////////////////////////////////////////////////////////////////
            public function InvokeSearchPage()
            {
                super();
                this.title = 'Search With';
                this.titlebar.dismissAction = new Action( 'Cancel', null, {id:'cancel'} );
                this.titlebar.addEventListener(ActionEvent.ACTION_SELECTED, ActionSelected );
    
                this.targets.cellRenderer = com.lib.playbook.renderers.IconListRenderer;
                this.targets.addEventListener(ListEvent.ITEM_CLICKED, TargetSelected );
                this.targets.rowHeight = 140;
                this.addChild( this.targets );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            public function filter( request :InvokeRequest ) : void
            {
                this.targets.removeAll();
    
                this.request = request;
    
                //trace( 'filter ' + request.mimeType );
                InvokeManager.invokeManager.addEventListener( InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                InvokeManager.invokeManager.queryInvokeTargets( request.mimeType, request.uri, request.action, request.targetOptions );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            private function TargetsFound( event : InvokeQueryTargetEvent ) : void
            {
                InvokeManager.invokeManager.removeEventListener(InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                //trace( 'TargetsFound' );
                var action : ActionQuery;
                var target : InvokeTarget;
                for each( action in event.actions )
                {
                    for each( target in action.targets )
                    {
                      this.targets.addItem( { data : target.target, label : target.label, icon : 'file://' + target.icon } );
                    }
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function TargetSelected( event :Event ) : void
            {
                if( this.targets.selectedIndex >= 0 )
                {
                  this.request.target = this.targets.selection;
                  InvokeManager.invokeManager.invoke( this.request );
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function ActionSelected( event :ActionEvent ) : void
            {
                switch( event.action.data.id )
                {
                    case 'cancel' : this.dispatchEvent( new Event( Event.CANCEL ) ); break;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList( unscaledWidth, unscaledHeight );
    
                this.targets.setPosition( 10, this.top + 10 );
                this.targets.setActualSize( unscaledWidth - 20, unscaledHeight - this.targets.y - 10 );
            }
        }
    }
    

    And the rendering engine:

    package com.lib.playbook.renderers
    {
    
        import qnx.fuse.ui.display.Image;
        import qnx.fuse.ui.listClasses.CellRenderer;
    
        public class IconListRenderer extends CellRenderer
        {
    
            private var icon    :Image = new Image();
    
            /////////////////////////////////////////////////////////////////////////
            public function IconListRenderer()
            {
                super();
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onAdded():void
            {
                super.onAdded();
                this.addChild( this.icon );
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onRemoved():void
            {
                super.onRemoved();
                this.removeChild( this.icon );
            }
    
            /////////////////////////////////////////////////////////////////////////////////////
            override protected function drawLabel(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.drawLabel( unscaledWidth, unscaledHeight );
    
                if( this.data )
                {
    
                    if( this.data.hasOwnProperty( 'icon' ) && this.data.icon != null )
                    {
                        this.icon.setImage( this.data.icon );
                        this.icon.setPosition( 10, 15 );//( unscaledHeight - this.icon.height ) / 2 );
                    }
                    else
                    {
                        this.icon.setImage( null );
                    }
    
                }
    
                this.label.x = 140;
                this.label.width = unscaledWidth - this.label.x - 20;
            }
        }
    }
    

    references com.lib.playbook our our inner classes, but you should get the approach to apply.

  • How to get rid of the new menu button on the right side of the toolbar

    Honestly, I don't know why the developers cannot offer new features that we can use or not, by choice. Instead, things are forced upon us.

    Could someone tell me please how to get rid of the new menu button on the right side of the toolbar?

    It doesn't seem to be an option to remove via the Customize Toolbars window.

    Thank you very much.

    CTR extension makes Firefox customizable menu button 3 bar, so you can drag this button in the palette to customize to remove it from the Navigation toolbar.

    Reload and stop probably combine only if you set the two buttons in the correct order (reload - Stop and non-Stop - Reload)

  • Question about the new Yoga 10 HD +.

    Hello

    A few questions about the new Yoga 10 HD + that I hope you can answer.

    I bought the former model, last year. Love the design and long battery life, but a few major questions made me return.

    • Somewhere that I've read that it can not read NTFS on USB so I guess that's the same thing with a NTFS formatted microSD card?
    • Can it read exFAT formatted microSD cards?
    • Anyone who has questions about the audio via bluetooth?
      (I know that BT is not exactly High End HiFi but the old 10 Yoga for some obscure reason - most likely a driver problem which nobody cared to fix - rang * very * worst with visibly distortion while both my phone and a Tablet noname cheap I have zero about fidelity - any of my devices bluetooth audio) I tried aptX or not)

    So to avoid buying it back it also I really I would like to see if I can get my questions answered before buy you.

    While I love the form factor and long term issues above are only two Mayor dealbreakers for me. Bad audio quality = no joy listen to spotify, local etc. MP3s. not of NTFS or exFAT = some great movies.

    My old noname android Tablet really could use an upgrade so I'm really curious it may be, or I should watch the competition and will be form factor and battery LIFE.

    Thanks in advance.

    EDIT:

    If it does not support NTFS or exFAT on microSD card have someone at - he tried ext3 or ext4?

    I mean with Linux Android root, it should be a no-brainer to support at least when it comes to royalties unlike NTFS or exFAT where it * might * have some trouble with Microsoft.

    I used a USB through a USB OTG cable. NTFS or exFAT have been recognized by the Tablet PC. FAT32 is seems to be the preference.

  • "Action folder missing from the new menu of windows Explorer"

    When you use a right click to view the "NEW" menu, there is nothing on file to create a new folder. The new folder in the folder window does not work either.
    Is - a can provide a fix for this problem?

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
  • How can I return the new Welcome screen

    My departure to the top of the homepage has changed the Muse CC 2015, after I've updated to the latest version. I used to get free templates I could use for starter sites. He worked for a while now it has changed to as if it were before the updates. One of the updates being the new Welcome screen. It seems very generic and plan as when Muse started first. Any suggestions would be greatly appreciated.

    You can download the files from here:

    http://www.musestarters.com/

    Thank you

    Sanjit

  • Disable the new Welcome screen

    Hello. Is there a way to disable the new "Welcome" screen when you start? It's pretty boring, I don't need to watch a video in service each time I open an Adobe application.

    This should help. Troubleshoot the screen of welcome in Photoshop

  • Hi I am currently subscribed to PS CC but I don't think I have the latest version.  I believe this because I do not get the new Welcome screen and no new feature as structure and color in the content aware patch tool.  I checked for you

    Hi I currently have a subscription to the CC PS, but I don't think I have the latest version.  I think this because I don't you the new Welcome screen and do not have new features such as the structure and color in the content aware patch tool.  I checked the updates and it tells me I have the current version.  I check in PS I version 14.2.1.  I also have CS6 installed on my PC, it could be somehow be do something or I'm doing something wrong.  Anyone have any suggestions.

    It's under 'find new applications '.  You must scroll down to see it.

  • Restore the menu of sites frequently used on the new tab screen but about: config has too many entries

    I went to about: config and browser.newtab.url and it is on: newtab but there are several lines of text changed under them and I'm afraid to change.

    Those who should be edited? I still don't have the menu on the screen of the new tab.

    MY PROBLEM IS SOLVED! I returned the comments: config page fact research newtab and entered in each row and right click and press "reset". One of them had the problem because NOW everything is back to the way it is supposed to be!

    Thanks for all your help!

  • on a game.when online, as I log it is ok.when I want that a location in the game.it back to the new login screen

    When I connect to this web site, it opens the game screen. When I then go to a different location in the game. It resets back to log in to the new screen.
    but it works fine on all other sites.

    URL of affected sites

    http://S3.travian.co.UK/dorf1.php

    "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
    'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

  • How can I transfer my data from Microsoft Money 2001 to a newer version? What we call the new version?

    I UNDERSTAND THAT MICROSOFT MONEY VERSI0N 2011 IS DECOMMISSIONED. I AM HAPPYTO UPGRADE TO A NEWER VERSION, BUT A QUESTION AS TO HOW I CAN TRANSFER ALL DATA ON MSM 2001 TO THE NEW VERSION. WHAT WOUKLD NEW VERSION BE CALLED

    original title: MISROSOFT MONEY VERSION2001
    original title: How can I transfer my data from Microsoft Money 2001 to a newer version?

    Hello

    Check in the Microsoft Money Forum.

    Microsoft Money - Forum
    http://social.Microsoft.com/forums/en/money/threads

    Microsoft Money Solution Center - suggests alternatives
    http://support.Microsoft.com/mny

    What is Microsoft Money Plus sunset
    http://support.Microsoft.com/kb/2118008

    BING - microsoft money replacement
    http://www.bing.com/search?q=Microsoft+Money+replacement&go=&QS=n&SK=&SC=7-27&form=QBLH

    Google - microsoft money replacement
    http://www.google.com/#sclient=psy-ab&hl=en&source=hp&q=microsoft+money+replacement&pbx=1&oq=microsoft+money+replacement&aq=f&aqi=g4&aql=&gs_sm=e&gs_upl=9978l11972l2l12926l12l1l0l0l0l0l467l467l4-1l1l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=dcc84c4c7dd2e143&biw=1024&bih=681

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Is there a navto: or goto: link to call the side menu?

    looking for call the retractable side menu with a button in the new 15 DPS.

    Not currently, no.

    Neil

  • Anyone else want to get rid of the words "Press to open" on the new lock screen?

    Is there a way to get rid of the words, "Press to open" on the new lock in iOS10 screen? I really don't need to be reminded every time how to unlock my phone, not to mention that I think that they look ugly.

    Tell Apple

    feedback line

  • I am not happy with the new menu bar. I made a mistake in the change. Want to use the button refresh or open a new tab when requested without

    I made a mistake some how. I'm not the best a computer news as the new avg with the research changes. I want to return my old menu bar. I want to be able to open a new tab without going through an open search window. I don't like new tiny 'file above it don't help me. I want the option to click the Refresh button bit. How to get back to what I had before?

    I don't know what happened to your menus and toolbars. Has this happened after an update of Firefox, or a change in your add-ons?

    (1) you can switch between the Firefox button orange with its abbreviated menus and the classic menu bar, by using the following text:

    ALT + v (open the menu Classic view) > toolbars > Menu bar

    (2) in the new tab, you wanted it is empty? Are there currently AVG research? If you want to get rid of the search for AVG, you probably have to disable to remove one or more modules from here:

    Orange Firefox button or classic menu Tools > Modules > category: Extensions

    Does make a difference?

    (3) the reload button is nestled at the end of the address bar, after the star icon and the drop-marker. If you prefer that your button to reload on the bar itself, you can do that using the personalization feature.

    ALT + v (open the menu Classic view) > toolbars > customize

    In order to avoid the button reload to slip into the URL bar, you can perform the following actions:

    • Move the button reload for the left side of the address box
    • Move another button between the address box and reload
    • Move another button between the reload and stop buttons
    • Reverse the order of the reload and stop buttons

    You can get as you wish?

Maybe you are looking for