JTextArea wraping but not working on window resize

Real noob here...
I'm having a problem when doing a simple listing of folder/file directory within a JTextArea. I would like to simply list each folder or file per line.
Example:
Folder1
Folder2
File1
File2
File3
With some messy coding, where I add blank space after the folder/file, I can get it to look like above. But when you resize the window, that all goes out the window (no pun inteneded).
Example after resizing:
Folder1 Folder2
File1 File2
File3
Notice how now, they are no longer on individual lines.
I've tried embedding the JTextArea into a JScrollPanel, but has not effect as again, resizing the window still causes the problem.
What can I do to fix this situation?

Thanks for the quick reply...
First let me state that I'm experimenting with Java and Swing... so I have no doubt that I might looking in the wrong place.
I'm just trying to list the contents (folders and/or files) of a particular directory. Another example might be listing the contents of a file, that may just be names of people.
I was attempting to output this listing to a JTextArea. How do you list each item on individual lines? I've attempted to do so, but when I resize the window, the items are no longer displayed on one line.
A real simple concept, but again, there may be other better equipted classes out there...

Similar Messages

  • I was using webrtc connection for a video connect. Firefox works in Mac but not work in windows

    I was using our company API tokbox SDK to do the servers test between two machines. I blocked one machine ipfw to test the server connection. However, our server connection works well when we are using two mac firefox browser, but not succeed when we were using one windows and one mac machine.

    Oh, I replied in your second question here: https://support.mozilla.org/questions/1001511

  • HT3986 I installed windows 7 to my macbook pro, but my mousepad does not work in windows 7 and also i can not connect my windows 7 to projector, but i can use my macbook's mouse pad and i can connect my mac to projector,so please help me for windows 7 pro

    I installed windows 7 to my macbook pro, but my mousepad does not work in windows 7 and also i can not connect my windows 7 to projector, but i can use my macbook's mouse pad and i can connect my mac to projector,so please help me for windows 7 problem

    i try to download now, do you think when i download and install the windows support software, can i fix the problem?

  • When i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    when i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    Unfortunately, the recording & movie industry does not respect the rights of the people who make them money, and thus you can only use the paid-for content in ways they see fit. Even if I lived in a bunker where no one else could possibly see the movie I paid for, therefor I'm not 'sharing it illegally', I would still not be allowed in a blue moon to copy that movie to DVD for TV viewing. Someone will tell you to get an AppleTV. How about Apple give us one for free? Until this changes, people wanting to use their content in multiple locations will continue to download music & movies via torrents, legally or illegally.

  • I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    it allows you to use your cr files, Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Camera Raw: How to use Adobe DNG Converter - YouTube

  • Utorrent will not workon mac. but it works on windows

    utorrent stopped working a few days ago try everything but it will not work on my mac BUT IT WORKS ON WINDOWS.

    Lucky you. Torrent sites are a notorious source of malware. Stay away from them.

  • DragAcceptFiles Working in Windows 10 TP build 9926 But Not Working In build 10049 and build 10061

    This is a cross post from
    https://social.technet.microsoft.com/Forums/en-US/a63519d4-ba7a-46c1-bb34-ad034b836964/dragacceptfiles-working-in-9926-but-not-working-in-10049-and-10061?forum=WinPreview2014General.  The moderator suggested I post this here:
    My company has a software product that accepts dragged items.  In all versions of Windows from XP through Windows 10 build 9926 that functionality has worked fine.  However, with build 10049 (possibly 10041 which I did not test thoroughly before going
    to 10049) and now 10061 that functionality stopped working.  The application calls DragAcceptFiles to enable drag drop messages.  In addition, either ChangeWindowMessageFilter is called on Vista or ChangeWindowMessageFilterEx is called on Windows
    7 and higher for the messages WM_DROPFILES, WM_COPYDATA, and WM_COPYGLOBALDATA.  This was working fine on Windows 10 build 9926.  Now when I attempt to drag an item to our software product, I get the "Don't" symbol (circle with line through
    it) and no WM_DROPFILES messages are received.  The application is unchanged with only an upgrade to the Windows 10 build performed.  As a sanity check, I created a brand new VM running build 9926 and the functionality worked fine.  I then upgraded
    the VM to 10049 and it stopped working.  The following day I upgraded to 10061 and it is still broken.  Is there are new filter or restriction in place since build 9926 on DragAcceptFiles that would be stopping the traditional drag drop procedure
    from working? This is very frustrating because there is a dearth of information on Windows 10 API changes and since this appears to be some kind of recent change, I am out of ideas of where to look for answers.  I can duplicate this problem on the older
    platforms by simply calling DragAcceptFiles with the second parameter set to false.  In that case, on Windows 7 for example, I will get the "Don't" symbol just I am getting now in the Windows 10 TP with the argument set to true.

    DragAcceptFiles is now working again in 10074 so whatever the problem was, it has been fixed.

  • External speakers work on the Apple side but not on the Windows side - did before but not now - need fix

    New to discussion groups.  Mac-Mini user.  External speakers work on the Apple side but not on the Windows side.  The used to but not now.  need suggestion on fix or do I go to Apple store or a PC repair store?

    Reset the SMC 2-3 times. Click Intel iMac SMC and PRAM resets for instructions.

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • Web Service Client(Console App) not working on Windows Server 2008 R2 Standard Edition

    I am trying to consume an ASMX Web Service in a console app, its working fine in Windows 7,Windows Server 2012 Standard,Windows Server 2008 R2 DataCenter,Windows Server 2008 R2 Enterprise, But its not working in Windows Server 2008 R2 Standard Edition which
    is the deployment server.
    I tried consuming the ASMX web service using Web Reference and Service Reference as well but its not helping. Its throwing up the following error,
    Message:There is an error in XML document (1, 331491).
    Inner Exception : System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 331491.
    The scenario is that i call the web service and it returns me an XML i am not able to receive the XML on Windows Server 2008 R2 Standard Edition.
    Please provide suggestions on this I need to resolve this ASAP.

    Hi,
    This question is better asked here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=asmxandxml
    Experts here are more familiar about it and they can give you more efficient suggestion.
    Thank you.

  • ITunes 9 Home Sharing does not work on Windows 7 x64

    iTunes 9 Home Sharing does not work on Windows 7 x64.
    Getting the following error message:
    Home sharing could not be activated because this computer is not authorized for the account "iTunes account." Please authorize this computer and try again.
    This is a bug since my computer is authorized in iTunes and there is only 2 computer authorized for my iTunes account, so I have 3 more left till I should get this message.
    I've just upgraded my iPhone to OS 3.1 using it this morning.
    Please advise.
    Environment: Windows 7 x64, HP TouchSmart tx2-1020us Notebook
    Ivan Farkas
    <edited by host>

    I am using Windows 7 x64.
    I am running iTunes 9.0.2.25
    I am running Mcafee.
    I can see and play music from the iTunes installation on my Windows 7 machine, but I CANNOT access the library to copy songs from this computer to other computers on my network.
    YES, I have enabled "Home Sharing" using my iTunes account. NO, I have not authorized more than 5 computers on this account.
    I believe this to be a Windows 7 related issue, as Home Sharing worked as advertised when I was using Vista (before I upgraded to Windows 7).
    I CAN set up Home Sharing on two other (host) computers in my home network and it works. These computers are XP and a MacBook Pro. I CANNOT access my Windows 7 machine x64 to COPY music from one autorized library to another. Please help!!!
    P.S. - I have attempted to get this to work by turning OFF my McAfee firewall. Windows firewall is disabled.
    Message was edited by: turcott

  • HP officejet Pro 8100 will print from an Iphone but not from my windows laptop

    HP officejet Pro 8100 will print from an Iphone but not from my windows laptop. I get an error stating "unable to communicate with printer"

    Hi Melatina66,
    Welcome to the HP Support forums.  I understand that when trying to print from your laptop that you get a communication error message.
    To better assist you, would you please provide some further information:
    1)       How is the printer connected (USB cable, ethernet or wireless)?
    2)      When you installed the printer on your laptop did you set it up with a USB cable?  If  yes, did you switch the connection type on the laptop from USB cable to ethernet/wireless?
    3)      What version of Windows operating system are you running on the laptop (Windows XP, Windows Vista, Windows 7, or Windows 8, etc)?
    4)      When printing from your iPhone are you using Apple's AirPrint or HP's ePrint app?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • MFA not working on Windows Server 2012 R2

    Been using MFA since PF days.  Deployed it successfully many times but for some reason it's not working with Windows Auth, Terminal Services on a Win 2012 R2 DataCenter box?  The machine was successfully added to my domain PhoneFactor group, I
    can see and add the machine on the master MFA.  Services are running but when I remote in I go right through without MFA stopping me?  Any ideas?
    TIA

    6.3.0 has just been released and 2012 R2 is *still* not supported. What the hell?!?
    "Version 6.3.0 of the Azure Multi-Factor Authentication Server adds the
      following additional functionality:
    * Added one-way SMS functionality for AD FS, RADIUS and User Portal
    * Added .csv file import for OATH tokens
    * Added support to parse phone numbers in E.164 format during import
      From the directory
    * Fixed problem preventing slave servers from performing MFA if the
      master server was unavailable. This problem was found to exist in
      all 6.2.x builds. All customers running 6.2.x should upgrade to 6.3.
    * Fixed directory sync issue for recursive security groups
    * Added additional logging to AD FS adapter
    * Other minor bug fixes and security improvements
    Known Issues:
    * Windows Authentication for Terminal Services is still not supported for
      Windows Server 2012 R2"
    So they added a whole stack of other functionality, but still didn't get around to taking a look at this bug. I'm stunned. Is there any sort of timeline on fixing this, or is 2012 R2 just going to remain unsupported forever?

  • HP Laserjet P1006 is not working on Windows 7 (64-bit).

    I lost my original CD-Driver and I tried to download the CD-Driver on HP website but it doesn't work when I click printing.  It seems that my HP Laserjet P1006 is not working on Windows 7 (64-bit).
    Can anyone give me a link that works for installing driver for HP Laserjet P1006 for Windows 7 (64-bit)?  
    Thanks for helping!

    Hi @achieverone ,
    I can help you with finding the drivers for the Laserjet P1006.
    Just to clarify, you were able to install the printer software, but it just isn't printing correct?
    Here are the two drivers available for Windows 7 64 bit.
    HP LaserJet P1000-P1500 Hostbased Plug and Play Basic Driver.
    HP LaserJet P1005/P1006/P1500 Printer Series Full Feature Software and Driver.
    Try and print a hardware self test on the printer to find out if it is a hardware or software issue.
    Open and close the lid five times quickly. It should print off a page with black lines on it.
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages)
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • CaptureDeviceManager.getDeviceList  is not working in Windows VISTA.When

    CaptureDeviceManager.getDeviceList is not working in Windows VISTA.When I run the Application from vista using a jar file.But it is running if i run it from class file without use the jar file.

    This pretty much says it all:
    No connection could be made because the target machine actively refused it.What version of Vista?
    What version of the agent? ... 10g is not a version number it is a marketing label
    Did you check to see if the agent is compatible with your operating system?
    My recommendation would be to get a real operating system: Either Oracle Linux or XP.

