Is it possible to set what is determined as whitespace by a JTextArea

I have the code:
JTextArea doc = new JTextArea(text);
doc.setLineWrap(true);
doc.setWrapStyleWord(true);now doc.setWrapStyleWord wraps the text if the word is too long to fit on the current line, it uses whitespace as word seperators. now i want to set the wordseperator to a string other than whitespace.
is that possible

this is my text string
my string is made up of a long list of the above because i just made a hangman like game, and now i'm adding the final touch to my gui, displaying the pattern you see above . so its important that the pattern
dosen't get seperated by whitespace because i'll end up wit
if the three dashes can't fit i want all 3 on the next line.
i have an idea, i will try to check where JTextArea added newlines and try to pad the string with spaces so that my 3 dashes end up on the next line
and thanks for your responses, both of you

Similar Messages

  • ThreadOpt values - is it possible to set them and what are the ranges?

    Hi there,
    I have a problem on my TestStand 4.2 platform, with test step result, formed and received from called external sequences results. In my Main sequence, in Post-Expression I defined condition, according to which the "Step.Result.Status" is passed or failed, and it works. But the problem is that in Status Expression field there is following statement: "(Step.Result.Status == "Done" && (Step.TS.SData.ThreadOpt == 0 || Step.TS.SData.ThreadOpt == 3)) ? "Passed" : Step.Result.Status". After deep search in the user manual, I found that (Note from "Expression Tab - Step Properties Dialog Box"): "Certain types of steps, such as Numeric Limit Tests, Multiple Numeric Limit Tests, String Value Tests, Pass/Fail Tests, and Statement steps, reserve one or more of these expressions to perform operations specific to the type of step or a substep performs the operation. In these cases, you cannot use the expressions the step type reserves, which appear dimmed on the tab." 
    Now, my problem is that at this specific step I call to an external sequence, which returns results and it is correct, but if these results, compared to expected are not the same, my step in the main sequence fails. Which is OK. But when the final report is generated I see there "Number of Tests Failed: 0", which is not OK. Since I can't change the "Step.Result.Status == Done", which comes from the external sequence, I thought that may be there is a place to change the "Step.TS.SData.ThreadOpt" and this way to cause to main sequence to correctly report "Failed Tests <> 0"??? 
    Does anyone has an idea whether it is possible to set this the ThreadOpt value and what is the accepted range?
    Your feedbacks and inputs are highly appreciated.
    Stephan

    GSinMN wrote:
    Hello Doug,
      I didn't think I was modifying any hidden properties.  It's just configuring a sequence call step when you add it to the sequence.  The "Execution Options" are clearly shown in a dropdown menu on the Module tab.  I was just pointing out that this seems to be what sets the ThreadOpt variable.  
    GSinMN
    Maybe I misunderstood. When you said "My normal process is to set it to 1, but based on this info, it needs to be either set to None or Use Remote Computer if you want anything other than "Done" to be returned." I thought you meant that you were setting the property directly rather than setting your sequence call steps to "New Thread" with the combobox.
    -Doug

  • What setting in costumising determines Pickinng confirmation is mandatory

    Hi,
    Do let me know...What setting in costumising determines Pickinng confirmation is mandatory?

    Hi there,
    It depends on 2 factors:
    1) in 0VLP, at the delivery item catg level, select the field "relevant for picking". This will make the item relevant for picking.
    2) If the plant is warehouse WH managed, then you will need to create a transfer order TO to pick the quantity. Check in SPRO -> Entriprise structure --> LE --> Assign warehouse num to plant & storage loc. If your plant has a WH num assigned, then you will need to create a To to do picking. Once you create TO, you will have to confirm it in LT12. Else picking quantity will not be updated in VL02N. For this you will also have to define the source & destination storage bins.
    If plant is not WH managed, then you will have to enter the pick quantity manually in a delivery. Else system will not allow you to do PGI (based on 0VLP settings).
    Regards,
    Sivanand

  • Is it possible to set up a backup between two external drives

    Is it possible to set up a backup between two external drives?
    i use time machine to back up my imac onto an external 2T.
    i also have two external 3T drives.  i am looking for redundancy of data, tried software RAID and it failed.  i also see some limitations with RAID that a backup would avoid.
    thanks for sharing your expertise.
    be well,
    tony

    so thanks to all of you, particularly rkaufmann87 i have decided to stop the plan of setting up a software RAID set.  instead i have downloaded ccc and am in the process of setting up the secone 3t external drive as a clone.  i will use time machine to back up the internal hard drive only and if possible see if i can clone that as well onto one of the 3t's.
    this gives me the peace of mind i sounght and avoids the problem of total corruption that exists with the raid solution i was exploring.
    thank you all for making this an enjoyable and informative experience.  what a powerful community.
    be well
    tony

  • Is it possible to set a default music player for the music on my external hard drive while still keeping my iTunes the default player on my Mac ?

    Is it possible to set a default music player for the music on my external while still keeping my iTunes the default player on my Mac ?
    Message was edited by: Pellseidon

    There is no setting in the iPhone to set another default music player. The default is Music. If you are using another application, you are at the mercy of how that application operates as far as what occurs when it stops or errors out. The car is looking for music to play.

  • When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF?

    When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF? Currently when I have a Framemaker book that I want to save as a PDF, I choose Save Book As and then choose PDF for the file format. A dialog box comes up in which I can choose the Bookmarks tab and choose which tagged content I want to be made into bookmarks in the PDF file. What if I would rather have the filename of a document rather than the chapter title be a bookmark in the PDF? Is that possible? Where would I choose that option? Thanks!

    There are two ways that you could do this. You can either use postscript text frames and enter the correct pdfmark entries to show the file name with the corresponding actions (i.e. where to go in the PDF) or you can use hidden text in FM and the "Filename (Short) " variable in a unique paratag to be picked up by FM's bookmark creation.
    To go the pdfmark route, see http://www.pdflib.com/fileadmin/pdflib/pdf/pdfmark_primer.pdf for details and also consult the Adobe Pdfmark Reference manual (http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf).
    The hidden text route would use FM's Color Views to specify a colour as Invisible. This will make the content visually disappear from the screen (and any output), but FM will still be able to read the contents of any text that is coloured with the Invisible colour(s).
    1. Pick or create a colour that you want to be invisible. [Magenta is usually a good bet and stands out visually].
    2. Set that colour to be invisible in View 1 and visible in View 6. [you can use the shortcut <esc> v 1 and <esc> v 6 to toggle between the views.]
    3. Create a paratag to use for the filename and set the font colour to use the invisible colour.
    3. In the title of each chapter file, drop an anchored frame that is set to be outside of the text frame [so it won't interfere with any other content].
    4. In that AFrame, insert a text frame and use the invisible paratag defined in step 3.
    5. Insert the Filename (Short) variable in that text frame.
    6. Repeat steps for all files to be included in the bookmarks.
    When creating the PDF bookmarks, select only the paratag used for the invisible colour.
    Don't forget to toggle the View to be invisible (i.e. <esc> v 1  - this also works at the book level for all files in the book).

  • It should be possible to set default behavior for all file types

    It should be possible to set a default action for all file types. I'm so tired of having to manually sit and say "save this file" because Firefail always defaults to "open with" and has disabled the "Do this automatically for files like this from now on."
    And spare me the zealotry religious excuses for why its the fault of websites and not Firefail
    ''edited to remove swearing''

    I do want users to have full control to be able to set any folder view they want by using Apply to Folders; I just want to set the initial/default view to Detail because that matches what the majority of my users want.
    That is, what registry setting changes when I go to a picture folder, change the view to Detail, and click Apply to Folders? Having done that, I still retain the ability to change it to some other view and apply that to folders. But what registry setting
    represents the change I just made when applying Detail view to all Picture folders.?
    This settings is simple via GUI, but it is related a lot of registry keys, I made a test in my machine, capture the "Apply to Folders" process using Regshot tool (this is a small tool which can compare the regsitry changes after you change some
    settings), and this is the result:
    this is part of the registry changes, a plenty of registry keys and values need to be changed. hard to list them here. if you have interests, I recommend the tool Regshot, it can help you capture the regsitry changes.
    NOTE: Please Note: The third-party product discussed here is manufactured by a company that is
    independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's
    performance or reliability.
    Yolanda Zhu
    TechNet Community Support

  • Is it possible to set a song in my itunes library as a ringtone straight from my phone, without having to use my computer?

    Is it possible to set a song in my itunes library as a ringtone straight from my phone, without having to use my computer?

    Hi,
    According to your post, my understanding is that you want to make the Workflow Tasks work out with a pre-determined due date that it's 2 days from today in your client list workflow.
    I recommend that you can create this client list workflow as below in your environment.
    Then, you can go to “Start Options” to check “Start workflow automatically when an item is created”, publish this workflow and test if it works.
    When an new item is added in the client list, its corresponding Workflow Task is shown as below:
    Best Regards,
    Yumi Fu

  • Is it possible to set up my iPhone 5 as a new phone and sync ONLY my contacts and apps from my iPhone 4?

    Is it possible to set up my iPhone 5 as a new phone and sync ONLY my contacts and apps from my iPhone 4? Or do I have to set up my iPhone 5 by using my iPhone 4 backup (I'd rather not)?

    Contacts are not stored in a backup, so a restore will not bring them in.  Contacts, along with all the other Apple databases (log into icloud.com with a browser and look at the various pages - this is what I call the Apple databases) are contained in their own locations on the servers.  You should be able to take a new device, go to Settings>iCloud, log in to the icloud account, then turn on the services (e.g. contacts) you want to sync.  They will then be synced to the device.  That has nothing to do with a restore and with the old iphone 4.  As for apps, their listing and locations on the screens are stored in a backup.  If you don't restore, then go to the itunes app store, look under Purchased Apps and download them again.

  • Is it possible to set the child index of items in the design view?

    Is it possible to set the child index of items in the design view? I have a large png that is on top of everything in design view which is really annoying

    Yes it is possible to do so. Goto View>>Tools Pallete. This will open up a tools pallete which you can use to modify the colours and other viewing options of graphs and anything else on the front panel.
    For your purpose u select the background of the graph and  click on the "set colour squares" present in the lower bottom corner of the pallete. This will open up a whole range of colors you can select for the purpose. There in the black and white strip of colours, there is a box titled "T" on the right most corner. Select that "T" and your background color will go transparent.
    Have a nice day. Happy codings.
    Regards
    Asad Tirmizi
    Design Engineer
    Institute of Avionics and Aeronautics
    " Its never too late to be, what u want to be"
    Using LabVIEW 8.2

  • Is it possible to set the firefox back button to a custom action in the context of a websocket connexion?

    Simply, is it possible to set the firefox back and forward button to custom javascript function to navigate in a websocket application.
    Thanks in advance

    You may get lucky, especially as Today is a "Sumo Day" with more contributors around than usual. Such a question tends to be slightly off topic, being a hack of a standard Firefox installation.
    What I would suggest is that you try other forums, either a specialist linux forum or the popular Mozillazine forums: http://forums.mozillazine.org/index.php

  • Is it possible to set a finder window to full screen mode,..

    ... like mail, itunes and other apps? and if not, why not?
    I have to say it took me a bit to get used to Lion, I began complaining all day until I decided to take some time to learn it, and now I like it very much, I see the advantages over 10.6.
    But still, there are some things I don't know about, and the window of opportunity to take time to learn more has closed. And I don't know when it'll open again.
    So, that's why I have joined the community, because now I'm trying to use everthing on full-screen mode, and as I was setting my desktops to work on a project in which I will be needing a lot of finder windows open with a lot of items each, I instantly asked myself:
    Is it possible to set the finder windows to full screen? because I don't see any buttons.
    Thanks 4 Your Time
    R.D.B.

    Thanks Don Archibald,
    Yeah, that's what I'm doing at the moment. But I thought it would be nice to have the little full screen button just to press it so.
    Besides, I'm still figuring out the finder windows' behaviour. I discovered that if you open a folder from a window that has the toolbar, the new folder would also open with a toolbar, even if you already had it set it up with just the status bar.
    And one thing that still enervates me is that if you have a window with two items, and you press the green button to fit the borders up tight, instead of leavin' the 2 items in a horizontal arrangement, it moves one to the bottom and puts a slider. Arrgh.
    Another thing I haven't understood is why one folder I have on the dock sometimes opens with a column layout instead of the icon layout I have arranged for it before. Totally random 4 now, can't find the why.
    Anyway... I'm going to order some lapel pins about 2 flags I designed for two embassies. Anyone know a good place for doing that?

  • Is it possible to set a laf to only one component in the application?

    I'm developing a GUI and wanted to know if it is possible to set a particular laf to one of the guis components, thanks a lot.

    I believe that the LAF of a component is determined by the current LAF when the component is created. So I think you can create and display you GUI normally. Then switch to your other LAF to create your component and then switch back to the default..

  • Is it possible to set my IPhone 5S to automatically backup to the Verizon cloud or to backup assistant. The only settings I see is where it will remind me to do. Can it be set to automatically do this, like my Droid did.

    Is it possible to set my IPhone 5S to automatically backup to the Verizon cloud or to backup assistant. The only settings I see is where it will remind me to do. Can it be set to automatically do this, like my Droid did.

        We want your information backed up as easily as possible, Todd536. With Verizon Cloud, you can not only tell the application when to back up automatically, but what you want backed up each time. Visit http://bit.ly/1f5sO4P for all the steps to manage your Verizon Cloud on your iPhone.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • [Q]Is it possible to set the hostname as DBCS character like Korean

    My question is that is it possible to set the hostname as double byte character set like Korean or Japanese.
    If possible, What kind of limitation does exist?
    Thanks

    Not that I've found, no : http://www.apple.com/feedback/ipad.html

Maybe you are looking for

  • How can I create or customize an iPhoto book theme?

    I am looking for a way to make a new book theme in iPhoto, so a group of photographers can create portfolios with a consistent style. I have had complete success doing this with Aperture, but not everyone has Aperture! So far, for iPhoto, I have done

  • Using Safari internationally...

    I'm currently visinting Spain, and I have multiple users on this computer. For one user, the Safari browser automatically opens the web page's international page instead of the regular page... For example, if I type in www.cnn.com, the international

  • AirPlay is working on Wi-Fi and/or Bluetooth networks

    I have got any wi-fi AirPlay enabled device yet. Today, I use my Bluetooth earphones and discover the AirPlay icon on the iPod app. It seems the AirPlay icon replaces the Bluetooth icon on iPod playback control panel. There are two options: iPhone an

  • CRM is unicode R/3 is non-unicode

    We are about to install a new CRM 4.0 system based on WAS 6.40 and choose the unicode option. This system will be talking to an R/3 system which is enterprise and is non-unicode. CRM will be accessed via a portal. We will be installing about 18 langu

  • Sos-mode-recovery Cisco SPA50xG

    We had a technician  unplug a SPA504G  will provisioning and Ugrading Firmware. I downloaded the SOS Utility for the Solution. But the Device will not go out of SOS mode. For me use the utility https://supportforums.cisco.com/document/37666/spa50xg-i