How to make Tab jump the proper way?

Hi,
I have different components on a panel - JComboBoxes, JTextFields, JCheckBoxes, etc.
I'd like to make Tab first jump only on JTextFields and on other components after all JTextFields have been visited.
Could anyone please direct me where I should look for API or tutorial on how to implement Tab jump direction??

http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/FocusAdapter.html

Similar Messages

  • Implementing Jump the proper way

    Hello
    I am trying to make my spirit jump in a "normal" fashion. If I just do a jump it's pretty normal but when i use the arrow keys to move him in mid air, he flies all over the place. I think i am doing the threading wrong, not sure.
    Also, am i doing the the key bindings the right way?
    Here is the image needed for the main char.
    [http://i.imgur.com/WIpwY.png]
    Here is the code:
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.KeyStroke;
    import javax.swing.Timer;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class GamePractice {
         final int SPEED;
         DrawingPanel mainPane;
         int xPos; //= 192;
         int yPos; //= 420;
         Action actionJumpKey;
         int xV;
         int yV;
         int jumpLength;
         boolean moveRight;
         boolean moveLeft;
         boolean jumpUp;
         public GamePractice(){
              SPEED = 5;
              jumpLength = 200;
         public static void main(String[] args) {
              GamePractice gp = new GamePractice();
              gp.go();
         public void go(){
              try {
                   UIManager.setLookAndFeel(
                             UIManager.getSystemLookAndFeelClassName());
              } catch (ClassNotFoundException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              } catch (InstantiationException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              } catch (IllegalAccessException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              } catch (UnsupportedLookAndFeelException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              JFrame frame = new JFrame();
              frame.setFocusTraversalKeysEnabled(false);
              mainPane = new DrawingPanel();
              mainPane.setFocusTraversalKeysEnabled(false);
              mainPane.setDoubleBuffered(true);
              mainPane.setBackground(Color.black);
              mainPane.setOpaque(true);
              mainPane.setFocusable(true);
              actionJumpKey = new ActionKeys("jump");
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed SPACE"),"jump");
              mainPane.getActionMap().put("jump",actionJumpKey/*new ActionKeys("jump")*/);
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed LEFT"),"moveLeft");
              mainPane.getActionMap().put("moveLeft",new ActionKeys("moveLeft"));
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed RIGHT"),"moveRight");
              mainPane.getActionMap().put("moveRight",new ActionKeys("moveRight"));
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("released SPACE"),"stopJump");
              mainPane.getActionMap().put("stopJump",new ActionKeys("stopJump"));
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("released LEFT"),"stopLeft");
              mainPane.getActionMap().put("stopLeft",new ActionKeys("stopLeft"));
              mainPane.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("released RIGHT"),"stopRight");
              mainPane.getActionMap().put("stopRight",new ActionKeys("stopRight"));
              frame.add(mainPane);
              frame.setSize(900,600);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Timer animationTimerLoop = new Timer(0,new TimerLoop());
              animationTimerLoop.start();
              Thread loop = new Thread( new MainLoop());
              loop.start();
         class TimerLoop implements ActionListener{     
              public void actionPerformed(ActionEvent arg0) {
                   mainPane.reDraw();
         class DrawingPanel extends JPanel{
              Player mainPlayer;
              BufferedImage image = null;
              public DrawingPanel(){
                   try {
                        image = ImageIO.read(new File("Super Paper Mario_128.png"));
                   } catch (IOException e) {
                        e.printStackTrace();
                   mainPlayer = new Player(192, 420, image);
              protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                   mainPlayer.paintImage(g);
              private void reDraw(){
                   final int POSITION_X = mainPlayer.getX();
                   final int POSITION_Y = mainPlayer.getY();
                   final int IMAGE_W = mainPlayer.getWidth();
                   final int IMAGE_H = mainPlayer.getHeight();
                   xPos = POSITION_X;
                   yPos = POSITION_Y;
                   if (POSITION_X >= 756){
                        mainPlayer.setX(755);          
                   } else if (POSITION_X <= 0){
                        mainPlayer.setX(1);
                   } else {
                        if (!(xV == 0 & yV == 0)){
                             mainPane.repaint(POSITION_X - 1, POSITION_Y, IMAGE_W + 2, IMAGE_H);
                             mainPlayer.setX(POSITION_X + xV);
                             mainPlayer.setY(POSITION_Y + yV);
                             mainPane.repaint(mainPlayer.getX(), mainPlayer.getY(), IMAGE_W, IMAGE_H);
              private void paintJump(){
                   int x = 0;
                   while (x < 1 && jumpUp){
                        for (int i = 1; i <= jumpLength / 2; i++){
                             try {
                                  Thread.sleep(5);
                             } catch (InterruptedException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                             yPos -= 1;
                             mainPlayer.setY(yPos);
                             mainPane.repaint(xPos - 1, yPos, 128 + 2, 128);
                             mainPane.repaint(mainPlayer.getX(), mainPlayer.getY(),128 ,128);
                        for (int i = 1; i <= jumpLength / 2; i++){
                             try {
                                  Thread.sleep(3);
                             } catch (InterruptedException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                             yPos += 1;
                             mainPlayer.setY(yPos);
                             mainPane.repaint(xPos - 1, yPos, 128 + 2, 128);
                             mainPane.repaint(mainPlayer.getX(), mainPlayer.getY(),128 ,128);
                        x++;
                        jumpUp = false;
                        actionJumpKey.setEnabled(true);
         }

    rest of the code:
    class ActionKeys extends AbstractAction{
              private String description;
              public ActionKeys(String desC){
                   description = desC;
              public void changeDescription(String chngedDes){
                   description = chngedDes;
              private void update() {
                   xV = 0;
                   yV = 0;
                   if(moveLeft) xV = -SPEED;
                   if(moveRight) xV = SPEED;
              public void actionPerformed(ActionEvent e) {
                   if (description.equals("jump")){
                        jumpUp = true;
                        actionJumpKey.setEnabled(false);
                   } else if (description.equals("moveDown")){
                   } else if (description.equals("moveLeft")){
                        moveLeft = true;
                        update();
                   } else if (description.equals("moveRight")){
                        moveRight = true;
                        update();
                   } else if (description.equals("stopJump")){
                   } else if (description.equals("stopDown")){
                   } else if (description.equals("stopLeft")){
                        moveLeft = false;
                        update();
                   } else if (description.equals("stopRight")){
                        moveRight = false;
                        update();
         class MainLoop implements Runnable{
              public void run() {
                   while (true){
                        mainPane.paintJump();
    }I am assuming starting a thread just for a jump simulation is bad idea and waste of resources right? Is there a better way of doing this?
    Thank you
    Edited by: oplead on Jan 5, 2010 4:53 PM
    Edited by: oplead on Jan 5, 2010 4:55 PM

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • I have Boot Camp running on a separate HD (not a partition on my Mac drive).  I would like to partition the PC HD to have a multi boot PC.  What is the proper way to do this and how do I select which partition to start the PC?

    I have Boot Camp running on a separate HD (not a partition on my Mac drive).  I would like to partition the PC HD to have a multi boot PC.  What is the proper way to do this? How do I select which partition to start the PC?

    I have Boot Camp running on a separate HD (not a partition on my Mac drive).  I would like to partition the PC HD to have a multi boot PC.  What is the proper way to do this? How do I select which partition to start the PC?

  • What is the proper way to insert an envelope into a hp9680?

    What is the proper way to put an envelope into a HP 6980?

    Hi,
    Normally th software (driver) will shows you how to feed tha envelop for example like this.
    Regards
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What is the proper way to use the write method?

    What is the proper way to use the OutputStreams write method? I know the flush() method is automatically called after the write but i cant seem to get any output
    to a file. The char array contains characters and upon completion of the for loop the contents of the array is printed out, so there is actually data in the array. But write dosnt seem to do squat no matter what i seem to do. Any suggestions?
    import java.io.*;
    public class X{
    public static void main(String[] args){
    try{      
    FileReader fis = new FileReader("C:\\Java\\Test.txt"); //read chars
    FileWriter fw = new FileWriter("C:\\Java\\Test1.txt"); //read chars
    File f = new File("C:\\Java\\Test.txt");
    char[] charsRead = new char[(int)f.length()];
    while(true){
    int i = fis.read(charsRead);
    if(i == -1) break;
    // fw.write(charsRead); this wont work
    // but there is infact chars in the char Array?
    for(int i = 0; i < charsRead.length -1 ; ++i){
    System.out.print(charRead);
    }catch(Exception e){System.err.println(e);}

    Sorry to have to tell you this guys but all of the above are broken.
    First of all... you should all take a good look at what the read() method actually does.
    http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
    Pay special attension to this paragraph:
    Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
    In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
    Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
    int readLast = 0;
    byte[] array = new byte[length];
    while(readLast != -1 && bytesRead < length){
      readLast = inputStream.read(array, bytesRead, length - bytesRead);
      if(readLast != -1){
        bytesRead += readLast;
    }And then the matter of write()...
    http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
    write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
    You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
    I'll make another post about this... once and for all.
    /Michael

  • What is the proper way to close all open sessions of a NI PXI-4110 for a given Device alias?

    I've found that, when programming the NI PXI-4110 that, if a the VI "niDCPower Initialize With Channels VI" (NI-DCPower pallette) is called with a device
    alias that all ready has one or more sessions open (due to an abort or other programming error) a device reference results from the reference out that has a (*) where "*" is post-fixed to the device reference where and is an integer starting that increments with each initialize call. In my clean up, I would like to close all open sessions. For example, let's said the device alias is "NIPower_1" in NI Max, and there are 5 open sessions; NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4). A simple initialize or reset (using niDCPower Initialize With Channels VI, or, niDCPower Initialize With Channels VI, etc.) What is the proper way to close all open sessions?
    Thanks in advance. Been struggleing with this for days!

    When you Initialize a session to a device that already has a session open, NI-DCPower closes the previous session and returns a new one. You can verify this very easily: try to use the first session after the second session was opened.
    Unfortunately, there is a small leak and that is what you encountered: the previous session remains registered with LabVIEW, since we unregister inside the Close VI and this was never called. So the name of the session still shows in the control like you noted: NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4), etc.
    There may be a way to iterate over the registered sessions, but I couldn't find it. However, you can unregister them by calling "IVI Delete Session". Look for it inside "niDCPower Close.vi". If you don't have the list of open sessions, but you have the device name, then you can just append (1), (2) and so forth and call "IVI Delete Session" in a loop. There's no problem calling it on sessions that were never added.
    However - I consider all this a hack. What you should do is write code that does not leak sessions. Anything you open, you should close. If you find yourself in a situation where there are a lot of leaked sessions during development, relaunching LabVIEW will clear it out. If relaunching LabVIEW is too much of an annoyance, then write a VI that does what I described above and run it when needed. You can even make it "smarter" by getting the names of all the NI-DCPower devices in your system using the System Configuration or niModInst APIs.
    Hope this helps.
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    National Instruments

  • What is the proper way to charge battery in 2012 15 inch macbook pro.

    what is the proper way to charge the battery and make it last longest

    About Batteries in Modern Apple Laptops
    Battery University
    Apple - Batteries - Notebooks
    Apple - Batteries
    Extending the Life of Your Laptop Battery
    MacBook and MacBook Pro- Mac reduces processor speed when battery is removed while operating from an A-C adaptor
    Apple Portables- Calibrating your computer's battery for best performance
    Mac notebooks- Determining battery cycle count

  • How to make iTunes detect the new location of music files?

    Hi everyone. I moved all of my music to a different location on my hard drive, and I changed the location in iTunes preferences, but it doesn't seem to detect this, so my library is empty now. I saved an itl, xml, and temp file as well, but I don't know what to do from here.
    I also tried dragging the new music folder onto the "Library" entry in iTunes, and this added everything, but I no longer have my ratings, playlists or anything like that.
    Is there some other way to have iTunes detect the new location? And can I get back my ratings and playlists?
    Thanks.

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • What is the proper way to create a monotone image with real looking contrast?

    Once I apply a color to my previously created black and white image everything looks washed out.
    I have an artwork with 3D representation of the letterforms, casting shadows on the textured surface. Shadows are deep black. I need this artwork to be colored in gold. My client forwarded me the specs for the metallic gold which he got from the PANTONE. They are:Gold (871); Adobe 1998 RGB: 126-113-76
    HSB*: 44 degrees-40%-50%
    What is the proper way of applying those values to the desired image.
    My idea was to make the image black and white and than create a monotone image with the above specs. In this case the image gets washed out as the darkest black in the shadows becomes this Pantone gold. Is there any other way?

    A duotone will work, however you are going to want to work closely with your printer . Most printers will want the second color in CMYK (Possibly C60 M40 Y0 K100 instead of RGB values or specify a Pantone Rich Black (I personally like 6C)but it will cost you more for the wash up of both heads of the printer...
    Go to Image>Mode>Duotone (image must be greyscale first for this to work) then add the desired colors to your ink scales.

  • What is the proper way to deal with cascading triggers in AcroForms?

    (this has already been posted in the Scripting forum. Due to the lack of response, I am coming here to the Land of C/C++ Developers)
    What is the proper way to deal with cascading triggers in AcroForms?
    My question refers to the forms in which there is a binary question such as:
    "Are you interested in travel?"
    When the user clicks "Yes", there are further questions whose interactive fields are dot.hidden (or "!"), depending on the answer.
    So far, I can handle the 1-level cases fine, but my doubt is how to implement nested dependencies. For the sake of simplicity, I would prefer to define the cause-effect relationship once ("Every time the 'Interested in Travel' box is checked, the field 'International or Domestic' should be visible") and send some sort of message/trigger downstream.
    I would like the right things to happen (cascading triggers included) when the "Clear Form" menu command is selected.
    Are those desirable features available in JavaScript (the particular JS used by the traditional AcroForms)?
    Maybe I should look into C/C++ programming?
    TIA,
    -Ramon

    I guess my problem is that I have some basic college experience in digital circuit design, and would like the forms to be programmed and behave in the same fashion as digital logic.
    The "Clear Form" menu item, of course, would be equivalent to the  reset button.
    Perhaps it is possible to hook my code onto the "Clear Form" menu item?
    -Ramon

  • What is the Proper Way to place a Background Image inside a Div?

    I have been searching Google and the Adobe forums for awhile now, and while there are very valid solutions to similar problems I found that none of them fixed the problem that I am facing. I blame myself and getting lost in this sloppy coding of mine, so part of my plan was to start my style sheet over from scratch.
    My question, what is the proper way to add a background image into a div? I currently have the top div following the "header" css style, here is what I have typed into that sections:
    <style type="text/css">
    @import url("../twoColLiqLtHdr.css");
    .header {
        width: 1000px;
        height: 300px;
        background-image: url(Assets/HeaderTemplate.png);
        background-repeat: no-repeat;
        background-position: center;
    The problem here is that the background image isn't even appearing. I would greatly appreciate any help, could anyone inform me on the proper way to doing this so that I can implement images in divs in the future without turning my coding in a down right mess?
    Thank you in advance.

    I apologize, I'm unable to post a link to the page just yet. This is a snip of coding for a website still in the making for the company I work for.
    Would any of the coding below help?:
    </script>
    <style type="text/css">
    <!--
    body {
        background-color: #760101;
    a:link {
        color: #FFF;
    a:visited {
        color: #690;
    .twoColLiqLtHdr #header table tr td {
        color: #400000;
        text-align: right;
    -->
    </style>
    <link href="../twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <header class="twoColLiqLtHdr">
    <scmenu class="twoColLiqLtHdr">
    <tab class="twoColLiqLtHdr">
    <body class="twoColLiqLtHdr">
    <div class="header" align="" id="header">Content Goes Here</div>
    <div class="scmenu" align="" id="scmenu">Content Goes Here</div>
    <div class="tabs" align="" id="tabs">Content Goes Here</div>
    <div class="body" align="" id="body">Content Goes Here</div>
    <div class="footer" align="" id="footer">Content Goes Here</div>
    <script type="text/javascript">var TFN='';var TFA='';var TFI='0';var TFL='0';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=11773g197b36be92c de14c11fc77dacc3a2a4f1660eb17h9;c=s;v=5";document.write(unescape('%3Cscript type="text/JavaScript" src="'+tf_ScrServer+'">%3C/script>'));</script>
    </body>
    </html>
    That above is parts I added into the source code.

  • What is the Proper Way to "Sync My Music & Apps to a New Computer Using ITunes"

    What is the Proper Way for Me to "Sync My Music, Pictures & Apps to a New Computer Using ITunes"?
    I had to buy a New Computer since my other one went out, but when I log into ITunes with the New Computer using My Apple ID "Nothing is there"...
    None of My Previously Purchased Music or Apps are in My ITunes Media Library; so, I any not sure how to Properly Proceed with Syncing?
    Any Help & Guidance would be Greatly Appreciated!!!
    Thanks,
    Don

    Sounds like something might be wrong there. Years ago I set up the playlists to sync to my iPhone and 'Everything' for my iPod and I've never needed to change or even check it since, ever.
    However, how and why are you 'restoring' the iPod? This is not something you should ever need to do. If you restore back to original settings, then I guess that would throw away your own settings, but as I said, there should be no need to keep doing that. Or at all in fact.

  • What is the proper way to apply SCCM 2012 R2 Cumulative Updates

    Hello All!
    I am looking for a little advice. Since deploying SCCM 2012 R2 I have not yet installed any of the cumulative updates. What is the proper way to install the previusely released updates? I believe there has been 3 CU relases since SCCM 2012R2. Should
    I just install the most recent CU or install all of them starting with CU1? I know each one addresses different issues so I would think install all of them would make sense.
    Thanks,
    Phillip
    Phil Balderos

    No, they're cumulative, so you only have to install the latest.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • What is the proper way to convert a VHD from dynamic to basic without losing data?

    Hi,
    What is the proper way to convert a VHD from dynamic to basic without losing data?
    Our VM is running Windows Server 2008 R2 SP1
    Thanks in advanced

    Hi efebo,
    "After you convert a basic disk to a dynamic disk, you cannot change the dynamic volumes back to partitions. Instead, you must delete all dynamic volumes on the disk and then use the
    Convert To Basic Disk command. If you want to keep your data, you must first back it up or move it to another volume. "
    Please refer to following link:
    http://technet.microsoft.com/en-us/library/cc731274.aspx
    You can try to backup the dynamic volume via Windows Server Backup then restore it to a new basic VHD file ( the space is recommended to be   larger than or equal to the old one ) .
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • How to record video in black and white mode

    Hi, I am developing a live video recording application and my application  have black and white mode recording feature, So please give me some idea  about black and white recording. Thanks Ram

  • Suggested Text not showing up in Os 8 upgrade

    After upgrading my 4S to 8.0.2, I am not seeing the 3 different suggested words below what I type. Then I see a little oval and moved it or did something, then they showed up, so after playing with it i found out how to make it show.

  • How do i find out if i am connected to the cabinet...

    hello is there any way i can find out if i am connected to the cabinet  or do i need to be connected to the cabinet to get bt inifinty  is there a way to locate all the cabinets in my area?i  think there is a cabinet down the road from me about a 3 m

  • NLB detected duplicate cluster subnets - Exchange Server 2010 SP3 CU5

    Hi All, I will explain the environment first,  there are: -Two HUB/CAS servers (WNLB)     --HUBCAS01     --HUBCAS02 -Two Mailbox servers (Failover Clustering)     --MAILBOX01     --MAILBOX02 *All servers are updated to Exchange Server 2010 SP3 CU5. T

  • 320 vs. 480 width for MPEG Handbrake settings

    I have been using Handbrake for a while now and have used the exact settings recommended on the following site: http://howto.diveintomark.org/ipod-dvd-ripping-guide/ However, after reading several posts, I now know that you can set the width to 480 i