Maybe you are looking for

  • Installing iTunes 7.1.1.5 for Windows xp

    I have iTunes 6.0.4.2. I am trying to install v. 7.1.1.5, but it will not install. When I run the iTunes +QuickTime installer, I get the message: "The installation of QuickTime did not complete successfully. iTunes requires QuickTime.", and, "The ins

  • Error- Postings to G/L accounts with open item management are not permitted

    Hi, Can't we post to a GL, which is open item managed, in a non-leading ledger (statutory ledger)? We get this error when we try to post an entry, in the statutory ledger, to a GL that is open item managed. Can anybody explain this, please? Regards,

  • JNDI lookup using a proxy server

    Hi, I'm trying to use a weblogic server as a proxy server for a cluster of weblogic servers. The static and dynamic content delivery works fine but when I try to do a JNDI lookup from an applet client, I get a name not resolved exception. I guess, it

  • IPod 7th Generation - connection to car media system.

    My IPod Nano 7th Gen will not connect to my cars media system until I disconnect the Lightning connector and then plug it back into the IPod ? Surely there is another way to save wear and tear on the connector ?

  • Can you please help with this select statement.

    The following code has a result, I need to modify the select somehow which only gives me the rows which are common between all PLSTS. Any suggestions? Thank you SELECT DISTINCT P.PLST, P.MENU, I,PNL, P.ACCESS FROM AUTHITEM P, I.MENUITEM WHERE P.MENU