Desktop on external display not showing correctly

hi,
we have just purchased a macbook and the required leads to connect it to the TV (sony Bravia) this has worked correctly(the macbook detects the TV) and we are able to see the mac workspace on the tv both in mirror mode and extend desktop mode.
However when we view the desktop on the tv it is almost like the desktop is too big for the tv display area so we cannot see the tool bar at the top at all. This happens regardless of the resolution we choose.
the macbook is connected via the mini DVI to a HDMI connection. the laptop seems to be happy running in 1920x1080 on the TV. it is just cutting off the tool bar
any ideas will be greatly received.
thanks
Prog

I also have the same problem, it occurs with all resolutions, from 1080p on down. If I use the extended desktop on the tv it still doesn't quite show all of the background image. The tv I am using is a 26" RCA HDTV, with the mini-dp to dvi connector, then dvi to hdmi adaptor, then hdmi to the tv. If I use the mini-dp to vga then vga to the tv everything looks the way it is supposed to, but I don't get 1080 resoulution. On the tv, when I hook up through the hdmi cable, I can't change the screen geometry as that option is only available to the pc connection(vga), it is grayed out under hdmi. With either connection I don't have any screen geometry settings available under system preferences. If anyone can help with this, it would be greatly appreciated.

Similar Messages

  • W540 + Ultradock: External monitors not showing correct maximum resolution

    I have three 20" LCD monitors and the Ultra Dock.  I am connecting them as: 1 with VGA, 1 with DisplayPort to DVI cable and 1 with DVI cable. 
    The ones one the DisplayPort and one with DVI both show a max resolution of 1280x1024 even though the monitor has a native resolution of 1600x1200.  The VGA connected monitor shows the correct maximum resolution.
    When I connect the DVI cable to into the mini-displayport connection on the laptop itself, that same monitor shows the proper 1600x1200 resolution.
    Is there some limitation here preventing me from using the full 1600x1200 resolution through the dock?
    Solved!
    Go to Solution.

    Solved!
    My dock already had the same version as the update file.  Plus, the description of item fixed did not match my issue.  I had no blinking or missing screens, I had too low of resolution.
    ...But I have found the solution on my own.
    Surprisingly I have not see it discussed anywhere on this forum.  I found the answer here:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/gjde49ww.txt
    It contains the following information:
    In Standard mode, all dock displays uses Integrated Graphics as display output
    and is limited to a maximum of 3 displays including Computer's LCD.
    While in Advanced mode, all dock displays uses Discrete Graphics as display
    output and it increases the maximum number of displays to 6 including Computer's LCD.
    Also:
    ThinkPad W540 (Standard Mode)
    Intel HD Graphics
    - (Computer's LCD)
    - Computer's analog VGA connector
    - Computer's DisplayPort connector
    - Docking Station's analog VGA connector
    - Docking Station's DVI connector(s)
    - Docking Station's DisplayPort connector(s)
    - Docking Station's HDMI connector
    NVIDIA Quadro K2100M or NVIDIA Quadro K1100M
    - No display is connected to this display adapter.
    ThinkPad W540 (Advanced Mode)
    Intel HD Graphics Family
    - (Computer's LCD)
    - Computer's analog VGA connector
    - Computer's DisplayPort connector
    NVIDIA Quadro K2100M or NVIDIA Quadro K1100M
    - Docking Station's analog VGA connector
    - Docking Station's DVI connector(s)
    - Docking Station's DisplayPort connector(s)
    - Docking Station's HDMI connector
    Something about this really prevents the resolution I wanted.
    I switched to advanced mode in the BIOS as such:
    The procedure below allows user to select "Standard mode" or "Advanced mode"
    1. Power off the computer.
    2. Power on the computer.
    3. While the "To interrupt normal startup, press Enter" message is displayed
    at the lower-left area or lower-center area of the screen, press the F1 key.
    The ThinkPad Setup menu will be displayed.
    4. Choose "Config" then "Display" to show the menu.
    5. Select "Video Mode on Dock" and press Enter.
    6. Select "Standard" or "Advanced" for your preference
    7. Press F10 key and select "Yes" to save and exit from Setup menu. Then the
    computer is restarted.
    After a few reboots, I have proper resolution on all displays.
    Not sure if there are any downsides to advanced mode, but it certainly feels like it is my solution.  This gets me back to what just worked fine with the W530 I had before this.

  • Folder problems on external drive, not showing correct file size

    I've run across a strange problem. I'm media managing for a tv show, meaning I'm offloading video from CF cards onto 2 external drives, one is a Drobo Raid (set up for backup) and another is a Lacie rugged drive. After copying the media to both drives, the folder I copy will match, but sometimes as I drill upward in my folder structure, suddenly the file sizes will not match. To be more clear: 2 folders will show differing file sizes, but inside that folder is only another folder,nothing else, which matches across the drives. I've shown all files in finder and there's no hidden files, though sometimes I see the ds_store files are different sizes (8k vs 16k), but that's not always the case. Sometimes if I simply create a new folder and move it's contents into it I can get the folders to match, but sometimes that doesn't work. It's part of my workflow to show that these copies match exactly via screenshots, and although the most important folder (the direct folder holding the footage) always matches, these folder problems are super frustrating as it's not constant, and any workarounds also work inconsistantly.
    I had an accidental disconnect of the Drobo one time, and although none of the data seems to have any problem, I fear it's done something to the directory. The rugged drive is swapped out every few days and the problem seems to be on the Drobo. Because the nature of the data is pretty important, I'm afraid to just try messing around with repairing or other software solutions unless I know it's super safe and won't harm the data.
    I'm at a loss as to what's causing it and at the very least how to avoid it cropping up. Any help or insight would be appreciated!

    I had the same problem with my iMac, first I repaired the disk, then I ejected the disk, restarted, and then reinserted the USB in a different port.  All of my files magically showed up.  I don't know what caused the error but it has been working fine since. 

  • External display not showing calls

    All of the sudden last week my phone stopped displaying who was calling.  It just vibrates and when I open the phone to see who it was, it would pick-up the call automatically.  I figured out how to switch that, but would prefer to just fix it so I can see who's calling without opening the phone.  Any ideas?
    Also, how come when I open emails on my desktop, it doesn't show them as read on my blackberry?  
    Thanks- any help is appreciated! 

    Hi and Welcome to the Forums!
    For your first issue:
    Anytime random strange behaviors creep in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    For the second issue -- please tell us what email service this is (e.g., GMail, Yahoo, work via BES, work via OWA/BIS, desktop redirected email, etc.).
    Best!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • External harddrive not show correct files

    thanks for your time.
       i've not had this problem before.  i have an external harddrive and lately some of the files have been incorrect.  and now it's been happening to most of the files on the drive.  for example if i click on a video file a different video will show.  it's usually on of about 3 videos, so if i click on 30 different video files, the same wrong movie will show up about 25 times.  other videos won't open at all.  the same for a lot of pictures on the drive and other types of files.
        the drive is probably suffering from some kind of corruption, but i'm not sure if the part of the drive that points to a file is corrupted and can be repaired maybe.  i've ran disk utility and it says the drive is fine.  has anyone else had this issue and come to a conclusion short of running a recovery program?
    thanks.

    HI sorry thats what I ment. The disk utility(application) in the folder utilities. The strange thing is that Yesterday the hard drive did apear there. I thought maybe it has something to do with NTFS application. As before I had installed this I could only read but notwrite to files on the hard disks. So I uninstalled and reinstalled the software,,,,,now the hard disk does not appear anymore in disk utilities .....I'm getting futher away from an solution .... :-( what can this be ? ever heard of an problem like this ?  I thank you in advance for taking your time to look into this problem.
    Regards,
    Terrence
    see both screeshot. Only the usb stick appears. and see preferences also

  • USB External drive not showing in Finder, or on Desktop

    I have two USB external drives from the same manufacturer. One is for regular storage, the second is for Time Machine and movies.
    The first one shows everywhere, on the desktop, in finder and in Disk Utility.
    The second drive shows in Disk Utility only. However, it is functioning fine with Time Machine. So it is mounted. I have tried several repairs, and it reports no fault found. So it is certainly functioning correctly, but a setting or error in the operating system is not allowing it to be viewed in finder, or on the desktop.
    Any suggestions.

    Correction: Title should be Firewire External drive not showing in Finder, or on Desktop.

  • Site does not show correct on Samsung Tablet

    Hi all,
    I've seen a few questions regarding Muse sites not being displayed correct on a Samsung Tablet. My problem is similar but still different. The site is displaying correct on the desktop/ipad/iphone but not on the Samsung Tablet.
    In the previewt his is not shown. Now I also know that the preview more or less simulates how a site should look.
    This is the site: www.uwpersoonlijkeoptieadviseur.nl (a dutch site).
    I have looked at the links and they seem to be ok. I mean all the links link to the Tablet version.
    cheers,
    Larry

    Hi sanjit, the thing is that on a samsung tablet from around 3 years old the problem occurs. But on a samsung tablet almost a year /2years old the site displays correct.
    Both of them has got android 4.04
    See the image with the specs in which it loads correct.(white background)
    And here the specs of a older one (dark grey one And arround 3 years old)
    And this problem occurs:
    So on a newer tablet it shows correct.
    Verstuurd vanaf mijn iPhone
    Op 1 apr. 2014 om 17:22 heeft Sanjit_Das <[email protected]> het volgende geschreven:
    Re: Site does not show correct on Samsung Tablet
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
    Hi Larry
    Please let me know if there is any specific page element not showing up correctly on Tablet.
    Also which browser are you using , browser version would help. Do you see the same problem with any other browser on same tablet.
    The device details would also help.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6261109#6261109
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6261109#6261109
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6261109#6261109. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I would like to use time Machine to back up to a network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it

    I currently have a mini server (OSX10.8.5, server 2.2.2) that I am using Time Machine to back up 4 external drives that are connected to the server via firewire 800. I would like to use Time Machine to back up to a windows network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it for use.
    Can this be done
    Thanks for any and all help

    The supported targets for Time Machine backups are local (direct-connected) disks, and network targets include Time Capsule, a disk hanging off the current-generation AirPort (though not earlier AirPort devices), and OS X Server systems.
    The Time Machine storage is based on the HFS+ file system, so I would not expect TM to work with SMB file services.
    While there are hacks to allow Time Machine to access network drives, I would not consider those to be reliable. Skim the forum and the 'net for related details, and for previous discussions of setting this up and the related issues that can arise.
    Remember to test the recovery with whatever you decide to use; whole point of backups is the ability to restore the data, after all.
    If you want to learn more about Time Machine, Pondini is an excellent resource.

  • SharePont 2013 Document Library lookup Column Properties not Showing Correctly when editing in Word

    Hi
    I keep seeing this issue albeit intermittently.  I have set up a doc library for my users which has a custom content type (lookup, metadata columns, etc)  . They all appear perfectly most of the time except the lookup column. Sometimes is just
    decides to display the title field of the current library and not the lookup list title .  It is weird as it has been working perfectly for ages given the library is populated with valid documents.
    There are some fixes listed here. Has anyone got any experience of this?
    https://social.msdn.microsoft.com/Forums/azure/en-US/e0b55531-509c-4219-8113-61b3e488de69/document-library-metadata-properties-of-a-content-type-do-not-show-correctly-when-editing-in-word?forum=sharepointdevelopmentprevious
    Freelance consultant

    Hi,
    According to your post, my understanding is that the lookup  column not display well while editing in word.
    Did you customize the Document Information Panel?
    I recommend you edit your custom document information panel or create a new document information panel, then re-publish it to check whether it works.
    https://support.office.com/en-gb/article/Create-or-edit-a-custom-Document-Information-Panel-for-a-content-type-b701a9af-3ea6-4c1a-9e1c-75363bd987c9?ui=en-US&rs=en-GB&ad=GB
    Or you can also use the methods in the post you have pasted to check whether it works.
    As the limitation of the environment, we could not reproduce the issue in our environment.
    I  would suggest you open a case to Microsoft Customer Service via Phone.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Account Balance not showing correctly

    Sir,
    Suppose , i have posted an invoice  of Rs.200 against a customer and after some times i recieved payment from this customer of Rs.200 So,  accout balance of this customer should be zero.. But when i see the account balance from business partner master data , it should me Rs.-400 in accout balance field but when i navigate through orange arrow in to accoutn balance details , there i get  zero in balance due field?? ie. it is showing coorectly in details of account ballance but in the business partner master data it is not showing correctly??

    hi divya,
    Check SAP Note 904002 - Customer account balance is displayed with negative sign
    Summary
    Symptom
    Customer Balance is displayed with minus.
    Other terms
    Customer balance, Supplier Balance, Credit Balance, Debit Balance, Display Credit Balance with Negative Sign, Company Details, System Initialisation, business partner, accounts, SAP Business One
    Reason and Prerequisites
    Customer balance is displayed in negative though you expect it to be positive.
    Solution
    Under Administration->System Initialisation->Company Details and the 'Basic Initialisation' tab you will find the setting 'Display Credit Balance with Negative Sign'. This setting decides how Customer and Supplier balances will be displayed.
    NOTE!
    When creating a company it is important to know that this setting is irreversible once transactions have been made in the company.
    When this box IS checked the following applies:
    Customer balances will be displayed as Positive.
    Supplier balances will be displayed as Negative.
    When this box IS NOT checked the following applies:
    Customer balances will be displayed as Negative.
    Supplier balances will be displayed as Positive.
    This setting also influences the entry of opening balances for the G/L accounts. Depending on this setting, the opening balances must be entered as positive or negative numbers.
    By default this box is checked when a new company is created.
    Header Data
    Release Status: Released for Customer
    Released on: 02.12.2005  10:42:10
    Master Language: English
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: SBO-ADM-INI-DET Company Details
    Secondary Components: SBO-BP Business Partners
    Affected Releases
    Release-Independent
    Hope it solves problem.
    Jeyakanthan

  • The onhand quantity at sub inventory level it is not showing correctly

    For an item the org level quantityt is showing correctly but at sub inventory level it is not showing correctly.
    1)For an item org level the avilablty as below :
                   On Hand / Avail to Reserve / Avail to Transact are
         oRG level          7     7          7
    STAGING           7     7          7
         STORES          0     0          0     
    2) Created an Sales order with quantity 5 ,then STAGING decreased by 5 which is correct.
              the avilablty as below :
                   On Hand / Avail to Reserve / Avail to Transact are
         oRG level          7     7          7
    STAGING           2     2          2
         STORES          0     0          0     
    3) Shipping Transaction not completed,Received 4 into Stores – Staging avail increased by 6 and even STORES also increased by 4 . Here we do not understand why STAGING increased to 6.
         the avilablty as below :
                   On Hand / Avail to Reserve / Avail to Transact are
         oRG level          7     7          7
    STAGING           6     6          6
         STORES          4     4          4     
    4)Ship Transaction Completed sucessfully now the values are showing correctly.
         The avilablty as below :
                   On Hand / Avail to Reserve / Avail to Transact are
         oRG level          7     7          7
    STAGING           2     2          2
         STORES          4     4          4

    Hi Patel,
    You can create a confirmations using CO11N for sub-operations, but you can only confirm hours, not yield quantity. The yield quantity requried to be confirmed in the operation. You can partially or fully confirm sub-operations.
    Enter the order number, sub -operation number all the related data will be displayed execpt greyed quantity fields.
    Can you see the "sub-operation" entry field below "oper./activity" in CO11N ?
    Thanks & Regards,
    Ramagiri

  • Balance Sheet not showing correct sign for Liability and Equity

    Hai,
    I am using SAP PL 40,
    In SAP Balance sheet Report,
    Liability Ledgers and Equity Ledgers is not showing correct sign. i mean,
    In my Liability Ledger the value is
    INR-10000.
    In Balance sheet it showing 
    INR1000.
    And also, is it possible to bring Dr and Cr column in Balance Sheet?
    Now, it's coming in single Column.
    Please help me out.
    Regards,
    Thanga Raj.K
    09710445987

    Hi
    It's the system definition that under Standard Balance Sheet Report, the
    Liabilities are displayed with POSITIVE SIGN although we know that the
    balance for those liabilities accounts are negative. The reason for it
    is that the liabilities accounts are defined as Passive Account, so when
    the balance is negative, it's displayed with positive sign.  And when
    the balance is positive, it is displayed with negative sign. The
    definition is mainly for the purpose of the reporting. In most of the
    localizations, the financial reports supplied by the business should
    display Liability and Equity with positive sign.
    If you really want to display them in negative sign , you can define a
    customized report template in Financials->Financial Report Templates->
    and select all liabilities and tick the box in front of 'Reversal Sign'.
    Regards,
    Syn Qin
    SAP Business One Forums Team
    Edited by: Syn Qin on Aug 22, 2008 8:49 AM

  • MiniDV Video in Affert Effects not showing correct ratio.

    I'd like to know how to edit minidv video in its aspect ratio in After Effects. Video is 720 by 480 and 16 by 9 (non-square pixels). When I import the video, it's stretched too tall (set to square pixels I believe). No mater how many times I change the composition ration to widescreen, it still does not show correctly.
    I seem to do fine in Premiere. It automatically sets the aspect ratio for minidv video. But I can't get After Effects to do it. I don't want to spend time creating something only for it to be squished in Premiere later.
    So how to do create a composition that's 16 x 9 using non-square pixels 720 by 480 that can be edited into miniDV video in adobe premiere?

    If you properly interpret your footage as widescreen (AE may guess incorrectly here) and put it in any square pixel comp it will not look distorted but it may or may not fill the frame. It will only fill the frame if the frame size is the square pixel equivalent size of your widescreen footage. This applies to all non square pixel aspect ratio footage.
    If you interpret your footage as widescreen and put it in the same format (NTSC, PAL HDV) widescreen comp it will also fill the frame. There may be some black pixels on the left and right side because almost all cameras don't put live pixels in every column or even every row of the frame, but the footage will fill the frame. The caveat is that this footage will look distorted unless you activate pixel aspect correction preview in the Comp window because computer displays are always square pixels. You have to fool the display by selecting this option.
    When you render your widescreen comp, if you're using any of the standard DV codecs or a codec like Quicktime Animation or JPG, there is no place in this codec for an aspect ratio tag that will tell apps like Premiere or FCP or Avid that this footage is supposed to be widescreen. Once you import the footage to another app you'll have to check and make sure that the footage is interpreted as widescreen there too.
    I hope this helps. What ever you do, do not use the Fit to Frame option to force footage into a comp frame. If you insist on using Fit to Frame then check the X and Y scale values after you do and make sure they are identical. If they are not, you've distorted your footage at that point and it will be difficult or impossible to fix it later.

  • Macbook (Late 2007) External Display Not Working

    I have an acer x243hq 1920x1080 external monitor which works with my Xbox 360 (vga cable) and my friends macbook (early 2008) but not my macbook
    when plugging the external monitor into my macbook using the minidvi to dvi adapter the macbook screen goes light blue and flashes continuously until i remove the cable, the external monitor is just black (does NOT display "no signal") when the cable is removed the cpu seems to have been running at 100%.
    i have tried using my friends macbook hard drive in my macbook and the problem is still there therefore the problem must be hardware related?
    i have all current updates
    Thanks for any replys on how i can fix this

    Have you downloaded the Mac OS X (10.5.4) Combo Update? I posted my problem, very similar to yours, and in researching it I found it at: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1054comboupdate .html. It might just be what you need!
    My problem is that I am running 10.5.7, which I blame for my external display not acting like it did when I was on 10.5.6! One expert at Apple Support told me to erase my HDD, reinstall Tiger, upgrade to Leopard again, but only to 10.5.6! Has anyone any idea as to when 10.5.8 is due out? Is there a Beta?

  • Not showing correct output when parsing the date

    //WAP the gives the details of employees
    import java.io.*;
    import java.util.*;
    import java.text.Format;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    class employee
      private String nm,curr_dt;
      private Date dob,doj;
      private int salary;
               employee()
                  nm="\0";
                  dob=null;
                  doj=null;
                  curr_dt=null;
                  salary=0;
               void getdata()throws IOException
                  String dt;
                  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                  //we can create date with these 3 type of objects
                  Format fm=new SimpleDateFormat("dd-mm-yyyy");
                  DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
       //object of base class are type compatible with the object of derived class
                  SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
                  System.out.print("\nEnter the name of Employee : ");
                  nm=br.readLine();
                  try{
                  System.out.print("\nEnter the date of birth of Employee : ");
                  dt=br.readLine();
                  dob=(Date)fm.parseObject(dt);
                  System.out.print("\nEnter the date of joining of Employee : ");
                  dt=br.readLine();
                  doj=df.parse(dt);
                  }catch(ParseException e){
                  Date d=new Date();
                  curr_dt=sdf.format(d);
                  System.out.print("\nEnter the salary of employee : ");
                  salary=Integer.parseInt(br.readLine());
               void putdata()
                  System.out.println("\n\n\nEmployee Name : "+nm);
                  System.out.println("\nDate of birth : "+dob);
                  System.out.println("\nDate of joining : "+doj);
                  System.out.println("\nCurrent date : "+curr_dt);
                  /*if((doj-curr_dt)>1)
                       salary+=3000;
                  System.out.println("\nSalary of Employee : "+salary);
    class emp
      public static void main(String str[])throws IOException
           employee emp[]=new employee[1];
           System.out.println("\nEnter the detail of employees \n\n");
           for(int i=0;i<1;i++)
                emp=new employee();
    emp[i].getdata();
    System.out.println("\n\nDetail of employees are\n\n");
    for(int i=0;i<1;i++)
    emp[i].putdata();
    }*Output:*
    Enter the detail of employees
    Enter the name of Employee : Rajendra Sharma
    Enter the date of birth of Employee : 10-10-1979
    Enter the date of joining of Employee : 05-09-2004
    Enter the salary of employee : 2000
    *it is not showing date in the "dd-mm-yyyy" format and not showing correct month as well*
    Detail of employees are
    Employee Name : Rajendra Sharma
    Date of birth : Wed Jan 10 00:10:00 IST 1979
    Date of joining : Mon Jan 05 00:09:00 IST 2004
    Current date : 17-08-2008
    Salary of Employee : 2000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    Use below code that will help u to sort ur problem.
    import java.io.*;
    import java.util.*;
    import java.text.Format;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    class employee
    private String nm,curr_dt;
    private Date dob,doj;
    private int salary;
    private String dobb,dojj;
    employee()
    nm="\0";
    dob=null;
    doj=null;
    curr_dt=null;
    salary=0;
    void getdata()throws IOException
    String dt;
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    //we can create date with these 3 type of objects
    DateFormat fm=new SimpleDateFormat("dd-mm-yyyy");
    DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
    //object of base class are type compatible with the object of derived class
    SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
    System.out.print("\nEnter the name of Employee : ");
    nm=br.readLine();
    try{
    System.out.print("\nEnter the date of birth of Employee : ");
    dt=br.readLine();
    dob=(Date)fm.parseObject(dt);
    dobb= fm.format(dob);
    System.out.print("\nEnter the date of joining of Employee : ");
    dt=br.readLine();
    doj=df.parse(dt);
    dojj = df.format(doj);
    }catch(ParseException e){
    Date d=new Date();
    curr_dt=sdf.format(d);
    System.out.print("\nEnter the salary of employee : ");
    salary=Integer.parseInt(br.readLine());
    void putdata()
    System.out.println("\n\n\nEmployee Name : "+nm);
    System.out.println("\nDate of birth : "+dobb);
    System.out.println("\nDate of joining : "+dojj);
    System.out.println("\nCurrent date : "+curr_dt);
    /*if((doj-curr_dt)>1)
    salary+=3000;
    System.out.println("\nSalary of Employee : "+salary);
    class emp
    public static void main(String str[])throws IOException
    employee emp[]=new employee[1];
    System.out.println("\nEnter the detail of employees \n\n");
    for(int i=0;i<1;i++)
    emp=new employee();
    emp[i].getdata();
    System.out.println("\n\nDetail of employees are\n\n");
    for(int i=0;i<1;i++)
    emp[i].putdata();
    thanks,
    prabhu selvakumar.

Maybe you are looking for