Tab format/size in JTextArea not working

Howdy, I am writing a program that uses Runtime.exec() method, I get the error stream from the new process, etc... all that works fine, but as I use append(String s) where s = StreamOutput+"\n";, the output is not formatted in the JTextArea. However, if I do System.out.println(s), the output is perfectly lined up.
I recall reading somewhere about setting the tab size or something or other about a similar problem, but now cannot find the answer in the forums or the docs. Any assistance would be greatly appreciated.
Brian

here is the chunk of code in question:
String[] commandLine = {profile.getCompilerPath(),filePath};
               Process p = rt.exec(commandLine);
               BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
               String s = reader.readLine();
              while(s!=null)
                    writer.write(s2.toString());
                    System.out.println(s);
                    s = reader.readLine();
               writer.write(null);writer is an instance of an innner calss of the gui, and its only method is write(String s). write does this: txtAreaOutput.append("\n" + s); if s !=null. having messed with tab sizes etc to no avail, I am at a loss. the output I am trying to capture is from the javac.exe compiler, imagine that! and the little carats that point to the errors don't line up with the code in the JTextArea. what's worst, notice the call to System.out.println(s) after the call to writer. this was to check to see that the output was coming out right, and there it is PERFECT!!! ahhhh. Please help if you can.
Is there an issue that the JTextArea is not using a monospaced font, and if so, how do I fix that, or is there some other component with similar funcitonality that will work? Thank you for your time and mental sweat.. I am at my wit's end here :(

