Textarea - create String that acts like a single character

Hi guys,
I am trying to create a string in a textarea that acts like a single character. By this, I mean that the user cannot edit the contents of that section of text. Here's an example:
Textarea text:
[Number of Iterations] * 35 / 200
I want the [Number of Iterations] to be read-only. In addition, if the user tries to delete the beginning or end of [Number of Iterations], the whole thing is deleted. If possible, I would like cursor operations to treat it like a single character as well (i.e. to go from |[Number of Iterations] to [Number of Iterations]| takes a single right button press).
Some commercial applications like Microsoft Word do this with Automatically created text in documents (like page numbers and date stamps) and I was wondering if I could do the same thing using a Textarea.
Any help would be greatly appreciated.
Thanks in advance,
Steve

A JTextPane allows you to add components to the text pane. So you might be able to create a JLabel with your desired text and insert the label into the text pane.

Similar Messages

  • Full browser window placeholder that acts like background image fill?

    I want to be able to set full browser window placeholder that acts like the background image fill function, but be able to then build in a multi-anchored horizontal parallax.  The effect is like we have a background image fill, but can slide horizontally between pages as if they are in a slide show.  Simultaneously, content inside the placeholder such as longer paragraphs of text can scroll down - on top of the image layer, but inside the borders of the image placeholder.  For a clear example of this, see this website: http://argonautinc.com/
    I've read and searched but to no avail.  I'm only about one week into Muse, so please forgive me if this is  super simple!   Thanks, Nico

    Hi Nico_Cineaste,
    You can achieve the design by using Fullscreen Slideshow in MUSE as object.
    Open any page in MUSE , click on the "Object" >> Slideshow >> Fullscreen.
    Click on your blank web page.
    This will give you a full screen slideshow.
    You can now design as per your requirement.
    Thanks
    Prabhakar Kumar

  • LabVIEW 8.6 propositions on how to build application that acts like reader form specified field dependent on which values been selected

    Hello everyone!
    I am newbie to LabVIEW with some previous experience programming in different languages.
    My goal is to build the application that upon my selection needs to give specific values from previously filled and prepared file.
    For example, I have different types of operations (milling, drilling, turning..) and different grades (type) of steels (Uddeholm steel grades: NIMAX, IMPAX...and about 40 of them). For every operation there are different input data (Coated insert, uncoated). Based of those information application should give out cutting speed and feed rate data that are stored in some file. I understand I can do it in Excel spreadsheet or LV spreadsheet, I would prefer LV because of portability to systems without Office installed on them. I also understand that all those issues concerning input data for output results I can easily solve with case scenario.
    Main issue is decision between different types of files that I can easily address like 2D matrix to get required data, which and how to do it.
    I would like to know what I should acknowledge first before doing any further work?
    And does someone have some simply prepared VI on which I can work my way on?
    If you are willing to help me with guides I would be happy to answer any of your questions.
    Vedran Galeta

    Thank you very much for your reply.
    This application that I am working on is completely static due to communication. It simply needs to provide entry in table depending on selected inputs in front panel, and of course display it front panel. I know what I need to do, as well as the structure. Only thing that I don't know yet how to do it in LabVIEW.
    When I mentioned "LV spreadsheet" I meant on read from file option, you got that right.. The thing is that now I have large amounts (not large in acquisition data point of view, 5 spread sheets, with 45 rows and 15 columns) of data saved in Excell, and my goal would be to get that data in LabVIEW application, for the ease of access. And still leave that xls file as is, due to all connections that he have with smaller xls files. So in compact version of the story I am going to use save as comma separated (or tab, that depends of course) values from Excell with or without extra editing of created file in order to load that file into prepared program structure in LabVIEW. After I manage to do that, of course I will work my way for all other extras that I am gonna put eventually in program structure. So this would be like a backbone, I know it sounds simple. As a matter of fact I would probably be finnished allready in VB but highest demand is to do this in LabVIEW, and I am fully down with that.
    Regards,
    Vedran

  • Passing variable value with button or MC, that acts like a button

    Hi,
    I have a system.swf, that coordinates which MC should be
    loaded into container. I'm trying with IF statement...
    if (scene == "VALUE")) {
    load ...
    My question is, how can I pass a variable value from loaded
    swf to the system swf, where this value is read?
    THX

    once loading is complete all variables in all times are
    available everywhere. you just need to use the correct path to
    reference variables in one timeline from another timeline.
    so, if your container movieclip is on system.swf's _root
    timeline and has instance name containerMC, from anywhere you can
    use:

  • Create String from all Collection Items

    Hi all, I've been using Project Siena for the last week and I'm having a lot of fun with it.
    Right now, I'm having a problem creating a string comprised of all the rows of a particular collection.
    I am trying to generate the string for an email body. So far I have a 1 column collection called EmailCollection. It consists of rows of text with the appropriate URL Encoded characters. I would like to be able to export all the rows of this
    collection to a string, and then add this string into the Launch(mailto:) body variable.
    Let me know if I'm not being clear with this, and thanks for any help in advance!
    Elliot

    Thanks for the reply, StonyArc. I actually used your original thread to get me started until I ran into problems with exporting the entire single column collection to a concatenated string. I found a way to get it working, though it's not an elegant solution
    and it wont work if the number of rows in the collection changes.
    I'll try to explain it here, and if anyone else can think of a better way, I'd like to try it :)
    I needed to create an URL encoded string for my emails which consisted of the relevant pricing information from a Collection with 8 rows called NewPricingCollection. 
    Collect(EmailPricing, Substitute(Substitute(Substitute(Concatenate(NewPricingCollection!SetupItem,": ", NewPricingCollection!NewAmount, " ", NewPricingCollection!UnitType, "s ($", NewPricingCollection!TotalPrice, ")"), " ", "%20"), "$", "%24"), ":", "%3A"));
    This created a single column collection with 8 rows which looked like this: SetupItem: 5 Units ($TotalPrice). I used the substitute function to replace the non-URL friendly characters with their encoded equivalents. I'm not sure if this is the best
    practice use of the Substitute function by the way.
    Once I had the Single Column Collection, I couldn't find a way to concatenate the contents of each row into a single string. I was able to use the Lookup function to retrieve the first row of the collection, but that was it. Note that I may be using the
    lookup function incorrectly too :)
    I ended up using Last and LastN Functions to retrieve the specified number of rows from the end of the collection. Then I used the Lookup function to retrieve the string from the first row of each retrieved collection, then concatenated it together as a
    single string - along with the rest of the email body.
    LookUp(EmailPricing, Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,7), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,6), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,5), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,4), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,3), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,2), Result in EmailPricing, Result) & "%0A" & LookUp(LastN(EmailPricing,1), Result in EmailPricing, Result)
    This created a string that looked like this inside of an email body:
    SetupItem1: 5 Units ($TotalPrice)
    SetupItem2: 5 Units ($TotalPrice)
    SetupItem3: 5 Units ($TotalPrice)
    SetupItem4: 5 Units ($TotalPrice)
    SetupItem5: 5 Units ($TotalPrice)
    SetupItem6: 5 Units ($TotalPrice)
    SetupItem7: 5 Units ($TotalPrice)
    SetupItem8: 5 Units ($TotalPrice)
    As you can see it will only work correctly with a collection of 8 rows, so if the number of items changes, then I'll need to find a better solution. 

  • Noob Question: Type That Looks Like Web Type

    Hi,
    Can someone give me suggestions on creating type that 'looks' like the type generated by a browser. IOW: I've tried the various settings (crisp/sharp/smooth) and the type that I create in a GIF or PNG never looks as close to the same font in IE or Firefox text. This is not font-specific... any font.
    Referring to:
    http://www.myspace.com/jcharrismusic
    Where it says,
    'Contact JChmusic is the graphic.
    Where it says
    'JC Harris: General Info'
    ...is HTML.
    How do I get the word 'Contact' to look as crisp as the HTML generated text?
    TIA,
    ---JC

    I tried that and it's close, but then it's -too- jagged. Sorry to sound like Goldilox, but it's as though the 'sharp' is a bit too soft and the 'none' is a bit too hard. One problem (I -think-?) is that the font in the web page is specified in px but Photoshop type is (rightly) in pts.
    Any more ideas? Closer, but not -quite- there yet.
    THANKS!

  • Typing in s single character in an email address results in many...

    I have this strange problem when I attempt to type in an email address in an email, or I try to add an email address to an address book contact. As I type a single character I will get multiple characters typed for that single keystroke, (i.e., if I type "k" I will get "klstp". and if I attempt to backspace, f4, or any key, it will continually apply the same "klstp" for that instance.) This behavior will go away and reappear at no known pattern or time. One thing that is additionally wierd is the characters that will show up are always characters that are contained in that persons email address or somewhere in their address book listing.
    Some of the troubleshooting I have already attempted to do is use another keyboard, run Onyx utility to repair the system, but nothing seems to work.

    Thanks for your suggestion, but I understand the previous recipients function that you are speaking of. This is not that. This is random character sets that show with a single character being typed, but it is not any combination that exists from previous recipients. As an example if I type the letter S, I will get the letters SDQT, if I then hit backspace to remove it it will again type SDQT, if I then use an arrow key to try and move the position of the curser, it will again type SDQT. The only key I have found that will not do this is the ESC key. The important part here is that the combination SDQT is not part of an email address anywhere in my address book or previous recipients, and this combination of characters is only an example, the actual characters appear to be random.

  • I want to create a tail that behaves like a string

    I want to create a tail and fasten one end to an object. The object is translating and has a small amount of rotation oscillation. I want the tail to behave like a string that has very little stiffness. It should curve from side to side as the object oscillates. I could probably figure this out by experimentation but I would much appreciate assistance.

    Well, I don't know what you mean by "the object is translating", but to make a tail that behaves with a lot of curve, it needs to be comprised of segments. I would go with a replicator of a bunch of circles and then use the replicator sequence behavior to animate the curvature.
    Andy

  • I have a Yahoo search bar acting like an App tab that I can't get rid of. There is no option to unpin when I right click on it.

    I have a yahoo search bar which was installed during a download and installation of SIW.exe a system information application from http://gtopala.com/. It was the freeware version which is add based software. However I didn't expect that the search function would be such a nusance and interfere with Firefox's functions.
    The search bar is acting like a App tab that I can't move or get rid of. Ther is no option to unpin the object when I right click on the bar or to change it in any way using the 'group your tab' function to the right of the tab tool bar.

    Reply: Cor-el > Excellent!! Thank You. In Tools, Add Ons, Extensions there was a Default Tab enntry which was the culprit. Am running W7 so the XP Tools, Options, Advanced , Use Hardware acceleration when available, wasn't of much help here, however I did fix a problem on another computer running XP with that same fix. Thank You very much! HD

  • Check if a single Text Item in a cell is bold and then grab the string that is bold

    I have written a script that runs through a table and parses out the information I need to create another table with some added information.
    The last piece that I can't seem to figure out is how to check if some text in a cell is bold and then grab said text to put in the new table.
    I will give a small table demo of what I am try to retrieve.
    Table A.
    Column 1
    Description
    123456
    This is a description (This is a note)
    789123
    This is a description (This is note A) (This is note B) (This is more stuff that isn't needed.
    Table B.
    Column 1
    Column 2
    Note
    1
    123456
    (This is a note)
    2
    789123
    (This is note A) (This is note B)
    I can pull all of the other information across that I am trying to get without any issue.
    I can't seem to figure out how to check the formatting of a TextItem to see if it is bold. I have been able to figure out how to check if a cell has bold text in it. using if ((tItems[counterVar].idata & Constants.FTF_WEIGHT) > 0). This ends up not working well because of a few issues. I was wondering if there is any way to check the formatting of a single character?
    I tried something similar to the following:
    prop_Change = tbl_Description_Cell.GetText(Constants.FTI_CharPropsChange);
    txt_String = tbl_Description_Cell.GetText(Constants.FTI_String);
    if (prop_Change.len > 0)
            if((prop_Change[0].idata & Constants.FTF_WEIGHT) > 0)
                    pOffset = prop_Change[0].offset;
                    for (var tbl_tItems = 0; tbl_tItems < txt_String.len; tbl_tItems++)
                            tOffset = txt_String[tbl_tItems].offset
                            if(tOffset == pOffset)
                                    alert(txt_String[tbl_tItems].sdata);
    Thanks,
    Steven

    Depends on your forms-version. If you are using a web-based version, you could have a look at the Java-bean-editor FRITE, it supports such features.

  • Create T.Code for a query that looks like Report VF05

    Hi,
    I'm facing a problem right now.. I made a Query with SQVI, then I converted it with SQ01.. It is a report that looks like VF05 but has the column EAN/UPC Code added on it.
    Now I am trying to create a T.code to run this report, using SE93.
    So, I called the T.Code ZVF05, and then I tried to Create it, but then I don't know what Start Object I should choose: I first choosed "Program and screen", I gave the field Program value "SAPMS38R" and Screen name "180" as seen in the my Query
    , but when trying to test it, I receive the message: "Incorrect program type with Submit"
    What would you suggest to make this TCode work?
    PS. Please note that I am SD functional consultant, not a ABAPer...
    Edited by: Cristiana Vasile on Oct 13, 2008 2:23 PM

    Hi,
    In SQ01, Menu-> Query->More Funcitons->Generate Program
    Once done, Get the program name:
    SQ01, Menu-> Query->More Funcitons->Display report name..
    With this report name. goto SE93 and create a report transaction with the program name = Query program name obtained above and Screen no 1000.
    Alternatively Goto SE38 and give the Query program name obtained above  and then Execute
    Regards
    Shiva

  • My iPad acting so weird tonight. When it shut down automatically because the battery has been drained. When I opened it, it creates some weird sounds like *swoosh* blahblah. It does make me feel nervous. Can someone help me? Does it already broken? :(

    My iPad acting so weird tonight. When it shut down automatically because the battery has been drained. When I opened it, it creates some weird sounds like *swoosh* blahblah. It does make me feel nervous. Can someone help me? Does it already broken?

    adetoye50 wrote:
    Dear Contacts Journal Support Team,
    FYI, this is a user to user support forum.  You are NOT addressing Apple here.
    Honestly, I doubt anyone is really going to take the time to read the novel you have written.

  • After applying update my apple tv2 will randomly go to a black screen that lasts for a few seconds. When it gets back to normal after a few seconds it acts like the video never stopped since its farther along in the timeline. This happens with all video c

    After applying update my apple tv2 will randomly go to a black screen that lasts for a few seconds. When it gets back to normal after a few seconds it acts like the video never stopped since its farther along in the timeline. This happens with all video content wether its from Netflix or streaming from my iTunes library

    You might try restarting the Apple TV by removing ALL the cables for a 30 seconds. If that doesn't help try using another HDMI cable.

  • Firstly hello to all. I'm looking to create a vi that will take a single logged output from a thermocoup​le and monitor the temperatur​e and produce a Boolean when the temperatur​e has stabilised for a pre determined time say 1minuet.

    Firstly hello to all. I’m looking to create a vi that will
    take a single logged output from a thermocouple and monitor the temperature and
    produce a Boolean when the temperature has stabilised for a pre determined time
    say 1minuet. I have managed to find a couple of examples on the forum but one
    will only run on V8.2 and I have V8, the other is for more than one channel
    witch is fine I can always reduce this, but it was the timing feature I was
    having difficulty with. I looking to monitor the temperature of a motor until
    it has stabilised prior to testing and then to use this temperature as a
    reference. Pleas forgive my ignorance if this is a very simple thing but I’ am
    learning and really enjoying it. Thank you in advance for your answers.

    Hi
    Graham, thank you for you reply.
    What I’ am trying to achieve is a vi I can use in a motor
    testing setup, a part of this would be to warm the motor up until the exhaust
    air temperature has stabilised, this takes approximately 10 minuets. I was
    thinking of just letting the motor run for this time and leave it at this, but
    some motors warm up quicker that others and. I am basically looking for a vi with
    an adjustable temperature window of say ±5 C° in 1° increments, timing wise 1minuet
    to 10min the adjustment is so I a can use this for another application. I tried
    to adjust the code I found at the link below but had a little difficulty with
    the timing. Thank you so much for your help it’s much appreciated.
    sine.ni.com/niforum/niforum?forumDU=http://forums.​ni.com/ni/board/message?board.id=170&message.id=25​1017&requireLogin=False

  • My iPod will go to the app store and act like it's connected but once I try to download the app and I put in my password it says that I can't connect to the iTunes store

    My iPod will go to the app store and act like it's connected but once I try to download the app and I put in my password it says that I can't connect to the iTunes store

    Try "resetting" your Apple ID account  >   My Apple ID

Maybe you are looking for

  • Error installing E-Bussiness Suite (EBS) R12 on Windows 2003 Server x32

    I am trying to install EBS R12 and i am getting error at stage 3 of 5 on 53% I followed steps from below link http://supportuae.wordpress.com/2013/01/26/installing-oracle-e-business-suite-r12-on-microsoft-windows-server-2003/ My Setup Win 2003 Server

  • Play counts and ratings aren't saving

    So far I've been using iTunes for a year and I haven't had any problems until now. So here goes: As far as I know this has started since I've updated to iTunes 8.2. My play counts and ratings aren't saving when I exit iTunes and start it up again. Wh

  • Best book for UNIX in the UK

    Hiya, I just wanted to find out whether anyone know of a good, sound book to teach UNIX with sufficient scope to master more complex aspects of UNIX commands. Things like "...for dummies" is not what I am looking for as it is far too, well "dummy". A

  • Invalid Batch ** in Batch Determination

    Hi The system does not propose any batches, I receive the error message above.  What else could be missing? Analysis Log shows only as follows: Batch stocks are being read...    Batch 0000000060 Storage location 0020 Search according to selection cri

  • URL_DATASTORE queries using OR over view.

    I have Union All view which spans 2 base tables which are partitioned by range. When I issue a CONTAINS query using the view using a URL text index I have issues when using OR. Example. Select id from tables where id = '1' or contains (url, 'dog') >