Assign a string to a jtextfield...how?  refresh my memory

The following line:
jtfFilename = jFileChooser.getSelectedFile().getPath();
gives me this error...
Exercise17.java:71: incompatible types
found : java.lang.String
required: javax.swing.JTextField
jtfFilename = jFileChooser.getSelectedFile().getPath();
I'm just trying to stick the path value I grabbed into the jtextfield for its value......how do u do that again?
I have import javax.swing.JTextField; in my code

Ahhhhh, that's the ticket.... I could not find that in my notes, I was flipping thru a bunch of exercises trying to find it......THANKS! :-)

Similar Messages

  • Can i assign a string to a variable in User Exit?

    Friends,
    I would like ot write a User Exit that will assign a string to a variable depending on the value of the other variable.
    I just wanted to know if such a code is valid:
    When zimport
    IF i_step = 2.      " read user input parameter
            l_s_range-low = 'Important'.
         APPEND l_s_range TO e_t_range.
        ENDIF.
    If so, my second problem is that in the variable exit definition with processing Customer type you need to identify a "Dimension" for the variable. Non of them really fit, because the value is a string so why convert it to another format?
    Your input is appreciated in advance,
    Xibi

    hi Xibi,
    say you have var1 and var2, var2 will be filled depend on value of var1, you can write something like following.
    please be remind that var2 is not marked as “ready for input” and is set to “mandatory variable entry”.
    hope this helps.
    The second step (I_STEP = 2) is called after the processing of the variable pop-up. This step is called only for those variables that are not marked as “ready for input” and are set to “mandatory variable entry”.
    WHEN 'var2'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'var1'.
            CLEAR L_S_RANGE.
            if LOC_VAR_RANGE-low = ...
              L_S_RANGE-LOW = 'IMPORTANT'.
            else.
              L_S_RANGE-LOW = '....'.       
            endif.
            L_S_RANGE-SIGN   = 'I'.
            L_S_RANGE-OPT    = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDLOOP.
        ENDIF.

  • Can't assign a string value to a member of type TEXT in Calculation Manager

    I can assign a string value to that member of type TEXT using a run-time prompt of type StringToNumber.
    Example: "My Text Member" = {string_rtp};
    However, I need to accompllish the same function without using a run-time prompts.
    I have a planning application and I know that text along with all other non-numeric
    values are stored on the relational side in the planning application schema.
    It seems reasonable to assume that if this can can accomplish
    with a run-time prompt that I could do also do it without a run-time prompt.
    What appears to be lacking is a function like:
    "My Text Member" = @StringToNumber(<String Literal>);
    Clearly, this is already being done "under the covers" for run-time prompts. If
    would appear to be a minor enhancement to expose such a function to developers.
    NOTE: I suppose you would also need to add new syntax/function to identify a string
    literal from say a member name. I'm wondering if this is the more difficult challenge
    from a product perspective????

    When executing a Calculation Manager rule in Planning, the run-time prompt (RTP) is populated by looking up the outline information present in the relational Planning application database. If the RTP is of type TEXT, the strings displayed in the member select are from the from the relational Planning application database too. Subsequently when executing the Rule, the RTP's value is in fact the record ID (a number) which is then saved into the appropriate intersection in Essbase.
    You need to bear in mind, the Rule is executed in Essbase. If Essbase needs to "write" a text, it would then need to connect to the Planning relational database to create a new record. The newly created record ID then needs to be feed back to Essbase, in order to store it in the appropriate intersection.
    What you are suggesting, comes with a big overhead causing Essbase and the rule to slow. Thus, the disadvantages outweighs the advantages.

  • Can I Index a String with Quotes. How is Men's indexed

    HI!
    I want to know that when i index a column which has a string with quotes how is it indexed ie., if there is a string "men's" then how is this indexed? because i am not able to search for men's,and when i search as "men_s" nothing is returned how to do that?
    regards
    JD

    Use the printjoins lexer attribute -
    http://technet.oracle.com/doc/oracle8i_816/inter.816/a77063/cdatadi5.htm#35052

  • Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    You can use a free alternative like openoffice for this:
    http://www.openoffice.org/porting/mac/
    or libre office which is a fork of open office:
    http://www.libreoffice.org/

  • My assigned email address is wrong.  How do I change it?

    My assigned email address is wrong.  How do I change I?

    Log into your Apple ID to view or change it there. https://appleid.apple.com/

  • Mr . Steven  By ADF : how refresh country list with city list

    Mr . Steven By ADF : how refresh country list with city list
    if you have combo box(in Jdev : single select list)
    two list ==> first one : country list
    ==> second one: city list
    when select country from (country list) i want the city
    list refresh and have only the city that in selected country .
    note :
    countryName and cityName are attribute in a view that have two table (country_table , city_table)

    Hi, I've tried this solution, the only problem is that my navigation controls are inserted in a form that is linked to a table.
    Let me give you an example:
    I have a form binded to a table say Problem
    and in that form i have to linked drop lists named Category and Sub category.
    The problem is that if I use the example, there's no way to link my problem field with the navigation control.
    The other problem is that when I change the value of the Category list, it validates the form and I do not want it to be validated.
    Can you help me.
    Thx

  • Please refresh my memory re: NR in Bridge previews

    A major senior moment leads me to ask for help in refreshing my memory regarding the Noise Reduction applied in ACR not being reflected in the Preview panel within Bridge after clicking the Done button in ACR.
    My recollection was that Noise Reduction and Sharpening applied to a raw image in ACR are not reflected, or at least not fully reflected in the Preview panel nor in the thumbnail in the Bridge Contents panel.
    I've been trying to do a forum search for a post where one of the high gurus (Knoll, Chan or Schewe?) confirmed this fact in this forum, but due to the aforementioned major senior moment, I've been unable to find the right keywords for my search, so I've come up blank.
    Thanks in advance.

    Here's an example that illustrates what I'm referencing.
    The first screen shot shows an untouched raw image of an accidental camera discharge which is alomost totally black as viewed in the Preview panel of Bridge.  You can barely make faint parts of the boy's face.
    The second screen shot is the Bridge preview of the image processed in ACR 7.2 after applying some massive noise reduction and clicking on Done in ACR.
    The third and last screen shot shows the Bridge preview of the same image with the same ACR adjustments as number two after opening it in PSD and saving it as a PSD without altering it in any way after opening it in Photoshop, then saving it intact.  That is in fact exactly how the image looks inside ACR too.
    The difference in noise reduction is massive.
    Obviously this whole thing is an extreme experiment I carried out only to stress-test the noise reduction in ACR 7.2C1.  The shot, as I said, was an accidental camera discharge while the camera was hanging from my neck in the darkened entrance to a pizza place and the flash was off.
    So here we go, as per the above explanation:
         (Please click on thumbnails for larger views.)
    That ACR 7.2RC1 was able to retrieve that much of the image is almost a miracle.
    Message was edited by: station_two

  • How to install memory modules on a macbook pro 15"

    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?

    how to install memory modules on a macbook pro 15"
    Read the manual / user guide that came with your comptuer or download it from http://support.apple.com/manuals/
    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?
    Post your question on the Paralells forums:  http://forums.parallels.com

  • How to reduce memory use on my iMac

    How to reduce memory use on my iMac, OS X Yosemite, 2.7 GHz Intel Core i5
    8 GB memory
    Running very slowly, and the little spinning ball showing up.
    How do I clean up my IMac please?
    Should I use MacKeep or any clean up apps?

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How can I tell what video card and how much video memory does my iMac have?

    How or where can I find out: which video card does my iMac have and how much video memory does it have? I've tried looking in System profiler, but I did not see it there. Thank you.

    Once you open System Profiler there should be a line called "memory" which is the RAM (vs. hard drive size which is not what is called memory), e.g., Memory: 1.5 GB
    For video click on the line Graphics/Displays and look at the chipset line, e.g., Chipset Model: GeForce2 TwinView
    Kappy's instructions are handy for checking the original configuration of your computer, but that may have been changed at some time, especially if you bought it secondhand.

  • IPAD 16 GB HOW TO CLEAR MEMORY

    IPAD 16 GB HOW TO CLEAR MEMORY ios7

    What do you mean by 'clear memory' ?
    You can close apps via the iPad's taskbar (a lot of the apps that show on the taskbar will just be 'recently used', they won't be using resources) : from the home screen (if you have an app 'open' on-screen then it won't show on the taskbar for closing) double-click the home button to bring up the taskbar at the bottom of the iPad's screen, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If you want to delete content from your iPad to free up storage then you can see how much space each app is taking up via Settings > General > Usage. To delete an app (and therefore its content) press and hold any of the apps on your iPad’s homescreen and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded (you can't delete built-in apps) then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'.
    To do a soft-reset (i.e. a reboot) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear.

  • How much iPad memory do I need?

    I need an iPad for work, to compose music using an app, and surf the web. I don't plan on saving much music or photos on it and I'm not a video game player. Based on that, do I need any more memory than 16G?

    16GB vs 32GB vs 64GB: Which new iPad storage capacity should you get?
    http://www.imore.com/2012/03/08/16gb-32gb-64gb-ipad-capacity/
    How much content will fit on my iPod or iPhone?
    http://support.apple.com/kb/HT1867
    How Much iPad Memory Do You Need?
    http://ipad.about.com/od/iPad-Tutorials/a/How-Much-iPad-Memory-Do-You-Need.htm
    You might consider getting a refurbished iPad for less than the regular retail price. Then you could get a 32GB.
    Buy a Refurbished iPad? The What, When, Why and How
    http://www.maciverse.com/refurbished-ipad.html
    Has new screen, back and battery, and 1-year warranty.
    Refurbished iPads from Apple
    http://store.apple.com/us/browse/home/specialdeals/ipad
     Cheers, Tom

  • How to configure memory snapshots used in /HMUSA?

    Dear experts,
    Does anybody know how to configure memory snapshots? I want to call the /HMUSA and have a look at the snapshot using the Memory Inspector. But I would like to get a itemized list of the memory used, for example for the TTAB buffer I would like to know which process or transaction has used certain amount of memory in this buffer. Thanks in advance.
    PS: I am using a system for test purpose and I am the only one using this system (it's not a system used in a real company, and I have an administrator account).

    Hi Sam,
    Please review the following note, as it might help you!!!
    Tuning Output Post Processor (OPP) to Improve Performance (Doc ID 1399454.1)
    R12: How to Configure the Account Analysis Report for Large Reports (Doc ID 737311.1)
    Thanks &
    Best Regards,

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

Maybe you are looking for