Similar Messages

  • When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work

    When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work. I did not have the problem until I started using firefox 4.

    It is probably a JavaScript link.
    You can probably force it where you want it with a keyboard shortcut
    either "Ctrl+click" or "Ctrl+Shift+click". see
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    ''Did that work?''
    Some styles that provide a warning as to the type of link:
    * No Follow links, mouseover id of other links - userstyles.org<br>http://userstyles.org/styles/10987
    * Change cursor on some links with JS. - userstyles.org<br>http://userstyles.org/styles/233
    * Link Warning - Themes and Skins for Mozilla - userstyles.org<br>http://userstyles.org/styles/1301
    * Link warning (cursor hover) - various filetypes - userstyles.org<br>http://userstyles.org/styles/2538
    * Red hand cursor for .pdf links - userstyles.org<br>http://userstyles.org/styles/553

  • Tab and control buttons do not work in Firefox (they work in other browsers) AND I switched to a new keyboard.

    The tab and control buttons are not working the Firefox browser (My browser is up-to-date). The buttons work in IE and Chrome, however, before I realized that, I even switched out my keyboard to a brand new one hoping it would solve the issue.

    Thank you--there were a few random extensions I had not added (spyware, maybe?). Once I removed those the issue was fixed!

  • I have noticed that when using Tigers Dosk utility to ERASE a flash drive I have a choice of FAT but not FAT32.  It seems that flash drives formatted as FAT do not work properly when trying to copy files from a Windows machine.  Why?

    I have noticed that when using Tigers disk utility to format an external USB flash drive I only have the choice of FAT ( when formatting for use on a Windows machine ) and not FAT32.   I have found that USB FLASH drives formatted as FAT do not always work on Windows machines.  Why?  How can I use Tiger to format for FAT32?

    I think it depends on the size of the Flash Drive as to whether it uses FAT16 or FAT32.
    Can you format it FAT32 on the PC?
    Other options would be NTFS or Mac OS Extended...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930
    MacDrive for the PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/

  • Reducing size of PDF not working

    Does anyone know why when trying to reduce a PDF by selecting Save As then choosing Reduced Size PDF wouldn't work on certain documents.  I did several PDFs and it worked fine.
    I have a bunch more that are over 1 MB and are too big to be emailing so I need to make them smaller.  Some appeared to work but the size didn't change others I get a box that pops up with a Conversion Warning... An error was encountered while saving the document.
    Thanks

    Try File menu >Save As... > Otimized PDF
    When Optimizer open click Fonts Tab.
    See how many copies of each font style (Bold. Italic, Bold Itallic, etc) yu have.
    Remove all copies except one (example if you have 5-6 copies of Helvetica Italic which is frequently Possible) remove all copies except one.
    I seen cases in PDF I have created where had as many as 6-7 copies of the same font version in the same PDF and maybe multiple font versions  often reducing the size by as much as 75%. (Not usually But havehad  it happen.)
    Also click on the Tab for pictures unless you plan on printing a business report, 200dpi/ppi is the most you should use.
    Save as a slightly different version. Open new version and check the size.

  • InDesign auto-size frame feature not working in real time in InCopy why?

    We have just recently migrated from InCopy CS4 to CS6 to take advantage of the new features like the auto resize frame option, however it now seems that this feature is not working in real-time.
    Basically the steps are needed to be complete before it auto-resizes the frame in InCopy, we use both layout and assignment based workflows:
    1. From an ID document ('doc1'), exported a 'layer' to IC, certain frames are set to auto-size in height using the text frame options. So that editorial can review and make changes to text and the frame should resize according to the specifications set. IC stories are saved to a folder located in a content folder inside the top issue working folder.
    2. Editorial opens the IC software, then opens the ID 'doc1'. Check’s out correct .icml file and makes edits to frame with auto resize.
    3. Frame does not resize according to text frame set options and InCopy file does not respond in same fashion as InDesign.
    4. Change only occurs when InCopy file is closed and updated in InDesign, which is frustrating as this feature would save huge amounts of time serving editorial requests.
    Has anybody experienced this type of workflow problem? If anyone can provide mw with some pointers as to what can I do to get this to update in real time perhaps run a script? Update file in InCopy and refresh I will very much appreciate their assistance. I have run out of ideas.
    Thanks!

    We've had all sorts of problems with this feature as it should've worked straight out of the box but after some testing we have found that its something to do with the way you open the actual file in InCopy. Which is far from ideal and should have been UAT by Adobe before release.
    This will not work consistently work if you open the designed .indd or .icma file in InCopy using the file open command within the application.
    If you need this to work, the InCopy user has to open the .indd or .icma file by dragging and droping from OS windows explorer into InCopy, we use Windows 7 acrros all the teams. Check out .icml files add text changes to the set auto resized frames, this process will expand/collapse the frames to fit the content but as you have to use the drag and drop method to open the .indd and .icma file, 2 users cannot access the same time doc at the same time (a serious flaw in the programming architecture!) which stops people working in parallel. Save changes, check in .icml content and close .indd or .icma.
    However the flaw comes in if you then open the .indd and .icma file in InCopy using the file open command within the application, before an InDesign user opens and saves the file (updates the design). The corrections added in the previous stage above, will not show the frames expanded/collapsed to take in the added text and instead show over matter???? The only way around this is to ask an InDesign user to open, update and save the design that way the InCopy user will see the same result no matter what file open method they use.
    Another suggestion is to design the page to have some of the auto resize frames anchored within main body of text and that way the frames will expland/collapse when checking out and editing the content. However, this does cause issues with InDesign crashing etc. so we have tried to stop this method within the working group.
    Have you experienced other more serious issues with InDesign crashing consistently when re-importing .icml files? See other forums here:
    http://forums.adobe.com/thread/671820?start=80&tstart=0
    http://forums.adobe.com/message/5045608#5045608
    As far as we can see this is a major flaw in how the application(s) work, we have an enterprise agreement with Adobe and purchase a large volume of Adobe products globally but so far the technical support team are unable to find a solution to this and I'm not hopeful of any resolution soon even with the new release of Adobe CC.

  • Ctrl+Tab and Ctrl+F6 still not working in Excel 2013?

    I am using Windows 7 64-bit. I just switched to Office Home & Business 2013 (32-bit), and I discovered that ctrl+tab behavior in Excel 2013 is incredibly broken.
    If you are using any other programs concurrently with Excel, then it makes switching tasks through ctrl+tab impossible. Switching workbooks in this way has unpredictable behavior: often, Excel will switch to a workbook that is hidden behind other windows
    (fails to foreground the window correctly). Even when it appears to be switching appropriately between windows, the order of switching is wrong: rather than cycling through all windows, it seems to switch between workbooks somewhat randomly.
    See similar issues discussed here: https://social.technet.microsoft.com/Forums/office/en-US/f288d91d-835a-48c4-a39c-738ca05002c4/ctrltab-and-ctrlf6-not-working-properly-in-excel-2013?forum=officeitpro
    and here: http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/cycling-between-open-windows-using-ctrlf6-or/7314b632-7f48-44f1-8e96-7d7000ac86d8
    There does not appear to be any solution to this issue so far. I have attempted to repair my installation of Microsoft Office, but it did not correct the problem.

    Hi Dlup12345,
    Based on my testes with local environment (Windows 8.1 and Excel 2013:15.0.4675.1000), the two Keyboard shortcuts worked as expected. In my view, this issue might be occur with Keyboard shortcuts, because you said the issue occurred intermittently. If we
    only open multiple Excel files without other program, the shortcuts should worked fine. Please check if other program affected Excel shortcuts.
    If you have any update, please feel free let us know.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Text formatting in Numbers is not working correctly.

    In Numbers on Chrome text formatting is not working correctly, it's almost as if a CSS file is not being loaded. To be precise, when I try to make a cell Bold there is no bolding. I am using Arial as a font. This has been an issue on Mac and Windows. Any ideas?

    Do you have the same problem with Safari or Firefox?

  • PSE 11 - MacOX 10.7.5  Printing Wide Format Printer and Profiles Not Working Correctly

    Macosx 10.7.5
    When I start up PSE11  and go to print I set up the paper size then select a Printer Profile.  When print the image it is a mess and seem to be black and white it is as if I printed on the wrong side of the paper.
    I then go and try to print it again.   Now it all works as it should beutiful colours and spot on.  all other print following this works.
    Then I shut down PSE11.   Start it up again.  Guess what  first print is a mess again.   all others after are fine.
    I uninstalled PSE11, deleted prefs.  and reinstalled PSE11.    Same thing..   first print a mess all others ok.
    the issue can be replicated consistantly......
    no problems with PSE10 or PSE9
    any suggestions?????
    cheers elo

    Thank You for your suggestions.
    I have been printing using PSE for over  14 years going back before the term PSE came up.  I have done this professionally using profiles from others and those I generate myself..
    All the things you  mentioned have been done.
    The main  point missing in your suggestions is   It is only the first print every time I open up PSE11 that does not work...
    at completion of print I immediately go back to the file command and say print and then bypass all settings and print again.   this time and every other print aafter are perfect...      I did not change one single setting...
    I know about printer and adobe settings etc.     but thanks for going through the list it was a good reminder of how to remember everything sometimes we rush and forget something...
    Finally    It works PSE6, PSE9, PSE10, CS5, Lightroom 4.   I think I have the settings right......
    Any suggestions for how to get PSE11 to force the settings for the first print would be appreciated..
    Only thing I have not done is upgrade to the latest version of the epson driver.  Released less than a month ago to provide support for mountain lion.(iam only on lion)  Maybe just maybe???   you never know.   Will try this when I finish by next batch of prints.
    I will back up as I do weekly...    Still have the old driver from way back in release 10.5.8   will try to fire up to 10.5.8 and see what happens....
    cheers elo
    Message was edited by: Elo Laugesen

  • First tab wont close, navigation buttons not working

    Every time I open up Firefox, the first tab loads up my Home Page. But none of my navigation buttons work. I cant go back or home or anything.Then the back, foreword, reload and stop buttons will work after I open up a new tab. I still can not click the home button, well i click it, but It just does nothing, and yes i have made sure I have a home page set. I am never able to close the first tab that opens with the browser until i close the entire browser. I am able to close any tab i open after, but never the first one.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You may also have a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Making tabs invisible in FPM_OIF_COMPONENT does not work

    we have a requirement to hide some FPM tabs (main views) in the ESS talent profile iView.
    after making those tabs invisible in the FPM component configuration they still show up as visible. Any idea why?
    more precisely, we are making FPM tabs (main views) invisible In component configuration HRTMC_EP_OIF of component FPM_OIF_COMPONENT.
    Regards,
    Tiberiu

    Hi,
    I assume here that at design time you make them via the configuration invisible. At runtime if you see the tabs then i suspect that there are some Dynamic programming involved or other variants exists that you haven't changed yet.
    Go back to the application configuration and test it from there and if it is still not working then use the Debugger to see what happens and why your configuration is not working.

  • Currency format and Right Align not working for messagetext in HGrid

    Hi
    We are dynamically enabling MessageTextinput inside HGrid region, it is Number type and when we set readonly to True it become left align, and currency format also not working, I tried the below various options but nothing is working.
    Option : 1
    OAMessageTextInputBean attribute = (OAMessageTextInputBean)webBean.findChildRecursive("Attribute"+i);
    attribute.setCurrencyCode("USD");
    Option :2
    OAWebBean amountDueBean2 = webBean.findChildRecursive("Attribute"+i);
    oracle.cabo.ui.validate.Formatter formatter2 = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    amountDueBean2.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter2);
    etc options we tried
    amountDueBean2.setAttributeValue(CURRENCY_CODE,formatter2);
    amountDueBean2.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE,"USD" );
    Please help on this issue.
    We are using Jdeveloper 10.1.3.3.0.3
    TiA
    Babu

    Anatoli,
    Hello!
    I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
    I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
    I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
    Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
    Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
    Thanks,
    Janel

  • Quantities/Dates and Status tab in purchase requisition is not working

    Help!!! In the Quantities/Dates tab of Purchase Requisition is not updating the Quantity Ordered field if a Scheduling Agreement was created, no matter if have a Delivery Schedule or Goods Receipt, and in the Status tab is not updating the Ordered field.

    Ok, but you can create a Scheduling agreement whit reference a PR and the PR show in the Status tab the number of Scheduling agreement created and the total quantity ordered to date, but is not showing the data, and in the Quantities/dates tab of PR __is not showing the Quantity Ordered too_, that is the problem, however that is not happened if you create a PO.

  • ADF Tabe's Pagination link does not work when embedded in iframe

    Hi experts,
    When I embedded ADF table(with JSF) in iframe like below code, the pagination link does not work. Is it a known bug?
    <iframe width=100% height=500 src="http://rst-act3ct2.us.oracle.com:8888/test/faces/modify.jspx" frameborder="0" scrolling="no"></iframe>
    When I use <object> instead of <iframe>, the pagination works again. However, <object> could not be used in my project.
    Any idea on it?
    Thank you in advance.
    Regards,
    Tony

    Hi,
    if you are on JDeveloper 10.1.3 then chances are that the problem can be pointed back to the mismatch of HTML and JavaServer Faces. At least you should make sure you work with a recent JDeveloper 10.1.3 release
    Frank

  • File size in export not working

    After upgrading to Lightroom 5, the file limit during export does not work anymore.  A 10M limit produced a JPEG file 26,437KB.  A 5M limit produced one 17,504KB.  Known bug?

    Please let me know which part of my question confused you so I can edit it or just let me know that you didn't read it correctly because I stated that when trying to use the "Add…" dialog, nothing happens. That dialog button does not show unless an App is selected.

Maybe you are looking for

  • Error in generating form

    While generating a form designer is giving GPF in the details of which it says 'DWFDE61 caused an invalid page fault in module CORE40.DLL' Also before giving this GPF, on the message window following things are there 'An internal error has occured, c

  • Install LabVIEW on Windows 7 X64

    I'm trying to install LabVIEW from NI Developer Suite Third Quarter 2009 on Windows 7 X64 machine. The install program terminates with an unexpected error. I can install LabWindows/CVI from the same DVDs onto this machine. Solved! Go to Solution.

  • Why won't additional pages work when site is published?

    I created a site in iWeb and posted it using FTP to my domain. I created a page before my home page with some pictures and inserted a hyperlink off of a graphic to link to the home page. That link worked great! However, all of the the links in the he

  • StringTokenizer delimiter \n not working for me?

    text.txt contains hello how are you and here is my code, i want to grab whats in the file and then output the amount of words in the file. I've tried using the file as "hello how are you" and it works (i get 4 tokens) but it doesnt seem to work with

  • Macros in Bex

    Dear friends, Please give me some information about Macros in BEx, I know that we can write some VB code in Workbook. But I want to clear picture on that, can you please send any documents on Macros to [email protected] Thanks Ganga.