Problem with storing and retriving a different langauge font in mysql

hi,
i have problem with storing and retriving a different character set in
mysql database ( for example storing kannada font text in database)
it simply store what ever typed in JTextField in database in the
formate ??????????? and it showing ???????? .
please what can i do this problem.
thanks
daya

MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
1. make sure you know what character set is used for the database table.
2. make sure you know what character set is used by Java (default to UTF-8 ..
sort off - there are few character that it cannot save). You can enforce the
character set being sent to the database by the String's getBytes(String charsetName) method.
3. make sure the application you use to view the table use the correct character set
if it use a different character set, then any character that it does not recogized
will be replaced with a quetion mark '?'....eventhough the data is correct.

Similar Messages

  • Problem with connecting and syncing   (quicktime.qts)

    Hi,
    I have a problem with connecting and syncing my Iphone to itunes.
    iphone alone on PC -> uploading files (fotos) is possible
    itunes starts normaly, if iphone is not conected.
    if i connect iphone after starting itunes, or if i start itunes after connecting iphone i get an itunes-error with message:
    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    ModVer: 7.65.17.80 Offset: 00909a47
    i test different things...
    - used another USB-port
    - used another PC
    - used macbook of my wife instead PC
    - deinstalled and new installed of itunes (older and newer versions) folow tutorials of apple
    - use another USB-Cable...
    I'm resigned, Please help me..
    Tom

    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    In this context, that can sometimes indicate trouble with a content file on the phone (or Touch).
    Do you have any podcasts stored on the iPhone at the moment? If so, if you delete them from the phone, can you connect to iTunes without the error?

  • Problem with Frameset and page session

    All,
    I am having a problem with Framesets and page session attributes. I
    have a client who's application uses a three frame frameset. They
    have a requirement on several pages that when a button is pushed two
    different pages load into the right and left frames. The way they
    are accomplishing this is that on the pages were this is required,
    they are adding target="_top" to the form declaration in their JSP.
    Then they store the page names they want to display in session,
    forward the request to the frameset, the frameset then determines
    which pages to display based on the session variables. This works
    exactly how they want it to.
    Here is our problem. We need to store some information in page
    session attributes. We have tried to get a handle to the desired
    view bean and call the setPageSessionAttribute method. However,
    since we are forwarding to the frame and the frame handles displaying
    the desired JSP, that view bean we had the handle to is not the one
    that is created to hand the display of the JSP.
    The next thing I tried was to use the request object. In the
    handleBtnRequest method, I set an attribute in the request object. I
    then query the request object in the beginDisplay event of the view
    bean. When the frame is reset the request object does not contain
    the attribute that I have set. I'm confused by this because I
    thought the request object would be available to me throughout the
    life of the request.
    Given the above information, does anyone have any suggestions? Also,
    am I going about this in the wrong manner.
    The client had been storing this information in user session, which
    seemed to work. However, since the data being stored dealt
    specifically with data for the requested page, we felt that storing
    it as page session was more appropriate.
    Thanks,

    The script on your page web page has some obvious bugs.. Best
    fix those
    first before looking to blame Flash.
    Jeckyl

  • Random problems with Mail and ACL

    Am running 10.5.2 on a 2.8 GHz Intel iMac
    Have been experiencing problems with Mail.
    As I'm the only user I've set up Mail Preferences so that a password isn't required every time. However, on occasions, but not always, I get a repeated request for my password - on two of the three Mail accounts I have. No matter how many times I key in the password I keep being asked again. The only solution is to shut the computer down and come back to it sometime later when - most times - it works fine.
    I have an iPod Touch which lifts mail off my server, via the same wifi connection and it works fine.
    Then I had a problem where I couldn't quit Mail. I rebooted several times but Mail continued to refuse to Quit. I had to do a Force Quit every time.
    I've tried repairing permissions. Takes ages then get the following relating to ACL's.
    Whilst I've been using Macs since the mid 80's I'm not a techie and haven't got a clue what ACL's are or what they do.
    In the past when I've (regularly) run Repair Permissions as part of my system housekeeping I've had no problems.
    However, now when I run a Permissions repair this is what I get:
    Repairing permissions for “Macintosh HD”
    Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- .
    ACL found but not expected on "System/Library/User Template/English.lproj/Sites".
    Group differs on "Library/PreferencePanes", should be 0, group is 80.
    Permissions differ on "Library/PreferencePanes", should be drwxr-xr-x , they are drwxrwxr-x .
    ACL found but not expected on "System/Library/User Template/English.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/English.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/English.lproj/Downloads".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/MIDI Drivers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Compositions".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Input Methods".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Screen Savers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Voices".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library".
    ACL found but not expected on "System/Library/User Template/English.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/English.lproj/Music".
    ACL found but not expected on "System/Library/User Template/English.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/English.lproj/Public".
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/jvm.cfg", should be 0, user is 95.
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/classlist" , should be 0, user is 95.
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Public".
    ACL found but not expected on "System/Library/User Template/German.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/German.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/German.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library".
    ACL found but not expected on "System/Library/User Template/German.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/German.lproj/Music".
    ACL found but not expected on "System/Library/User Template/German.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/German.lproj/Public".
    ACL found but not expected on "System/Library/User Template/French.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/French.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/French.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library".
    ACL found but not expected on "System/Library/User Template/French.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/French.lproj/Music".
    ACL found but not expected on "System/Library/User Template/French.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/French.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Public".
    ACL found but not expected on "System/Library/User Template/da.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/da.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/da.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library".
    ACL found but not expected on "System/Library/User Template/da.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/da.lproj/Music".
    ACL found but not expected on "System/Library/User Template/da.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/da.lproj/Public".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Music".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Public".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Music".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Public".
    ACL found but not expected on "System/Library/User Template/no.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/no.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/no.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library".
    ACL found but not expected on "System/Library/User Template/no.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/no.lproj/Music".
    ACL found but not expected on "System/Library/User Template/no.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/no.lproj/Public".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Music".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Public".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Music".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Public".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Music".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Public".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Music".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Public".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Music".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Public".
    Permissions repair complete
    After a reboot I ran Permissions Fix again, several times, every time with the same results?
    I went into into System/Library/User Template but the folder has a "no entry" i.e. red circle with white horizontal bar. I clicked on this but get message I don't have sufficient access privileges.
    I'm the only user and admin.
    Can someone tell me what's going on?

    Hi Charlie,
    The Mail app is requesting my password - again and again.
    The odd thing is that I have a three email accounts - all set up with the password stored in Mail Prefs so I don't have to enter each time - but only two accounts give me problems.
    The other strange thing is that when I boot up the computer first thing in the morning and check my mail there's rarely (if ever) a problem.
    I leave the computer on during the day then check my mail again after lunch - when the computer has been 'sleeping'. It's usually then that I hit a problem. Even rebooting at this stage doesn't always work. It's as if my iMac needs be shut down for several hours to work consistently.
    Something else I realised yesterday was that when the computer has been sleeping and I check Mail (in the afternoon) and Mail starts requesting password over and over again - and the black whirly hovers over the account - its often impossible to do a simple Quit on Mail. I have to do a Force Quit.
    First time I've ever experienced such confusing problems with Macs - and been using them since around 1986!

  • Problem with JFrame and busy/wait Cursor

    Hi -- I'm trying to set a JFrame's cursor to be the busy cursor,
    for the duration of some operation (usually just a few seconds).
    I can get it to work in some situations, but not others.
    Timing does seem to be an issue.
    There are thousands of posts on the BugParade, but
    in general Sun indicates this is not a bug. I just need
    a work-around.
    I've written a test program below to demonstrate the problem.
    I have the problem on Solaris, running with both J2SE 1.3 and 1.4.
    I have not tested on Windows yet.
    When you run the following code, three JFrames will be opened,
    each with the same 5 buttons. The first "F1" listens to its own
    buttons, and works fine. The other two (F2 and F3) listen
    to each other's buttons.
    The "BUSY" button simply sets the cursor on its listener
    to the busy cursor. The "DONE" button sets it to the
    default cursor. These work fine.
    The "SLEEP" button sets the cursor, sleeps for 3 seconds,
    and sets it back. This does not work.
    The "INVOKE LATER" button does the same thing,
    except is uses invokeLater to sleep and set the
    cursor back. This also does not work.
    The "DELAY" button sleeps for 3 seconds (giving you
    time to move the mouse into the other (listerner's)
    window, and then it behaves just like the "SLEEP"
    button. This works.
    Any ideas would be appreciated, thanks.
    -J
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BusyFrameTest implements ActionListener
    private static Cursor busy = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
    private static Cursor done = Cursor.getDefaultCursor();
    JFrame frame;
    JButton[] buttons;
    public BusyFrameTest (String title)
    frame = new JFrame (title);
    buttons = new JButton[5];
    buttons[0] = new JButton ("BUSY");
    buttons[1] = new JButton ("DONE");
    buttons[2] = new JButton ("SLEEP");
    buttons[3] = new JButton ("INVOKE LATER");
    buttons[4] = new JButton ("DELAY");
    JPanel buttonPanel = new JPanel();
    for (int i = 0; i < buttons.length; i++)
    buttonPanel.add (buttons);
    frame.getContentPane().add (buttonPanel);
    frame.pack();
    frame.setVisible (true);
    public void addListeners (ActionListener listener)
    for (int i = 0; i < buttons.length; i++)
    buttons[i].addActionListener (listener);
    public void actionPerformed (ActionEvent e)
    System.out.print (frame.getTitle() + ": " + e.getActionCommand());
    if (e.getActionCommand().equals ("BUSY"))
    frame.setCursor (busy);
    else if (e.getActionCommand().equals ("DONE"))
    frame.setCursor (done);
    else if (e.getActionCommand().equals ("SLEEP"))
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    else if (e.getActionCommand().equals ("INVOKE LATER"))
    frame.setCursor (busy);
    SwingUtilities.invokeLater (thread);
    else if (e.getActionCommand().equals ("DELAY"))
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    System.out.println();
    Runnable thread = new Runnable()
    public void run()
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.println (" finished");
    public static void main (String[] args)
    BusyFrameTest f1 = new BusyFrameTest ("F1");
    f1.addListeners (f1);
    BusyFrameTest f2 = new BusyFrameTest ("F2");
    BusyFrameTest f3 = new BusyFrameTest ("F3");
    f2.addListeners (f3); // 2 listens to 3
    f3.addListeners (f2); // 3 listens to 2

    I've had the same problems with cursors and repaints in a swing application, and I was thinking of if I could use invokeLater, but I never got that far with it.
    I still believe you would need a thread for the time consuming task, and that invokeLater is something you only need to use in a thread different from the event thread.

  • Problem with DMGs and error: "No Mountable File Systems"

    Problem with DMGs and error: "No Mountable File Systems"
    The files are not corrupt. The problem is occurring with all DMGs that are apparently formatted in MS-DOS FAT16. No the file will not mount with Disk utility or any other disk mounter programs I have found.
    This is now the second time this occurred and now effects my MBP and my iMac. First time i spent days with Apple support and the only solution was ultimately back up the data, reformat the HD, start over from scratch and reload everything. That lasted about a month before the problem resurfaced and is now an issue on both iMac and MBP.
    I tried to identify all the programs I installed immediately before the error, as I am convinced it is the result of a software conflict.
    Recent programs includes:
    1) upgrading from Parallels 5.5 to 6.0 on both machines.
    2) using an HP secure II usb drive and setting up a secure disk.
    3) installing new itunes 10
    4) new update to Flip For Mac.
    The files affected are downloaded dmgs, including personal brain and google earth, both which are formatted in FAT16.
    Any help or thoughts? Apple has now spent hours trying and they say i now have to reformat and wipe and start over. That is unacceptable and based on pasted experience the problem is likely to repeat itself. having to wipe and rebuild a HD ever month is not an solution. i need to fid the root problem.
    In the meantime, anyone got a real solution on how to extract the data for a DMG using a different method?
    Message was edited by: remaia

    Where you able to find the solution, i am having the same problem, all was fine till i install some programs only same one i saw did we both did was flip4mac i uninstalled it but the problem is still there, i also restored and erased the hardrive but im not up to doing that all over again. If you found anything out let me know i would greatly appreciate it

  • Problem with Preview and PSD files - random gray square

    Hi guys, hope you can help...
    I've got a problem with Preview and PSD files.
    If I open in Preview both an original jpg straight from my reflex and the photoshop version of the same picture, the psd file presents a gray square (of what it seems unrendered image) in a random area of the photo (sometimes in the center.). The square is quite big...
    If I zoom in or zoom out it disappears...if I scroll to another photo and then back to the psd, the square it's there again...sometimes in a different position.
    I've tried the same psd on my older iMac with leopard...and got no problem at all.
    I suspect it got something to do with my Ati...
    (this is the second iMac 27...the first went back for gray banding on the lcd screen and flickering and yellow tinge........)
    Thanks for your help.
    DAve.

    maybe I'm onto something...
    I've just found out that opening Preview in 32bit mode (instead of default 64bit) works flawlessly with any psd files. If I switch back to 64bit mode, Preview is much faster but the gray square comes back...
    It seems like the i7 is much faster than the Ati....
    Any more realistic ideas?

  • Problem with modules and ModuleLoader

    Hi everybody,
    i'm facing a real funny problem with modules and
    moduleLoader, i hope
    it's not (only) my fault anyway...
    If i create a normal flex project with fBuilder, i'm able to
    use
    modules in a lot of different ways (as mxml, as as in a
    function etc..)...
    but if i try to use them in my fds application (created with
    fds
    eclipse plugin or as a dataServices project) i can't use
    modules. The compile-time error message is
    always the same:
    Could not resolve <mx:ModuleLoader> to a component
    implementation
    I tried a lot of solutions, paying attention to import all
    the classes, to declaration, naming, positioning
    etc...but nothing changes, this thing is drivining me
    crazy!!!.
    I will appreciate anykind of help.
    TIA
    Fabio

    Any idea?

  • Problem with Roles and Triggers

    I'm having a strange problem with Roles and Triggers in Oracle. It's a little difficult to describe, so bear with me...
    I'm trying to create a trigger that inserts records into a table belonging to a different user/owner. Of course, the owner of this trigger needs rights to insert records into this other table. I find that if I add these rights directly to the owner of the trigger, everything works okay and the trigger compiles successfully.
    However, if I first create a Role and grant the "insert" rights to it, and then assign this role to the owner of the trigger, the trigger does not compile successfully.
    To illustrate this, here's an example script. I'm using Oracle 10g Release 2...
    -- Clean up...
    DROP TABLE TestUser.TrigTable;
    DROP TABLE TestUser2.TestTable;
    DROP ROLE TestRole;
    DROP TRIGGER TestUser.TestTrigger;
    DROP USER TestUser CASCADE;
    DROP USER TestUser2 CASCADE;
    -- Create Users...
    CREATE USER TestUser IDENTIFIED BY password DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" QUOTA UNLIMITED ON "USERS";
    CREATE USER TestUser2 IDENTIFIED BY password DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" QUOTA UNLIMITED ON "USERS";
    CREATE TABLE TestUser.TrigTable (TestColumn VARCHAR2(40));
    CREATE TABLE TestUser2.TestTable (TestColumn VARCHAR2(40));
    -- Grant Insert rights on TestTable to TestRole...
    CREATE ROLE TestRole NOT IDENTIFIED;
    GRANT INSERT ON TestUser2.TestTable TO TestRole;
    -- Add TestRole to TestUser. TestUser should now have rights to INSERT on TestTable
    GRANT TestRole TO TestUser;
    ALTER USER TestUser DEFAULT ROLE ALL;
    -- Now, create the trigger. This compiles unsuccessfully...
    CREATE TRIGGER TestUser.TestTrigger AFTER INSERT ON TestUser.TrigTable
    BEGIN
    INSERT INTO TestUser2.TestTable (TestColumn) VALUES ('Test');
    END;
    When I do a "SHOW ERRORS;" after this, I get:
    SQL> show errors;
    Errors for TRIGGER TESTUSER.TESTTRIGGER:
    LINE/COL ERROR
    2/3 PL/SQL: SQL Statement ignored
    2/25 PL/SQL: ORA-00942: table or view does not exist
    SQL>
    As I said above, if I just add the Insert rights directly to TestUser, the trigger compiles perfectly. Does anyone know why this is happening?
    Thanks!
    Adrian

    Hi Raghu,
    If the insert rights exist only on TestRole, and TestRole is assigned to TestUser, I can do the INSERT statement you suggest with no problems if I just execute it from SQLPlus (logged in as TestUser).
    The question is, why does the same INSERT fail when it's inside the trigger?

  • Problem with JTextPane and StateInvariantError

    Hi. I am having a problem with JTextPanes and changing only certain text to bold. I am writing a chat program and would like to allow users to make certain text in their entries bold. The best way I can think of to do this is to add <b> and </b> tags to the beginning and end of any text that is to be bold. When the other client receives the message, the program will take out all of the <b> and </b> tags and display any text between them as bold (or italic with <i> and </i>). I've searched the forums a lot and figured out several ways to make the text bold, and several ways to determine which text is bold before sending the text, but none that work together. Currently, I add the bold tags with this code: (note: messageDoc is a StyledDocument and messageText is a JTextPane)
    public String getMessageText() {
              String text = null;
              boolean bold = false, italic = false;
              for (int i = 0; i < messageDoc.getLength(); i++) {
                   messageText.setCaretPosition(i);
                   if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && !bold) {
                        bold = true;
                        if (text != null) {
                             text = text + "<b>";
                        else {
                             text = "<b>";
                   else if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        // Do nothing
                   else if (!StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        bold = false;
                        if (text != null) {
                             text = text + "</b>";
                        else {
                             text = "</b>";
                   try {
                        if (text != null) {
                             text = text + messageDoc.getText(i,1);
                        else {
                             text = messageDoc.getText(i, 1);
                   catch (BadLocationException e) {
                        System.out.println("An error occurred while getting the text from the message document");
                        e.printStackTrace();
              return text;
         } // end getMessageText()When the message is sent to the other client, the program searches through the received message and changes the text between the bold tags to bold. This seems as if it should work, but as soon as I click on the bold button, I get a StateInvariantError. The code for my button is:
    public void actionPerformed(ActionEvent evt) {
              if (evt.getSource() == bold) {
                   MutableAttributeSet bold = new SimpleAttributeSet();
                   StyleConstants.setBold(bold, true);
                   messageText.getStyledDocument().setCharacterAttributes(messageText.getSelectionStart(), messageText.getSelectionStart() - messageText.getSelectionEnd() - 1, bold, false);
         } //end actionPerformed()Can anyone help me to figure out why this error is being thrown? I have searched for a while to figure out this way of doing what I'm trying to do and I've found out that a StateInvariantError has been reported as a bug in several different circumstances but not in relation to this. Or, if there is a better way to add and check the style of the text that would be great as well. Any help is much appreciated, thanks in advance.

    Swing related questions should be posted in the Swing forum.
    Can't tell from you code what the problem is because I don't know the context of how each method is invoked. But it would seem like you are trying to query the data in the Document while the Document is being updated. Try wrapping the getMessageText() method is a SwingUtilities.invokeLater().
    There is no need to write custom code for a Bold Action you can just use:
    JButton bold = new JButton( new StyledEditorKit.BoldAction() );Also your code to build the text String is not very efficient. You should not be using string concatenation to append text to the string. You should be using a StringBuffer or StringBuilder.

  • Problem with Windows7 and Adobe Flash freezing computer?

    Hello All, There is a problem with Windows7 and my Adobe Flash causing my computer to freeze. So, Skype, videos, etc will not work. Have tried many things to solve problem. Can Oracle VM be used to run a different operating system...such as XP or Vista where Flash will work properly? I would hate to have a new operating system installed on a new computer. thanks

    If you mean Oracle VM VirtualBox, then yes, definitely. A free download, it installs and runs great on Windows 7. http://www.virtualbox.org/

  • Problem with Facetime and my MacBookPro camera

    Hello,
    I've got a MacBookPro and I have a problem with Facetime and my front camera.
    When I have a discussion with an iMac or an other MacBook the image received by the other person becomes fix.
    To unfix it I have to put my finger on my camera and then everything is good until the next time, 4 to 10 seconds later I've got the problem again.
    Perhaps somebody can help me.
    My head on my screen is always good even when the bug appear on my correspondent's screen.
    For information, the 2 mac have the same iOS version (OSX Lion) and Facetime version.

    Hi Dave,
    Edit: Well, I guess I was lost when I posted this. My answer was regarding a problem with OS X, not iOS. I'm going to leave the answer here in case someone else with a Facetime for Mac issue can benefit, because when you're searching for "Facetime AND Login", you could land in any discussion area. -Jerry
    Keychain Access.app is in your Utilities folder in your Applications folder.
    The path will be: Macintosh HD > Applications > Utilities > Keychain Access.app.
    Keychain is where all your passwords are stored for those applications that you don't want to have to manually log into all the time.
    It's a handy app to become familiar with, for instance if you want to look up a password or user name from the past.
    Hope this helps you.
    Jerry

  • Problem with writing and reading using serialization

    I am having a problem with writing and reading an object that has another object in it. The purpose of the class is to write a order that has multiple items in it. And there will be several orders. This is for an IB project, where one of the requirements is to utilize a hierarchical composite data structure. That is, it is "one that contains more than one element and at least one of the elements is a composite data structure. Examples are, an array or linked list of records, a record that has one field that is another record, or an array". The code is shown below:
    The error produced is
    java.lang.NullPointerException
         at SamsonRubberIndustries.CustomerOrderDetails.createCustOrdDetailsScreen(CustomerOrderDetails.java:150)
         at SamsonRubberIndustries.CustomerOrderDetails$1.run(CustomerOrderDetails.java:78)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    public class CustOrdObject implements Serializable {
         public int CustID;
         public int CustOrderID;
         public Object OrderDate;
         public InnerCustOrdObject[] innerCustOrdObj;
         public float GrandTotal;
         public int MaxItems;
         public CustOrdObject() {}
         public CustOrdObject(InnerCustOrdObject[] innerCustOrdObj,
    int CustID, int CustOrderID, Object OrderDate,
    float GrandTotal, int innerarrlength, int innerarrpos, int MaxItems) {
              this.CustID = CustID;
              this.CustOrderID = CustOrderID;
              this.OrderDate = OrderDate;
              this.GrandTotal = GrandTotal;          
              this.MaxItems = MaxItems;
              this.innerCustOrdObj = new InnerCustOrdObject[MaxItems];
         public InnerCustOrdObject[] getInnerCustOrdObj() {
              return innerCustOrdObj;
         public void setInnerCustOrdObj(InnerCustOrdObject[] innerCustOrdObj) {
              this.innerCustOrdObj = innerCustOrdObj;
         public int getCustID() {
              return CustID;
         public void setCustID(int custID) {
              CustID = custID;
         public int getCustOrderID() {
              return CustOrderID;
         public void setCustOrderID(int custOrderID) {
              CustOrderID = custOrderID;
         public Object getOrderDate() {
              return OrderDate;
         public void setOrderDate(Object orderDate) {
              OrderDate = orderDate;
         public void setGrandTotal(float grandTotal) {
              GrandTotal = grandTotal;
         public float getGrandTotal() {
              return GrandTotal;
         public int getMaxItems() {
              return MaxItems;
         public void setMaxItems(int maxItems) {
              MaxItems = maxItems;
    public class InnerCustOrdObject implements Serializable{
         public int ItemNumber;
         public float UnitPrice;
         public int QuantityRequired;
         public float TotalPrice;
         public InnerCustOrdObject() {}
         public InnerCustOrdObject(int ItemNumber, float
    UnitPrice, int QuantityRequired, float TotalPrice){
              this.ItemNumber = ItemNumber;
              this.UnitPrice = UnitPrice;
              this.QuantityRequired = QuantityRequired;
              this.TotalPrice = TotalPrice;
         public int getItemNumber() {
              return ItemNumber;
         public void setItemNumber(int itemNumber) {
              ItemNumber = itemNumber;
         public int getQuantityRequired() {
              return QuantityRequired;
         public void setQuantityRequired(int quantityRequired) {
              QuantityRequired = quantityRequired;
         public float getTotalPrice() {
              return TotalPrice;
         public void setTotalPrice(float totalPrice) {
              TotalPrice = totalPrice;
         public float getUnitPrice() {
              return UnitPrice;
         public void setUnitPrice(float unitPrice) {
              UnitPrice = unitPrice;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems;
         private static boolean FileExists, recFileExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.dat");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                 innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord-1);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              //TotPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++CurrentRecord;
                             //readOrder();
                             //readInnerOrderRecord(CurrentRecord);
                             setInnerFieldText(currentItem);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             //readOrder();
                             setInnerFieldText(currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             writeRecordNumber(MaxRecord);
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             currentItem++;
                             setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              System.err.println("currentItem" + currentItem);
              getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07
    Message was edited by:
    Kilik07

    ok i got reading to work to a certain extent... but the prob is i cnt seem to save my innerCustOrdObj proprly...when ever i look for a record using the gotorecordbtn, the outerobject, which is the orderDetails, seems to change but the innerCustOrdObj remains the same... heres the new code..
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems = 1;
         private static boolean FileExists, recFileExists;
         private static boolean RecordExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.ser");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                   //CurrentRecord--;
                   //System.out.println("Current Rec Here"+CurrentRecord);
                   if(orderDetails[CurrentRecord] == null){
                        System.err.println("CustomerOrderObj 1 is null !!");
                   }else{
                        System.err.println("CustomerOrderObj 1 is  not null !!");
                   if(orderDetails[CurrentRecord].getInnerCustOrdObj() == null){
                        System.err.println("InnerCustomerOrderObj is null !!");
                   }else{
                        System.err.println("InnerCustomerOrderObj is  not null !!");
                   innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord);
                   getInnerFieldText(MaxItems);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              //CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              TotPriceTxt.setEditable(false);
              TotPriceTxt.addFocusListener(new FocusAdapter(){
                   public void focusGained(FocusEvent evt){
                        TotPriceTxt.setText(""+Integer.parseInt(UnitPriceTxt.getText())*Integer.parseInt(QuantityReqTxt.getText()));
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println("Current Record " + CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             CurrentRecord = MaxRecord;
                             orderDetails[CurrentRecord] = new CustOrdObject();
                             writeRecordNumber(MaxRecord);
                             MaxItems = 1;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        setInnerFieldText(MaxItems);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             MaxItems++;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             System.out.println("Max Items "+MaxItems);
                             currentItem = MaxItems;
                             orderDetails[CurrentRecord].setMaxItems(MaxItems);
                             ///setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              gotorecordbtn = new JButton("Go To Record", createGotoButtonIcon());
              gotorecordbtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt){
                         * The text from the GotorecordTxt textfield will be taken and assigned
                         * to a temporary integer variable called Find. 
                        int Find = Integer.parseInt(CustOrderIDTxt.getText());
                        for(int j=1; j <= MaxRecord; j++){
                              * Using a for loop, each record can be read using the readCustRecord
                              * method.
                             getFieldText(j);
                              * An if condition is utilized to check whether the temporary stored variable, Find,
                              * matches a field in a record. If this record is found, then using the RecordExists
                              * which was declared at the top, either a true or false statement can be assigned
                              * If the record exists, then a true statement will be assigned, if not a false
                              * statement will be assigned.
                             if(orderDetails[j].getCustOrderID() == Find){
                                  RecordExists = true;
                                  break;
                             }else{
                                  RecordExists = false;
                        if(RecordExists == false){
                              * If the RecordExists is assigned a false statement, then a message will be
                              * displayed to show that the record does not exist.
                             JOptionPane.showMessageDialog(null, "Record Does Not Exist!", "Error Message", JOptionPane.ERROR_MESSAGE, createErrorIcon());
                        }else{
                             getFieldText(Find);
              buttonpanel.add(gotorecordbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setMaxItems(MaxItems);
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              orderDetails[orderID].getInnerCustOrdObj();
              System.err.println("currentItem" + currentItem);
              //getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   /*               System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());*/
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07

  • Problem with filePathSeperator and /

    Problem with fileSeperatorChar and /. When I use fileSeperatorChar (to lacate a folder), the path is specified wrong. I want my program to run on different OS, so I need this to work.
    If I do this:
    JLabel label = new JLabel("", new ImageIcon("Images/label.gif");
    //or something like that it works. Will this give me multiple platform support?
    But when I try:
    JLabel label = new JLabel("", new ImageIcon("Images" + filePathSeperatorChar + "label.gif");
    //or something like that They all compile, but I took this off the top of my head. Anyway, when I print out the path for the second technuige, the path reads like this:
    Images;label.gif

    You used filePathSeparator. On Windows you use a semicolon to separate the components of a path, which is a list of directories or jar files, which is why you are getting a semicolon. You want the system property "file.separator" instead. Or use the variable File.separatorChar.

  • I'm having a problem with coreaudiotoolbox and corevideo.dll.

    I'm having a problem with coreaudiotoolbox and corevideo.dll. PC was corrupted, I restored. Now when I launch Safari, I run into errors, can't find these two dll files. Itunes won't download at all because it says something is missing but won't say what. Now what do I do? Apple won't help because they want $50 dollars just to talk with me and I've been down that road before and to no satisfaction. Help please!!

    Taken at face value, you're having trouble with Apple Application Support program files there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept, so an AAS problem can affect both iTunes and Safari.)
    Let's try something relatively simple first. Restart the PC. Now head into your Add or Remove programs control panel, select "Apple Application Support", click "Change" and then click Repair.
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post (although it's for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things):
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a window pops up saying that the prograam has encountered a problem and sh...

Maybe you are looking for

  • Errors occurred during call of function module BUPR_EMPLO_DELETE

    when distributing employee data from (HCM) to (CRM) there is an error that appears in relation with the settings for the Business Parner: "Errors occurred during call of function module BUPR_EMPLO_DELETE Message no. R11335 Diagnosis The business part

  • Captions and Reorganizing Photos

    My wife uses Adobe PSE 4 on her Windows XP laptop and won't switch to the PSE 9 software I bought her.  She has 12,000+ photos in her Organizer catalog, and the underlying files are scattered all over two hard drive partitions.  Many of them are dupl

  • Can anyone explain the mechanism of  data transfer from r3 to bw?

    Hi all the bw expert, i have one question on the mechanism of data transfer from r3 to bi 7.0. the followings is my concerns: scenario: The total numer of data is 1000 rows and these rows are seperated into 10 data package , each package contains 100

  • HT201412 Iphone 3gs not turning on and restoring problem 5

    Hello, my iPhone crashed it wont turn on. When im connecting it to my itunes, it ask me to restore it. Im restoring it and after while the loading screen turn off and on the i tunes the error comes up. "The iphone iphone could not be restored. an unk

  • Is it possible to Navto://  MOS State?

    I was trying to find out if it's possible to navto a specific state in a MOS, specifically one in another article? I know how to navto an article and a specific page of an article.  I want to take it one step further by going to a state within a MOS