Easy problem - Hopefully!!

Problem with referencing a textArea from a child class.
Wanting to set the text of a textArea in the parent class , but getting a null pointer exception.
If any one has the time to look at my code that would be great. I can e-mail the code with slighty more about what i mean.
Cheers

public void setCurrentFloorDisplay()
     if (ArrayOfRequestedFloors[0] == 99)
//     LS.buttonInputText.setText( Name + " idol at floor " + currentFloor);
     outputText = (Name + " idol at floor " + currentFloor);
     LS.buttonInputText.setText(outputText);
     System.out.println(Name + " idol at floor " + currentFloor);
     else if (currentFloor > ArrayOfRequestedFloors[0])
          currentFloor --;
          System.out.println(Name + " has passed floor " + currentFloor);
when i try to reference buttonInput.setText(outputText); in the liftshaft class the below error message appears.
java.lang.NullPointerException
     at DestinationControl.setCurrentFloorDisplay(DestinationControl.java:101)
     at LiftShaft.setMoveLifts(LiftShaft.java:156)
     at ButtonInput.CheckInput(ButtonInput.java:209)
     at ButtonInput.<init>(ButtonInput.java:41)
     at LiftShaft.main(LiftShaft.java:69)
i've implemented super(); in the constuctor of this child class, still doesn't work

