Container does not (newbie question)

Hello

I am a beginner in programming (with experience in J2SE) blackberry. I can't get a simple app with only a container and three Richtextbox work...

Thank you for your help.

class TableListApp extends UiApplication
{
Public Shared Sub main (String [] args)
{
TableListApp app = new TableListApp();
app.enterEventDispatcher ();
}

TableListApp()
{
Build the screen.
pushScreen (new MainScreen());

}
}

class MScreen extends form {}
public MScreen() {}
Super();
setTitle ("my app");
       
VerticalContainer FullScreen = new FullScreen();
       
RichTextField txt1 = new RichTextField ("text 1");
RichTextField txt2 = new RichTextField ("text 2");
Txt3 RichTextField = new RichTextField ("text 3");
       
verticalContainer.add (txt1);
verticalContainer.add (txt2);
verticalContainer.add (txt3);
       
Add (verticalContainer);
}
}

Have I missed something or you push the wrong screen?

pushScreen (new MainScreen());

class MScreen extends form {}

I could be wrong I'm just as new as you prob bb programming.

Concerning

Tags: BlackBerry Developers

Similar Questions

  • Firefox does not open or does not (see/questions/964132)

    was Ok until recently

    Please include more information, such as your operating system (Windows?) and the version, more exactly what is happening when you try to start Firefox. The information provided in a recent Firefox crash report, if any, can also help. See Firefox plant - troubleshoot and prevent assistance fixing crashes under help in setting this crash and post any crash report IDs recently (they start with bp - )

    The title of your question, says "Firefox does not open or does not (see/questions/964132)" I have reviewed this issue and it was launched by another user of Firefox. /questions/964132? page = 2 # 477049 answer has a number of suggestions if Firefox does not start. Which have you tried?

    To see other possible solutions

    Note: A "clean and reinstall" was one of the suggestions/issues/964132. This means remove the Firefox application and then files by reinstalling Firefox since a new download, as explained at the stage of "Reinstall Firefox" in troubleshoot and diagnose problems in Firefox. So that allows you to start Firefox, but if the problem comes back after the computer restarts, you should make another "clean reinstall" and then resolve your plugins by disabling all, as suggested by the troubleshoot and diagnose problems of Firefox article.

  • graph XY on the TAB container does not update

    Hello

    I have attached a simple VI, and I understand why I see this behavior:

    When I run the VI then the first tab is visible (where the xygraph is located), I get what I expect: I calculate the offsets, and I redraw the graph with the property node.

    But if I run the VI during the second page of the TAB is visible, I get a wrong result, the graph does not the calculation of the compensation and modification on the chart. (Table gives zero element)

    This means that, if my graphic is in a TAB page which is not displayed, I can't use its property nodes?

    Thanks for the help!

    Are yous because this for any node property or specifically the sliders?  You see the same behavior if you do the invisible Grpah XY but leave on tab 1.  It seems that the properties of cursors do not work correctly if the XY graph is not visible.  I consider cela a bug.

    How do you determine the values of the cursor?  A user highlights them, or their calculation and setting in?  If hardset or calculated at a given time, store the values of cursor and use them instead of watching the cursor property.

    If the user selects the, use the structure of the event to trigger an event when the user releases the cursor.  Get slider right there, store them and use these values.

  • Number of features in the CONTAINER does not work

    Hi all
    I was working on a simple word processor for the local language using JTextPane and RTF. The program works fine in Netbeans. But the JAR file does not work. For example, the program should save on the hard drive but also to read the file. The JAR version does not work so that it works correctly in Netbeans. The JAR is created using Netbeans. Can you help me?

    Thank you.

    (1) we have no idea what class instance "editor" made reference.
    (2) always specify the character encoding when reading and writing the characters or you plan to use the encoding that may or may not support characters to work of characters by default. You can use OutputStreamWriter and InputStreamReader in order to be able to specify the character encoding. I suggest that you use "utf-8", given that it will work for all UNICODE characters.
    (3) your exception handling throws away most of the useful information. Most of the logging system to pass an exception without having to convert to a string.
    (4) Please use

     tags to make code readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • Centering the div 'container' does not not despite the good CSS coding

    In fact, it is the container in the container.

    It's been a while since I've posted, because I was without a problem for a long time (or at least have been able to resolve myself) to get a good idea of my problem, it is visualized here.

    I decided to put it online already because the problem is not necessarily so dire. Don't take away the fact he annoys me and is not just look right.

    This is an updated version of the language selection screen I used to have, where it all used to work perfectly. The div container only has a specified background color and within the container is another div 'container' that inherits all the images and buttons.

    The encoding is as follows:

    "< div id="container">".

    "< div id="langscreen">."

    "" < div id= "fclogo" > < img src= "images/Talenkeuze/nieuw/fclogo.png" width= "148" height= "102" / > < / div > "

    "" "" < div class= "dkbutton" > < a href= "dk/home.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image2','','images/Talenkeuze/nieuw/dkbuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/dkbutton.png" name= "Image2" width= "36" height= "36" border= "0" id= "Image2" / > < /a > < / div >

    "" "" < div id= "sebutton" > < a href= "is / index.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image3','','images/Talenkeuze/nieuw/sebuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/sebutton.png" name= "Image3" width= "36" height= "36" border= "0" id= "Image3" / > < /a > < / div >

    "" "" < div id= "nlbutton" > < a href= "nl/home.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image4','','images/Talenkeuze/nieuw/nlbuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/nlbutton.png" name= "Image4" width= "36" height= "36" border= "0" id= "Image4" / > < /a > < / div >

    "" "" < div id= "esbutton" > < a href= '/ index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/Talenkeuze/nieuw/esbuttonover.png',1)"> < img src="images/Talenkeuze/nieuw/esbutton.png" name="picture5" width="36" height="36" border="0" id="picture5"/ > < /a > < / div >
    "" < div id= "bitesnew" > < img src= "images/Talenkeuze/nieuw/applebitesnew.png" width= "840" height= "200
    " /> < / div >
    < / div >

    Some might say don't not to use the divs so much, and I might agree with them. The only thing is that this has been work best for me and my way of thinking (this using entire dreamweaver was a self-taught), and in the end, the results are generally the same. The CSS for the div in question is the "langscreen" div, and its exact codification is the following:

    {#langscreen}

    Width: 919px;

    margin-right: auto;

    left margin: auto;

    All the images that are on the page have been placed using absolute positioning. I guess that it is the main cause of my problem of centering, because CSS coding to center the div "langscreen" is correct, that I don't know a way around. Also, in the old version it Center, despite the use of absolute placement in the legacy divs.

    Any ideas would be great! Thank you in advance!

    Hello

    Set the div #langscreen relative position and it'll work.

    {#langscreen}

    Width: 919px;

    margin-right: auto;

    left margin: auto;

    position: relative;

    }

    David

  • ConverterCollection.contains () does not respect the contract

    Hello

    I am using an aggregator to see if the result of an aggregation is not empty. You can see the code below. In the aggregateResults(Collection results), the returned result is a ConverterCollection.

    When I call
    results.contains( Boolean.TRUE )
    This returns false. However when I change it by using the following:
                   for (Object object : results)
                   {
                        if (object.equals(Boolean.TRUE))
                        {
                             return true;
                        }
                   }
                   return false;
    This returns true. This should not give me the same thing?

    Here's the complete code aggregator.
         public static final class IsNotEmpty implements ParallelAwareAggregator, ExternalizableLite {
    
              private static final long serialVersionUID = 1L;
              public static final IsNotEmpty INSTANCE = new IsNotEmpty();
    
              @SuppressWarnings("unchecked")
              public Object aggregateResults(Collection results) {
                   if (results.isEmpty()) {
                        return Boolean.FALSE;
                   }
    
                   return contains(results) ? Boolean.TRUE : Boolean.FALSE;
              }
    
              private boolean contains(Collection results)
              {
                   for (Object object : results)
                   {
                        if (object.equals(Boolean.TRUE))
                        {
                             return true;
                        }
                   }
                   return false;
                   //             return results.contains( Boolean.TRUE );   --> this would return false even if there's a Boolean.TRUE in the collection
              }
    
              public EntryAggregator getParallelAggregator() {
                   return this;
              }
    
              @SuppressWarnings("unchecked")
              public Object aggregate(Set candidates) {
                   return candidates.isEmpty() ? null : Boolean.TRUE;
              }
    
    
              public void readExternal(DataInput input) throws IOException {
    
              }
    
              public void writeExternal(DataOutput output) throws IOException {
    
              }
         }
    I use coherence 3.4.2.

    Best regards
    Jan

    Hi Jan-

    The contains() method is implemented, but it delegate to the underlying collection. It uses the "down converter" to the value that you provide and it becomes the format used by the underlying connection:

    public boolean contains(Object o)
        {
        return getCollection().contains(getConverterDown().convert(o));
        }
    

    Unfortunately, no one expected the "step-down" deemed necessary; that is, it expected that binaries need to be converted to objects but not vice versa. If you check the return value of getConverterDown() of this ConverterCollection, you will find that it is a converter "null." This was noted as COH-2723, and will be fixed in the next version. your workaround solution is appropriate for now.

    Peace,

    Cameron Purdy | The Oracle coherence
    http://coherence.Oracle.com/

  • MAF 2.2.0 - Refresh container does not return to original position if incidental layout is used

    Hello

    As the title suggests the container update don't go back to original position if incidental layout is used.

    I have included a small sample project with the minimum required components to reproduce the bug.

    Find the project here:

    https://www.dropbox.com/s/hy5jdce4w5qc2b6/refreshTest.zip?DL=0

    Is there any workaround for this problem, or is this something that will be fixed in a next version of MAF?

    Kind regards

    Ognjen

    Hey,.

    This is fixed in the latest version of MAF - 2.2.2.

    Kind regards

    Ognjen

  • FieldChangeListener for AutoCompleteField does not work - question

    I just took a default value AutoCompleteField and set a fieldChangeListener, but debugging found that fieldChanged (...) never gets invoked. This has happened to 7.0 and BB 5.0,6.0. Anyone know why?

    However, FocusChangeListener work.

    I mean you can overwrite
    http://www.BlackBerry.com/developers/docs/7.0.0api/NET/rim/device/API/UI/component/AutoCompleteField... int)

  • ScrollPane and container, does not


    are also performing a method scroller.update () after each image has loaded? If the sizing of a child within a scroller changes during execution, it should be called so that the wheel for updating its ability to scroll.

  • Netflix videos and YouTube does not play question BOUNCING, error: W8157-80004004

    * Original title; NetBook Windows 8 struggling to play apps.

    My netbook will sometimes play Netflix and YouTube and sometimes won't and say that there are elements of multimedia windows prevents playback. The error code is W8157-80004004. Help, please.

    Hello Lisa,.

    1. what happens when you try to play YouTube videos?

    2. do you get an error message?

    3. what web browser are you using to play YouTube videos?

    4. you use Office internet explore or modern interface internet user explore?

    5. have you made changes on the computer before this problem?

     
    For the Netflix error, refer to the article below:
     
    Error reading of Netflix W8157 80004004
     
    Please answer with the information required to help you further on this issue.
  • CS6 trial does not start question

    I just down load a free version of CS6 demo and I got an error message "Setup has been misconfigured", do I have to handle another program to open it or do I have to remove the trial version and start over?

    There are known issues with Adobe Download Assistant:

    Section of problems known to troubleshoot Adobe Download Assistant - http://helpx.adobe.com/creative-suite/kb/troubleshoot-download-assista nt.html #main_Known_issues.

    You can also download products from the following location:

    http://prodesigntools.com/Adobe-CS6-direct-download-links.html

    (1) you must stay on the page of the trial of Adobe for each product that you download. You must be logged in.

    (2) copy / paste link 1, link 2 for files you download Prodesigntools on the page of the trial from the Adobe address bar and press to enter.

  • Absolute layout does not work in container

    I'm trying to center the content of a label inside a container using html by using the following code:

    import bb.cascades 1.0
    
    Page {
        id: listPage    property NavigationPane navig
        Container {
            Container {
                preferredHeight: 130
                preferredWidth: 768
                background: headerBG.imagePaint
                layoutProperties: AbsoluteLayoutProperties {
                    positionX: 0
                    positionY: 0
                }
                Label {
                    id: title
                    text: "

    List Title goes in here!

    " textStyle.fontSize: FontSize.Large textStyle.color: Color.White preferredWidth: 448 layoutProperties: AbsoluteLayoutProperties { positionX: 160 positionY: 0 } } } attachedObjects: [ ImagePaintDefinition { id: headerBG imageSource: "asset:///images/texture.png" repeatPattern: repeatPattern.XY } ] }//End of top container }

    It worked perfectly at first, until I inserted another container after one that contains the label. But now after that I removed the second containing the text is always aligned with the upper left corner.

    The outer container does not seem DispositionAbsolue. There StackLayout by default, so her children AbsoluteLayoutProperties are ignored:

    layout: {DispositionAbsolue}

    The internal container has no DispositionAbsolue.

    But you really need to DispositionAbsolue in this situation? It will not work properly if the user changes the font size in Control Panel, for example. It is best to use relative layouts when possible.

  • Question adding a manifest and signature AutoVue 21.0.0 pots - sample application does not load recently signed jars

    Hello

    With previous versions of AutoVue (20.2.2 and 20.2.3) we re-signed the jogl.jar jvuejar, gluegen - rt.jar, adding a file manifest, including the customer domain settings, for example:


    --


    Manifest-Version: 1.0

    Trust-library: true

    Permissions: permissions everything

    Application name: Oracle AutoVue

    CodeBase: *. customer.com

    Application-library-eligible-Codebase: *. customer.com

    The appellant eligible Codebase: *. customer.com

    --


    This means that customer has no need to make changes to java there are deployments because the jars contain the appropriate security settings.


    We have a signing certificate purchased, and I used JDK 7 to sign in the past without any problem for many different clients.

    However, with Oracle 21.0.0, this seems not work, when I add parameters to the manifesto and sign jvue.jar, jogl.jar and gluegen - rt.jar using JDK7 or JDK8, in the AutoVue sample I see a "General Exception: name: Jvue, ClassNotFoundException: com.cimmetry.jvue.JVue.class', in the journal of the Java Console:"

    --

    Java plug-in 11.72.2.15

    With the help of 1.8.0_72 - b15 version JRE Java hotspot Client VM

    Home Directory user = C:\Users\PaulT

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

    c: clear console window

    f: finalize objects on the finalization queue

    g: garbage collection

    h: display this help message

    l: dump classloader list

    m: print memory usage

    o: trigger logging

    q: Hide console

    r: reload the policy configuration

    s: dump system and deployment properties

    t: dump thread list

    v: dump thread stack

    x: delete the cache of class loaders

    0-5: set the level of trace to < n >

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

    Ignored the exception: java.lang.ClassNotFoundException: com.cimmetry.jvue.JVue.class

    --

    Jar files are definitely in the right place because if I type the url to the jar file in the browser (IE), then it offers to download (save or open).

    I am due on a customer site next week and need to know how to sign the jars because they won't want the deployment rules sets, etc.

    Thanks in advance,

    Paul

    The current thread and the information it contains, does not, in any form that Oracle authorizes, supports or recommends Oracle AutoVue IP re-jolts

    Seriously, we advise you to read and follow the Oracle license agreement

  • iPhone 5 c storage does not?

    I just got an iPhone 5 c with 8 GB of storage. I downloaded two applications so far, but does not match my storage. When I go into settings > storage and use iCloud > manage storage, it shows me how much storage, I used, but the amount each app contains does not match. I use iOS 9.3.4. Here's what he said:

    Used: 1.8 GB

    Available: 3.2 GB

    Pokémon GO: 187 MB

    Instagram: 31.3 MB

    Contacts: 5.0 MB

    Photos: 4. 3 MB

    Mailing address: 2.2 MB

    The rest of the applications are for little that they do not add anything at all. Why my phone say I used 1.8 GB when I have not yet used 500 MB? Any help is appreciated, thanks! Also, sorry if this is the wrong tag, I haven't posted here before!

    The operating system. iOS takes a storage space on the device.

  • miniature container do not respond?

    So this is my first test with muse sensitive design elements. So far, ok, I can get my redesign of website databases. Now, I am working on getting my slide show of rebuilt portfolio. I wanted to go with a miniatures, but the container does not resize, and the option is not available. Am I missing something obvious, or if it was not included in the adapted devices?

    The thumbnails are not fluid yet. But you can resize breakpointwise.

Maybe you are looking for

  • iPad smart pro keyboard cannot type Chinese Wu Bi

    There are a large number of people in China get use to type Chinese Wu Bi entered, however, IOS do not support Wu Bi at all. Although there are a lot of app contribution is Wu Bi, we cannot use any kinds of keyboard to use Wu Bi even iPad keyboard sm

  • Split 13 X 2: BIOS F22 for Split X 2 does not work

    I just noticed that bios f.22 was released for the X 2, so I went to the for install, and everything seems fine until it will restart the PC to Flash the bios, and it still restarts just the PC in Windows, on the F.20 bios. Don't know what informatio

  • HP Officejet Pro 8610: Blue/gray violet and pink print

    I've been printing for centuries with new cartridges and now all of a sudden the printer prints my blue/black purple and pink when I print in color.  Only one scale or gray black is always very good.  Help, please.

  • Vista for xp - SP3 Presario CQ60 200 (Z?) VIDEO worse.

    I just despise Vista so Im hoping to convert my XP - SP3 machine. The back of my computer says Cq60 200. The front says Presario CQ 60 This order confirmation says Your custom Compaq Presario CQ60Z is estimated to be built by January 21, 2009. The de

  • Modbus Help!

    Hello First of all, I get a time-out error 6101 when I run my code, I read the threads and I always get this error message. Maybe it's the data I'm typing that I don't know. My camera is an ADAM 4024. Maybe I need help with my setup. I'm trying to co