[Jtable Unicode and Save Dialog]

Hi all,
I'm doing a swing application in which I use Jtable.
In this Jtable, i want that the user can enter unicode character so
i do this :
Font font_unicode = new Font("Arial Unicode MS", Font.PLAIN, 13);
table.setFont(font_unicode);It works fine : the user can enter japanese character.
My problem is that when i want to save data that are in my jtable. I want to save it in a txt file(I use a txt filter), I loose unicode character.
I use a save dialog as you can see :
JFileChooser chooser = new JFileChooser();
          chooser.setFileFilter(info.main.Filter);
          chooser.setCurrentDirectory(new File("."));
          if (chooser.showSaveDialog(chooser) == JFileChooser.APPROVE_OPTION) {
               try {
                    BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(chooser
                              .getSelectedFile(), false));
                    PrintWriter fileWriter = new PrintWriter(bufferedWriter);
}I saw that in excel(office) there is a possibility to save in "unicode text" and I would like to know if it's also possible in swing. I really need it.
I'm waiting for your answer..
THX

thanks for your answer but i don't find the code for unicode.
and also i don't know if it's possible to add code for this :
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(chooser
                              .getSelectedFile(), false));
                    PrintWriter fileWriter = new PrintWriter(bufferedWriter);

Similar Messages

  • Open and Save Dialog Boxes Appear Briefly then Close

    Open and save dialogs on my MDD 867 flash briefly and then close themselves in my administrator account. All the other accounts are fine. This makes me suspect something in the Library. I just did a wipe and install plus Migration Assistant to no avail--which furthers my suspicion of Library problems.
    Anyone have any suggestions which file(s) could be the culprits?

    More than likely it's a conflict/corrupted amongst the various preference (plist) files. Log into a good admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.
    See http://discussions.apple.com/thread.jspa?messageID=4703015 for more details on this process.

  • Open and Save dialogs are painfully slow. Is there a solution?

    Open and Save dialogs are painfully slow. Is there a solution?

    I pulled this part out of one of the topics Barney-15E linked to. It absolutely works! The glacially slow Finder response has been driving me batty in Mavericks. Each time I restarted, it would take forever to list the startup drive when I opened it. Open and Save dialogues were also painfully slow to respond. Now they all snap open and list instantly. I used TextWrangler to comment out the line in the file auto_master, then ran the automount command in Terminal.
    Working workaround:
    Use the following statements in Terminal.
    sudo vi /etc/auto_master
    In this file comment out /net with #  (#/net .....)
    sudo automount -vc
    Fixed.
    Confirmed here too both for Preview.app Open file sluggishness and Finder window population. Thanks Snaggletooh_DE!
    Couple of notes:
    (1) Some folks may be more comfortable using a GUI editor like TextWrangler instead of vi
         a) in the Finder use the GO menu and select Go to Folder
         b) type  '/etc' ( without single quotes ) in the Go to folder dialog box and press the Go button
         c) Right ( Control  ) click the auto_master file in the resulting Finder window. Select "Open with...." and use TextWrangler ( your choice )
         d) Comment out the line by inserting a '#' ( pound sign ) as noted in Snaggletooth_DE's instructions
         e) Save the file  ( probably need to authenticate with your admin password  )
         f) Do the 'sudo automount -vc' per Snaggletooth_DE's instructions. Will need to authenticate again.
    (2) Notice Snaggletooth_DE described this as a "workaround" because it bypasses an Apple bug. Presumably most people have not changed their auto_master file and it worked fine in Mountain Lion and prior. In other words: If you haven't done so already, please continue to submit feedback and bug reports to Apple for this issue.
    Kudos to Snaggletooth_DE for figuring out code is trying to look at network ( NFS ) volumes that maybe don't exist.

  • Open and Save dialog boxes are sorted reverse alpahbetically by default

    I have a user that experiences the same frustrating experience every time she restarts Apple Mail. All of her open and save dialog boxes in Mail are sorted from Z to A. She can click the name field to change the sort, but it will return to Z-A if she quits and reopens the program. The Finder is set (and stays) at A-Z. Other applications do not exhibit this problem. I am loathe to reset the preferences since that means having to set up accounts again. Restarting the computer and removing user caches made no difference. Any suggestions?  This is an iMac Mid 2008 running Mac OS X 10.6.8.

    I solved my own question through trial and error.
    Just select "None" on the dropdown selector (see screen capture, above) and the Open/Save dialog will revert to the older version.

  • Open and Save Dialogs Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become very slow to open and populate since installing Snow Leopard, when the machine is connected to a Windows server. Disconnecting from the server solves the problem; reconnecting causes it to reappear.
    This only happens on some of my machines, and not others
    Any thoughts on what this could be. The delay is significant (about 10 seconds in all).

    Roy,
    I've got the same problem. I've been charting the slowness, i.e. the time until the app responds and opens the save dialog box, and most apps hover around 2 minutes of waiting.
    My home network consists of a belkin n+ router (running only with the N radio, and WPA2 security), one ethernet-connected powerbook with a USB-connected hard disk (640GB+), and my MBP connecting by wireless. The USB HD is used as a Time Machine backup disk, and the backups are extremely slow, on the order of 2 GB's per hour at most.
    That said, I called up Apple Tech Support and they had me flash my PRAM, restart the machine, and Reset Safari (since that was the app I called about). These efforts, unfortunately, did not fix the issue.
    I will be passing on the fact that Tech Support's efforts did not solve the problem--maybe they'll get back to me on the issue. If so, I'll post it here.

  • CS5 slow to get the 'open' and 'save' dialog box over networked computer.

    I have been having this problem since the suite was installed, but recently has gotten much slower. Any time I click open or save it takes 8-10 seconds just for the dialog box to come up.  CS1 was lightening fast - I know that was ages ago, but I can't help compare the two.  I have the same problem with InDesign and Illustrator. The suite is running on a Windows 7 machine through a home network, accessing files from an XP machine as well as a Buffalo Linkstation.  Once the dialog box comes up, and I double click, the file is pretty quick to appear.  I have researched online and I believe the problem to be somewhere in the network or the settings.  The network is quick, Windows Explorer has no delay in opening or finding files, nor do other programs outside of Creative Suite. I did an experiment to narrow down the problem - I closed Photoshop, unplugged the network cable, and reopened the program.  AMAZING - it was SO FAST to open the dialog box for both opening and saving files!  I then closed Photoshop again, plugged the network cable back in, and opened Photoshop.  It was back to the slow opening of the dialog box.  Everything else in the programs runs fine - no delay when performing operations in any of the Creative Suite - it has to do with the network and how CS is looking for the files.  Can anyone help me, I am so frustrated - this is adding unnecessary time to everything I do and I dread opening and saving any files!!

    Once again - thank you!
    We used to have a network storage device attached to our home network, but it crashed and we replaced it with another model.  A while back I had added it as an item to display in the places bar.  When we removed it from the network, the link on the left side disapeared, so I forgot all about it.  When I read your posting it jogged my memory.  I searched the subject to remember how I had made the change and found this posting from Adobe Community: http://forums.adobe.com/thread/795196 (its in #6).  I found the original storage device in the places bar, removed it and replaced it with the new device.  I opened Photoshop and Acrobat and both open and save dialog boxes appear as they should - the problem has been resolved!  THANK YOU!

  • Open and Save Dialog Box Font Size

    Greetings. Does anyone know how to change the font and icon sizes in Open and Save Dialog boxes in OSX 10.8? Back in Snow Leopard days, the parameters were stored in the users .GlobalPreferences.plist. But they do not appear to be there - or at least I don't recognize them in OSX 10.8. I recently started using a 27 inch Cinema Display, and the fonts are a bit small for me.
    I appreciate any help anyone can offer.

    Good question!  Do submit feedback to Apple.  Maybe if enough of us complain about this fundamental issue, they'll finally listen!

  • Open and save dialog boxes just show earlier and can't be sorted

    Mountail Lion has new open and save dialog boxes that are displayed in groupings by date and other variables.
    My Photoshop CS5 shows "Previous 7 days", "Earlier", etc. I can no longer adjust this sorting. Often, just the "Earlier" shows and current files are missing from the box. I used the sorting option but can't sort within the list.
    My inDesign files still use the earlier open and save dialog box. Where can I switch between these options?
    Photoshop Open:
    inDesign Open:

    I solved my own question through trial and error.
    Just select "None" on the dropdown selector (see screen capture, above) and the Open/Save dialog will revert to the older version.

  • Open and Save Dialogs Very Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become +very slow+ to open and populate since installing Snow Leapoard.
    This only happens on one of my machines, and not others. (I've unmounted all connected drives, just to eliminate that possibility.)
    Any thoughts on what this could be. The delay is significant (and feels like the old days of Windows, which I thought I'd left behind).

    The problem now appears to have gone away. The only change I've made is that I replaced an external drive that had recently died with a new one and gave it the same name as the failed drive.
    Could a the dead drive have left something behind (or failed to leave something behind) that is stumbled over (or looked for and not found) each time the file system was accessed, and that got cleaned up (or re-created) when the new drive was connected and renamed?

  • How to get rid of "Computer" in Open and Save dialogs

    Is this new? I don't remember that before the last or second-last OS update the computer's name appeared, above the mounted volumes, in the left panel of the Open and Save dialogs.
    Note that in the Finder windows, the computer doesn't appear, as set in the Finder's Preferences.
    So obviously my question is: How to remove the computer's name from the Open and Save dialogs' left panel?
    TIA,
    JL

    You can most often just take the default action by pressing the "joystick" center button (without going through the menus).

  • My "Open" and "Save" dialog boxes in Logic Pro...

    Hi,
    Wondering if you've have had this issue. My Open / Save as well as any Import dialog boxes in Logic Pro have oddly spaced columns. I resize them accordingly (I prefer Column view BTW), get them looking right by holding the "Option" key while resizing to have all columns the same width...you know, the same procedure you'd use in the finder.
    Anyway, each time a dialog box appears my "Sidebar" column along the left-hand side is like 5 inches wide, and each column to the right of that is very narrow despite my setting it up the way I'd like it to look during the previous Open/Save/Import.
    Is there a preference for this that I'm missing?
    Thanks in advance for any help.
    -dave
    P.S. I'm running Logic Pro 9.1.5 in 64bit mode (32bit mode also exhibits the same behavior).  I'm running OSX Lion, 10.7.2

    I posted a similar post regarding this observation.  It appears that only you and I are the only ones getting this behavior from Logic and Lion.  In all honesty, I don't think anybody cares or no one installed Lion for use with Logic yet.  In either case, it has been widely ignored.
    I too tried resizing, but get the same result every time.  Its not just open and save windows, its the same with all windows.  This gets especially annoying when ad    ding samples to EXS24.  Some people have different work arounds for adding samples to most things, such as the browser side window.  Regardless of any workaround, nothing solves the remaining window space problem.  This window bug is something that should not exist within Logic.  It makes Logic look like freeware.
    For many, Logic Pro X might be the ultimatum.  It might be time to jump ship.
    LGK

  • Saved Searches in Open and Save Dialogs?

    Has anyone else notices that saved searches fail in Open/Save Dialogs?
    I've got a date-based saved search that I've placed in the "Places" section of the sidebar — why? Because I felt like it.
    However, when I access this saved search, I get incorrect results — or results from day or two ago.
    I swear at one point that this functioned correctly.
    Am I missing something?
    d

    thanks for the suggestions i did abit more digging to find it was a corruption in windows. the fix was:-
    run command prompt as administrtor and run sfc /scannow
    after a reboot everything works fine

  • Open and Save dialogs

    Hello Mac users:
    I wonder if i can delete a file from the open/save dialogs.
    Thanks for your help.

    It may be an option if provided by the developer but most do not allow it. But if you attempt to overwrite a file by the same name you will be prompted to abort or replace.

  • G4 open and save dialogs are totally buggy

    Hey folks --
    so, this is a new one to me, on a g4 pinstripe (antique) machine at work: it's across many apps (Illustrator, Photoshop, TextWrangler), but not Apple ones. What happens is this:
    When accessing a save or open dialog, double-clicking a folder in the list (I don't like column view) will, instead of moving into that folder the little triangle will turn as if it was clicked instead, dumping the contents.
    Double-clicking one of THOSE folders will move down one directory deeper and open the selected folder's triangle as well (so there's only one level of open triangles displayed).
    Using cmd-down-arrow to move deeper will work (it moves deeper instead of turning the triangle) BUT moving back out (cmd-up-arrow) will jump TWO directories back instead of just one!
    Trying to use the drop-down menu will immediately crash the app.
    Oddly, this is only true of directories on our (g5 oSX) server, NOT local directories. Also as a side effect (or possibly a clue) none of the "recent places" are on the server, ONLY local. This is really, really difficult to deal with.
    ANY ideas? I'm guessing "trash a preferences file", but which one? Thanks!

    Guess I'll just help myself, here: had to do a few things.
    1) show invisible files.
    2) trash the offending "server" folder in the user's "volumes" folder.
    2a) at this point, well and good -- but it wouldn't empty the trash because the file ".automount[something]" was locked. And the app "open" dialogs all still defaulted to that (bad) directory... now in the trash.
    3) logged in as root, changed permissions, unlocked file, trashed that sucker HARD.
    4) logged back in as normal user. All is well with the world. FINALLY.

  • CS5 64-Bit packages crashing in open and save dialogs

    Hi all,
    I am having a big problem running photoshop 64-bit, it opens ok but when you go to file and click either Open or Save the application just closes with no error report. I have been on quite a few forums about this, common answers seem to be the following:-
    Open GL (switch off or take vertical option Off)
    update graphics driver (fully up to date)
    Windows Updates ( fully up to date)
    Delete the CS5 Service Manager folder out of the local profile
    Stop WACOM service (haven't got a tablet installed)
    Create new user (unfortunately the default user profile has been overwrite for sysprep purposes so nit affects every new user)
    None of which have worked, I would really like to avoid rebuilding as it takes about 2 days to rebuild from scratch. We are using CS5 on a College network I currently have over 250 pc's using Windows 64-bit, on four different pc specs the main spec is as follows:-
    Core i7-2600S
    4 GB Ram
    Intel Q67 Express Chipset Family (version 9.2.0.1025)
    Intel Processor Graphics 2000 (Version 8.15.10.2509)
    Video Bios A00 (2089)
    This spec is only used for photoshop and illustrator, my other specs are for premiere and after effects which also have the same problem although premiere is slightly different it allows you to open the dialog box for import then reports not responding and gives you a dialogue do you want to report to windows but the XML file isn't created.
    Has anyone encountered a similar problem
    Please let me know
    cheers
    lee

    thanks for the suggestions i did abit more digging to find it was a corruption in windows. the fix was:-
    run command prompt as administrtor and run sfc /scannow
    after a reboot everything works fine

Maybe you are looking for

  • Getting 10.4 onto a G3 iMac w/o DVD drive

    So I'm having some Tiger taming trouble. I've been quite happy with my G4 iBook since I bought it; Tiger came with it, and I haven't made the Leopard leap, so it's running 10.4.11 with all current updates. I still have my old G3 iMac (Summer 2001 "Ki

  • Error message on startup of ADE

    "Error getting License, License Server Communication Problem: E_AD_EPT_REQUEST_EXPIRED; however, when I look at the authorization, it says "This Computer is Already Authorized".  The book still comes up but how do I get rid of the error message?

  • What if i dont want to 'restore' my ipod??help!

    I usually use my ipod on my dad's imac, but now want to use it on my own pc, on which i have itunes. I keep getting a message telling me i need to update my ipod, but it will only give me the 'restore' option, which will erase all my music from my ip

  • Double payment without authorization

    I renuew my subscription yesterday before 8:00 AM I got a message from my bank acount certifying the charge and today I got a second charge made once again before 8:00 AM. What is wrong with my account? Why I have this double charge in less than one

  • Sales Order (Urgent)!

    Hi Gurus, I have come across with this requirement, which is as follows: You can create and save a sale order with out having any of the line items in that order. My requirement is that i should not be able to save the Sales Order if there is not lin