Similar Messages

  • Strange but probably easy problem

    Strange but probably easy problem...
    I have made two pages recently. One for a company and one for
    a game I'm making during my spare time. I have made them both in
    the same way with an html page for every side.
    The problem is that when it changes sides... On the first
    page I made it looks like it leaves the back ground graphic and
    just reload the text that has changed... this is how I want it to
    be. But on the second it loads the backgrounds's every time...
    These are the links... I hope someone understands what I mean
    1st page www.ardent.se
    2:nd page www.indylc2.com

    cjh81 wrote:
    > Strange but probably easy problem...
    >
    > I have made two pages recently. One for a company and
    one for a game I'm
    > making during my spare time. I have made them both in
    the same way with an html
    > page for every side.
    >
    > The problem is that when it changes sides... On the
    first page I made it looks
    > like it leaves the back ground graphic and just reload
    the text that has
    > changed... this is how I want it to be. But on the
    second it loads the
    > backgrounds's every time... These are the links... I
    hope someone understands
    > what I mean
    >
    >
    > 1st page www.ardent.se
    > 2:nd page www.indylc2.com
    >
    it's the same, but the first page loads faster than the
    second.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • My iPhone6 goes straight to voicemail when i'm not on a call, people get the "i'm on another call" message, is this easy problem to fix ?

    When people try to call me my iPhone6 goes straight to voicemail when I'm not on a call. People get the "I'm on another call" message, is this an easy problem to fix ?

    Contact your wireless carrier and ask them.

  • [EASY PROBLEM] Pausing only One Loop

    This is probably a very easy problem, but I am brand new to this LabView thing and after searching for a long while, I still have not found a solution.
    This is my task:
    "Write a VI that monitors a numerical control to see if the user has changed
    the number being entered. Whenever the user does change the number,
    your VI should make a normally green LED turn red for 0.5 seconds. Be
    sure your VI monitors the input frequently, not just every 0.5 seconds."
    My design is below. The problem is, when the number changes, the LED turns on, and the pause keeps the LED on for .5 sec, the number register pauses aswell. I DO NOT WANT THIS. As you can see, I added a second numeric to show me what the program sees the number value being. If the value changes faster than .5 sec, it doesnt register the change. This means (to me) that the wait is pausing both of the loops, when I only want it to pause the loop it is in.
    Is there a way to fix this?
    THANK YOU! <3

    Try this.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.
    Attachments:
    LED Colour Change.vi ‏13 KB

  • Odd import problem - Hoping for an easy fix?

    I imported a ppt presentation into kn, and, oddly enough, the presentation will not play. The play button is grayed out, and the slides do not show in the sidebar.
    http://www.pbase.com/image/89059667/original.jpg
    I've had no luck searching on this issue. Ny ideas as to what I'm doing wrong?
    Thanks,
    tjh

    I probably should have been a little clearer... I opened the powerpoint presentation in KN, and that's how the problem started. (After looking around, I can't find an "import" command, so I really couldn't have "imported.") Yes, I tried opening, not importing.
    Here's the weird thing; the slides in the side panel are flat, like lines. If I click on them, the slide shows in the main viewer window.
    This is on my MacBook, using Leopard 10.5.1.

  • A Challenging Litlle Problem - Hoping One of You Tech Wizards Have A Suggestion

    I've got a Linksys wireless system hooking up 3 PC's and a Mac to a WRT54G Router. All connections are wireless: the PC's are hooked up via WMP54g PCI adaptors and the Mac is hooked up via an WET54G Ethernet Bridge (connected to the Ethernet port on the Mac). Everything works great except every time I turn on Ethernet Bridge it knocks the Router offline and I have to reboot it. Once I reboot the Router, however, all the computers are again online. It really doesn't  take a whole lot of time to reboot the Router, it's mostly just a pain in the butt. So, I'm hoping one of you may have a suggestion about how to fix this little bug. I spent several hours on the phone with Linksys tech support setting this system up and they told me basically to just live with it (so did Apple when I called them). I'm hoping they're wrong.
    Thanks for any input you may have. 

    Easy option #1
    Don't turn off the bridge.  Simply leave it plugged in at all times and you should be fine. 
    Slightly less easy option #2
    Try changing the channel on your router.  Since the bridge is connecting wirelessly, interference is the only issue that I imagine would create a problem such as this.  Changing the channel will usually resolve interference issues.
    Let me know how this goes.
    David

  • TWO (easy) PROBLEMS

    I've got two problems with the Premier Pro, I would thank if somebody can help me..
    1) To begin, I want the photos in asequence to last 3 seconds (and not the default 5 seconds), but i'm able to change the duration only one by one.. and i'm working with more than 1000 photos!
    2) then, another problem of the same kind: When I select a certain photo, and it appears on the small screen (Sequence 01 of the Monitor..), the photo is much bigger than the frame, the center of the photo being seen alone, too zoomed. Too fix it in only one photo its easy(Effect Controls > Motion > Scale), but again, to fix the 1000 photos like that would take an eternity. Isn't there a way too change the scale in all the photos?
    Thanksss
    Tomas

    For the second issue, you can select all the photos on the timeline, right click and choose "scale to frame size." This will scale them all to frame size together.
    The timing issue is only solved as mentioned above, deleting all images, changing prefs and re-importing.
    Alternatively, you can drop your photo sequence into a new sequence and time-stretch downward to decrease the duration (of course, that will introduce other problems, like speeding up all transitions and effects you might have applied as well).

  • Problems hopefully sorted

    I have had problems woth my broadband connection on Wednesday and Thursday this week.  I had good connection in the morning until around 1 in the afternoon the either very slow or nill speed.  So I rang up and after they rang back I was told by India there was an outage near me.  So shut down for 4 hours this was at 7 at night on Wednesday.  So I did next morning good speed until 1 again thursday so rang up was told to reset hub by pin not switching my router off then on, so I did the seped increased a little then stopped.  So I was told that they would ring back at 20:00 that day.  Still waiting for the call, so I switched off my machine and tried my connection later it was ok, until this morning then speed down to zero.  So I switched off my machine and closed ,y modem and rang up a different number and was told that BT are doing something to the lines and people will get different speeds.  Why did they other section in India not know about it.  the message said to switch off modem/routers and machine/s wait for a few minutes then switch everything back on.  So far so good, hopefully my intermitten speens between 6700 and 0 have ended.
    Solved!
    Go to Solution.

    Hi Weirdwizard,
    Thanks for the post.  Is your broadband now working as it should be or are you still suffering from these drops in connection?  Please let me know if you are still having problems?
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • THIS WILL SOLVE YOUR IPOD UPDATE PROBLEM (HOPEFULLY...)

    I checked this out, did what he said, and it worked perfectly.
    GKE, "Ipod update freeze, firewire problem, possible fix for many.", 10:46am Oct 9, 2005 CDT

    Unfortunately, that didn't do the trick for me - a few more songs copied then previously, but then I got the 'Attempting to copy to the disk "xxx" failed. The disk could not be read from or written to' ....

  • Easy problem !

    Hello !
    My problem is that I want to write in a text file adding each time one line, under the linewritten before, but when I do it, the line I add is put juste after the line written before !
    How can I write each line under the one written before ?
    Here is my program
    FileWriter file3 = new FileWriter (CheminRepertoire + "/resultat.txt", true);
    Text = "La chaine " + '"' + chainearechercher2 + '"' + " est trouv�e dans le panel " + FichierEnCours + " .";
    file3.write(Text);
    file3.close();
    Another thing I'd like to do is looking if a text file already exists, if it exists, add lines in, if not, cerate it. Is there a class or a method for that ?
    Thanks a lot
    Lionel

    try the following:
    FileWriter file3 = new FileWriter (CheminRepertoire + "/resultat.txt", true);
    BufferedWriter bfTxnfile = new BufferedWriter(file3);
    String Text = "La chaine " + '"' + chainearechercher2 + '"' + " est trouv?e dans le panel " + FichierEnCours + " .";
    bfTxnfile.write(Text);
    bfTxnfile.newLine();Note that the second argument to the constructor of FileWriter, specifies that all writing will append if the file exists.

  • Have a crazy problem, hopefully someone can help!

    Hello all, this is my first post on these forums.  I have an interesting problem with my Blackberry Curve 8330, and should be a fun thing to troubleshoot.  About a month ago I dropped and broke my phone, paid $100 to Asurian (sprint insurance) and they sent me a new phone.  I used the Desktop Manager and copied over everything from old phone onto new phone they sent me.  Now here is where the crazy part comes in.  Whenver I'm at work, some of my keys dont work correctly.  It took me forever to pinpoint when it was happening, and for a while I thougth I was fixing it by removing battery and restarting.  But, here goes:  After I'm at work for about an hour, the trackball key when pushed types #*, the B key types 2 other letters, N types 2 other letters, M types 2 other letters, and Del key types 2 other letters.  I'm not at work right now so I dont know exaclty what those 2 keys are.  So anyways, I thought the phone they send me was wrong, and at that time I didnt realize it was happenign only at work and I thoguth i was fixing it temporarly by rebooting phone.  So they then sent me a replacement for that.  Copied everythign over onto new phone (2nd phone from Asurion).  And heres the crazy part,  while I'm at work, the same exact issue happens!  After I leave work, about 30 minutes later, the phone will resume normal functionality.  So, I thought maybe copying from the old phone to the new phone, maybe I had copied something bad and something got corrupted.  I completely wiped this phone, and sure enough, still does it while I'm at work.  I'm at a loss as to what to do here.  On both phones, while I'm at work when I press the trackball key to enter it types # *, and all the other disfucntional keys (b,n,m,del) t yped the exact same letters.  There is no water damage whatsoever, since for 14 hours a day the phone works just fine.  Then the 10 hours I'm at work those 5 keys don't work.  I'm not sure what to do here, since if Asurian sends me a 3rd phone I have a feeling it will do the same thing.  Any help/ideas would be greatly appreciated!  I'm also interested if anyone has ever heard of something simliar to this before.
    Thanks in advance for any help,
    Ryan Zimmerman

    How strange that things should only go awry at your work. The fact that the same thing happens on two different Berries, even after you wiped and installed a fresh OS on the last one, and all in the same place, makes it seem that it has to be something in your work environment causing the problem, perhaps some kind of electromagnetic interference? That's the only thing I could guess.
    BlackBerry Curve 8530
    OS: 5.0.0.937
    Carrier: Boost Mobile CDMA
    16 GB microSDHC card installed

  • Easy question hopefully.....

    I have an easy question but am having a mental block. How can I assign the value of 0.05 to restock? What I need to do is return a 5% restocking value added onto the item. Make sense?
    //Type.java
    public class Type extends Office // Start of public subclass Itemtype that stores office items color.
    private String color; //get string name
    private float restock; //get float value of restock
    private float item; //get float value of total items
    public Type(String color,float restock, float item)
    {  // constructor to initialize the fields
    this.color = color;
    this.restock = restock;
    this.item = item;
    public float getRestock()
    return (this.item * this.restock) + (this.item);
    } //end public subclass Type

    Don't crosspost. Too late this time, but don't do it again.

  • Lost Homeshare Icon...easy fix hopefully?

    Small problem. I inadvertantly said no thanks to the homeshare facility and the icons on the playlist dissapeared. how do i get them back please as I want to share the library on my daughters laptop upstairs?

    Sorted...found answer myself in Advanced menu dropdown!

  • Easy problem but usure how to fix...

    Ok, here's something that is really annoying me but I know it's probably easy to fix. So I have m audio and video tracks right? OK when I go to trim my video, the audio tracks will not trim at the same time like they usually do. So basically I have to trim the video then trim the audio everytime and it's driving me NUTS!
    Is there anyway to lock the video and audio tracks together so that I don't have to trim each one?

    Hi:
    Press Shift-L to change the Linked Selection status. Look in the manual for To turn linked selection on or off and you'll find detailed info.
    Hope that helps !
      Alberto

  • Help needed regarding easy problem

    Hi experts,
    This is the problem..
    When i ran my JSP, a servlets was created rite?
    Funny how?, The servlets that was created, automatically declared 'package _360Profiler;' at the beginning of the line.
    1. I already checked my javabean and there is no package being declared.
    2. In my JSP i declared this <jsp:useBean id="p" class="DisplayName" scope="session"/> (it did not declared 360 packages at all.)
    3. The files were saved on this path c:\tomcat\webapps\ROOT
    The error i get is displayed below :
    org.apache.jasper.JasperException: Unable to compile C:\tomcat\work\DEFAULT\ROOT\_360Profiler\dummy_1.java:56: Class _360Profiler.DisplayName not found.
    DisplayName p = null;
    ^
    C:\tomcat\work\DEFAULT\ROOT\_360Profiler\dummy_1.java:59: Class _360Profiler.DisplayName not found.
    p= (DisplayName)
    ^
    C:\tomcat\work\DEFAULT\ROOT\_360Profiler\dummy_1.java:64: Class _360Profiler.DisplayName not found.
    p = (DisplayName) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DisplayName");
    ^
    3 errors
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:484)
    Thank you any ideas or suggestion will be highly appreciated.
    Regards,
    Suwandy

    Error: 500
    Location: /360Profiler/dummy.jsp
    Internal Servlet Error:
    java.lang.UnsatisfiedLinkError: printName
         at X360_Classes.DisplayName.printName(Native Method)
         at X360_Classes.DisplayName.check(DisplayName.java:29)
         at _360Profiler.dummy_2._jspService(dummy_2.java:85)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:484)
    Well this is wat i get at the end of the whoile compilation of my JNI....:p
    any idea?

Maybe you are looking for