public void addScreenMenus ( ) { AppletScreen appletScreen = this . getAppletScreen ( ) ; if ( appletScreen != null ) { ScreenField menuBar = appletScreen . getSField ( 0 ) ; if ( ( menuBar == null ) || ( ! ( menuBar instanceof SMenuBar ) ) ) { if ( menuBar instanceof SBaseMenuBar ) menuBar . free ( ) ; // Wrong menu new SMenuBar ( new ScreenLocation ( ScreenConstants . FIRST_SCREEN_LOCATION , ScreenConstants . SET_ANCHOR ) , appletScreen , null , ScreenConstants . DONT_DISPLAY_FIELD_DESC , null ) ; } } }
Add the menus that belong with this screen .