Absolute noob needs help in referencing and displaying calculations

ok so i went through the tutorials, and decided to bite the bullet and come here. i am brand new to this, and the tutorials just confuse the hell out of me. So, all i want to do is i want to make a simple calculation of a number typed into a textfield, and display the result in a static text field if possible. Also, when i tested my program just to have a look, i couldn't type anything into the textfield. hehe, sorry but a noob is a noob :p
so basically can someone explain to me, or show me in a code sense how to set an object as a variable, such as textfield, and display result in a statictext ^^
cheers

To use a text field (as you put it, "set an object as a variable), you would do something like
{code}JTextField textField = new JTextField();{code}
at least in the graphics API with which I am familiar. Then you can get its data by using its getText() method, perform the calculation, and pass that to the static output textfield, potentially using your output field's setText() method
{code}outputField.setText(result);{code}

Similar Messages

  • Noob needs help with Logic and Motu live setup.

    Hello everyone,
    I'm a noob / semi noob who could use some help with a live setup using 2 MOTU 896HD's and Logic on a Mac.
    Here's the scenario:
    I teach an outdoor marching percussion section (a drumline and a front ensemble of marimbas and vibes). We have an amazing setup of live sound to amplify and enhance the mallet percussion. There is a yamaha PA system with 2 subs and 2 mains which are routed through a rack unit that processes the overall PA balance. I'm pretty sure that the unit is supposed to avoid feedback and do an overall cross-over EQ of the sound. Other then that unit, we have 2 motu896hd units which are routed via fire-wire. I also have a coax cable routing the output of the secondary box to the input of the primary box (digital i/o which converts to ADAT in (i think?)..?
    Here's the confusion:
    There are more then 8 inputs being used from the ensemble itself, so I need the 16 available inputs to be available in Logic. I was lead to believe that the 2nd motu unit would have to be sent digitally to the 1st motu unit via coax digital i/o. Once in Logic, however, I cannot find the signal or any input at all past the 8th input (of the 1st unit).
    Here's the goal:
    All of my performers and inputs routed via firewire into a Mac Mini running OSX and Logic pro.
    I want to be able to use MainStage and run different patches of effects / virt. instruments for a midi controller keyboard / etc.
    I want to be able to EQ and balance the ensemble via Logic.
    Here's another question:
    How much latency will I be dealing with? Would a mac mini with 4gb of ram be able to handle this load? With percussion, I obviously want the sound as latency free as possible. I also, however, want the flexibility of sound enhancement / modification that comes with Logic and the motu896hd units.
    Any help would be REALLY appreciated. I need the routing assistance along with some direction as to whether or not this will work for this type of application. I'm pretty certain it does, as I have spoken with some other teachers in similar venues and they have been doing similar things using mac mini's / logic / mainstage / etc.
    Thanks in advance,
    Chris

    You'll definitely want to read the manual to make sure the 896HDs are connected together properly. ADAT is a little tricky, it's not just a matter of cabling them together. Go to motunation.com if you need more guidance on connecting multiple devices. Beyond that initial hookup, here are a couple of quick suggestions:
    1. Open CueMix and see if both devices are reported there. If not, your connections aren't correct. Be sure to select 44.1kHz as your sample rate, otherwise you are reducing the number of additional channels. For instance at 88.2kHz you would get half the additional channels via ADAT.
    2. You may need to create an aggregate device for the MacBook to recognize more than the first 896HD. Lots of help on this forum for how to do that. Again, first make sure you have the 896HDs connected together properly.
    3. As for latency with Mainstage on the Mini, no way to know until you try it. Generally MOTU is fantastic for low latency work but Mainstage is a question mark for a lot of users right now. If the Mini can't cut the mustard, you have a great excuse to upgrade to a MacBook Pro.

  • Need help choosing processor and display for X240 please

    I'm about to purchase an X240 today or tomorrow and, after doing multiple forum searches and reading a 67-page X240 thread elsewhere, I would really appreciate some help choosing a processor and a display. If it makes a difference, I've decided on:
    *Windows 7 Pro 64 bit
    *8GB of RAM
    *256GB SSD
    I intend to use the laptop for viewing/editing Word documents and Powerpoint presentations, streaming movies, and streaming recorded lectures. I'm not sure what lecture viewer/player my school uses yet, but I do know that it has options to play the lectures at accelerated speeds (1.5x, 2x, etc.) and that I will definitely need to use this feature. I'm not computer literate enough to discern whether the processor type has any effect on this. I will use an external drive if I need to download and save any lectures. I also plan to do some infrequent and basic photo editing with Windows Photo Gallery and MS Paint. I'm willing to pay extra for a smoother/faster experience, but I don't want to go with the i7 processor if it's overkill for my purposes or if there are other significant trade-offs besides price.
    As for display, I'm torn between the regular HD (1366x768) IPS Non-touch, regular HD IPS Touch, and FHD IPS Touch.  Re: HD vs FHD, I've been using a 1280x800 13.3" non-IPS display for the last 6 or 7 years, and I'm pretty happy with it except for the limited viewing angles. Wouldn't regular HD on a 12.5" screen be a step up in resolution? A lot of the reviews of the regular HD on the X240 express disappointment with the "low" resolution, but I don't know if it's really that bad, or if people just have much higher expectations/standards than I do. I'm leaning towards regular HD because my glasses are so strong that increasing the sharpness of what I see also has the side effect of making things appear smaller (minimization error), so I'd probably have to mess with text/DPI scaling if I went with FHD, which isn't a perfect solution from what I've read. I'd only consider getting a touch version if I need FHD (since it doesn't come in non-touch), or if it somehow makes the HD display sharper or more vibrant--I have no intention of actually using touch features.
    Apologies for the length, and thanks in advance for any advice! :-)

    Actually I have been doing further research and I personally would either go with the 2.6GHz NON RETINA MBP or cough up the cash and go all out on a 2.6GHz RETINA MBP and upgrade the RAM to 16GB  and upgrade to 768GB Flash storage, I am a student as well so will get a discount which will help.
    My fears are that if I get the Retina model I will not be able to upgrade it even further, I want to keep the computer for at least a good 5 years, during those 5 to 8 years will the current upgrades be enough to keep up with the top games and programs etc? Also I have read that repairing the Retina display model is very diffcult  and it can malfunction commonly, so I am guessing I should get apple care on top of it just to be sure with this particular model?
    I am assuming that they they will bring out the new models out next year and all the chinks and bugs of the current Retina model will be fixed so to speak, of which I have read there is a few... Would it be worth buying the NON RETINA MBP and then selling and upgrading to an improved RETINA MBP model next year?
    Finally if i back up my files on a hardrive would I have to use the USP SUPER DRIVE to install files onto the RETINA MBP or can i directly do this without the USP SUPERDRIVE?
    Thanks

  • Noob needs help - PDF Fails to display - Only black screen

    Hi,
    I am new to FB. I was tasked with finishing up an desktop application that someone else started. They were using FB 3.
    I got the trial of FB 4.5 and imported the project. Then started the process of learning FB. I am working on a Mac.
    I got the UI fixed and a few bugs. Then exported a release build. Ran it on windows all seemed fine except for display a few PDFs.
    The PDFs all display fine on my Mac, just not on Windows. I searched all over for some clue as to what is happening. I even tried installing the latest Adobe Reader, still no change,
    The code that displays the PDFs couldn't be more simple:
    <mx:HTML x="10" y="10" width="100%" height="100%" location="appen/c5awwa.pdf" borderStyle="none"/>
    The Parent is:
    <mx:Canvas label="AWWA Standard" width="100%" height="100%" borderStyle="none">
    And whos parent is:
    <mx:TabNavigator width="100%" height="100%" borderStyle="none">
    The top level, 2nd line in files is:
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"  width="100%" height="100%"   xmlns:local="*">
    So the order is:
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"  width="100%" height="100%"   xmlns:local="*">    
         <mx:TabNavigator width="100%" height="100%" borderStyle="none">
              <mx:Canvas label="AWWA Standard" width="100%" height="100%" borderStyle="none">
                   <mx:HTML x="10" y="10" width="100%" height="100%" location="appen/c5awwa.pdf" borderStyle="none"/>
    I did notice that the canvas should not be used in favor of a BorderContainer or a Group.
    Since being totally new to this, I figured I'd get it working before I tried to chage the containers. I looked at doing that but didn't have the time to figure it out as I have a deadline, the 14th.
    We plan on buying this as we want to turn the app into a mobile app also.
    If it means anything her is the apps declaration (not sure that's what its called, the 1st line:
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
                                                                                                                            xmlns:local="*"
                                                                                                                            width="916" height="850"
                                                                                                                            backgroundColor="#EAEEF1" borderColor="#FDFDFD"
                                                                                                                            creationComplete="init()" horizontalScrollPolicy="off" verticalScrollPolicy="off" layout="absolute"
                                                                                                                            >
    If anybode has a clue, please point me in the right direction.

    I don't have any problem displaying those PDF files with Safari on either my iPad Air 2 or iPhone 5 which are both on iOS 8.1.2.
    Perhaps the problem is dependent on whatever else you are doing in the browser.

  • Flash noob needs help with simple and easy question on animation

    sorry if this is completely obvious, but Im having trouble and cant start my project until I figure it out. Basically whats happening is I create two keyframes (1 on frame 1 and the other on frame 10) on my mouth layer. In the first frame its normal and on the 10th frame its a different shape. But when I go out of that layer and into the previous layer overview (if that makes any sense), the change isnt there. Frame 1, all the way to frame 10, looks like frame 10 did on the mouth layer. Shouldnt the change be saved on the previous layer overview and shouldn't I be able to see the mouth change shapes? I havent ever had this problem so am i missing something? If this doesn't make any sense, I can provide some screen caps to visualize to you guys what I'm going off about.
    Thanks.

    You could be doing any number of things wrong. If the artwork on frame 1 is different from the artwork on frame 10, and each of these frames is a keyframe in the same layer, did you set a tween on the keyframe in frame 1? If the art is drawn directly to the stage in each keyframe, you should be using a shape tween. If the art in each keyframe is a symbol, then you should be using a classic tween in the first keyframe. In either case you can view the animation by dragging the playback head across the timeline, or, use the play button at the bottom of the timeline window.
    When you talk about the "previous layer overview", are you talking about moving from the editing window for a movieclip to the main timeline? If this is the case, then, if you edit a movieclip that is on the main timeline, you should see result of that edit when you play the main timeline. Or is it something else that you are doing?
    When you first start up Flash, there is a menu that lets you select what type of file you want to create. There is also a third column labeled "Learn". You may want to spend some time going through those tutorials.

  • Need help with date and time calculations please

    Hello there.. Im stuck, and im hoping someone can help..
    Working on a list to manage and track PTO.  User completes PTO request form,
    Fields
    Name
    Start Date (with time)
    End Date (with time)
    Total Number of Days/hours requested: (calculation)
    Full Day: (Yes/No)
    ok business need
    user has the ability to request a certain number of hours as opposed to a full day.
    After searching around on google. I found this calculation to help me figure out how many BUSINESS days being requested.
    =IF(ISERROR(DATEDIF([Start Date],[End Date],"d")),"",(DATEDIF([Start Date],[End Date],"d"))+1-INT(DATEDIF([Start Date],[End Date],"d")/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End
    Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End Date])=7),1,0))
    This works great as long as its a [Full Day]="YES", displays results in column labeled Number of days
    now if [Full Day]="No", displays results in column labeled Number of Hours
    BUT this is my issue (well part of it) it calcuate the correct number of hours.. but puts a "1" in "Number of Days" why.. dates have not changed.. I think Its something with the above calculation but I could be way off.
    the end result is I need number of days to concat with number of hours 
    i.e 1 full day 4 hours  1.4
        0 full day 5 hours  0.5
        1 full day 0 hours  1.0
    so that the total can be deducted via workflow.. from the remaining balance in a tracker. (seperate list) 
    Any angels out there??

    Posnera-
    Try changing time zones and see if the travel itinerary times change.
    Fred

  • Need Help in installations and connecting displays. Please!

    Hello Everyone,
    Need Help in installations and connecting displays. Please!
    Im planning on installing in a cafe shop : (Store Self improvement)
    4 TV's (can be  Built in Wi-Fi) Store menus
    2 touch screen tablets.  To be use as Emenu (digital Menu)
    1 60' TV ( Built in Wi-Fi) as Entrainment displays and in store advertising
    What do I need to organize my project and make it looks cool and how to manageand controll all of the displays TV.

    TNSTAAFL
    I DO NOT work for Best Buy, Geek Squad and any way affiliated with them. I am a self-employed repairman. I specialize in TV's and desktop computers. I do not take sides. If BB is wrong I will say so. If you are a moron with a false sense of entitlement, then I will tell you.

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • Need help to import and syncronize HCM pagelets with Interaction Hub, how can I do that?

    Hi,
    I need help to import and synchronize HCM pagelets with Interaction Hub, how can I do that? The default page "Select Remote Content" of the WorkCenter "Unified Navigation WorkCenter" is not working as well, when I run the import/sync button I get the following error message:
    Integration Gateway: General Connection Failed (158,10836)
    This error is thrown when there is no valid response.
    Possible errors include:
    Bad gateway URL
    Sync Service Timeout set and Service actually timed out.
    Java exception thrown - Check Application Server for possible Java exception

    Do you have integration configured between the two systems?  It sounds like you don't from the error.  Here is a walk-through on setting up Unified Navigation although it assumes you have integration already working.  If you haven't done that, it's documented a hundred different places.
    http://remotepsadmins.com/2013/03/04/peoplesoft-unified-navigation-with-peoplesoft-applicatations-portal-interaction-hub/

  • I need help in downloading and installing a previously purchased version of Photoshop Elements 12: AD012822594 1057-0247-4177-3303-6451-8067  or   1057-0904-6949-7119-8323-9165

    I need help in downloading and installing a previously purchased version of Photoshop Elements 12: AD012822594 1057-0247-4177-3303-6451-8067  or   1057-0904-6949-7119-8323-9165

    Please do not share serial numbers  or Order numbers on Forums . Serial numbers and order numbers  are very confidential.
    You can only share serial number with Adobe Customer support staff.

  • I need help in downloading and installing a previously purchased version of Photoshop Elements 12: Serial number removed by moderator

    I need help in downloading and installing a previously purchased version of Photoshop Elements 12: <Serial number removed by moderator>

    Hi There,
    Kindly try: Troubleshoot installation | Photoshop Elements, Premiere Elements | Windows
    Thanks,
    Atul Saini

  • I need help from chile and use a language translator to write and not turn my iphone4

    I need help from chile and use a language translator to write and not turn my iphone4

    http://support.apple.com/kb/TS3281       
    Not turn on

  • Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for

    Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for assistance!

    That's going to be a ridiculous waste of money and energy.
    First of all, the current ATI drivers don't support multiple GPUs, so at the moment even a single 4870X2 would be only a 'normal' 4870 (which is quite a speed beast already). GFX drivers evolve rapidly, so things might look different next month, but when it comes to Linux and hardware there's one Golden Rule: stay away from the newest stuff and wait for proper support to get coded.
    I also wonder what power supply could possibly cope with the differences between idle and full load; that's way beyond 400W. But then, I'm one of those "quiet&green" types where >100W idle is already a bit much.
    I kind of understand that you want to get it done and not worry about hardware for the next 10 years or so, but that's simply not how the hardware world works and never did. At least not for the average consumer.

  • I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    We need more information. I'm not sure what you mean by both Lion and iCloud have never worked.

  • HT1338 Need help locating where and how to update Mac OS-X 10.6.5 to the latest Mountain Lion Software...thanx John

    I need help locating where and how to update Mac OS-X to Mountain Lion.....Thanx....Jay

    First update your 10.6 version to 10.6.8 from the software update under the Apple Menu.
    This will add direct access to the Mac App store via a new application.
    Now launch the App Store from your Applications folder - Its the new icon a letter A formed from a ruler pencil and pen on a blue circle !
    Once launched you need to add your iTunes account details or create an account add payment details etc...
    Sign in purchase download and follow install processes to upgrade to 10.8 Mountain Lion.
    OH and to be safe BEFORE you install backup your current system to an external drive !

Maybe you are looking for