About to use my tree for some firewood  :o(

I was wondering if someone could maybe clue me into a problem that I am having with my DefaultMutableTree. See, I call a recursive method to get the file system of the computer, which is what is added to the tree. So the user is looking at a tree structure of the file system of their computer. My problem is that when I compile and run my program the tree shows up fine, with no hitches. I have given my code to other friends, and for some of them it does not show up, and throws a null pointer exception at the internal interface of this recursive method. I was wondering what might be causing this? My friends that have problems with the code are running either WIN XP, or Mac OS 10.1.4. Here is the code for the initialization of the tree (This will look ugly on the post, so I would hope that you would take the time to copy and paste this into your editor :D)
//code start.
import java.io.*;
import java.io.File;
import java.lang.*;
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.beans.*;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.event.TreeSelectionListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.tree.TreeSelectionModel;
public class File_Encryptor extends JFrame {
private JFrame thisFrame = this;
private JTree tree;
private JMenuBar jMenuBar1 = new JMenuBar();
private JMenuItem menuOpen = new JMenuItem("Open");
private JMenuItem menuSave = new JMenuItem("Save");
private JMenuItem menuClose = new JMenuItem("Close");
private JMenuItem menuQuit = new JMenuItem("Quit");
private JMenuItem menuAbout = new JMenuItem("About this software...");
private JMenuItem menuAdd = new JMenuItem("Add key and user");
private JMenuItem menuChange = new JMenuItem("Change buddy key");
private JMenuItem menuSend = new JMenuItem("Send your buddy key");
private JMenuItem menuDelete = new JMenuItem("Delete selected buddy key");
private JMenuItem menuReset = new JMenuItem("Reset your key");
private JMenuItem menuChangeLogin = new JMenuItem("Change Login");
private JMenuItem menuHelp = new JMenuItem("Help...");
private JButton openDir = new JButton("Open path");
private JTextField jTextField1 = new JTextField();
private JScrollPane treeView;
private JScrollPane imageView;
private JScrollPane textView;
private String ROOT;
private File root;
private DefaultMutableTreeNode top;
final private DefaultMutableTreeNode FILLER = new DefaultMutableTreeNode(new FileInfo ("about:blank", "about:blank"));
public File_Encryptor() throws FileNotFoundException, InterruptedException, IOException, ClassNotFoundException {
super("FILE ENCRYPTOR 1.0");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
ROOT = getRoot(System.getProperty("user.home"));
root = new File(ROOT);
try{
//Create the nodes.
top = unfold(root);
top.setUserObject(new FileInfo(ROOT,ROOT));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
Object nodage = top.getNextNode().getUserObject();
FileInfo leaf = (FileInfo) nodage;
tree.addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)
tree.getLastSelectedPathComponent();
if (node == null) return;
try{
Object nodeInfo = node.getUserObject();
FileInfo temp = (FileInfo) nodeInfo;
if((node.isLeaf()) && (!(node.isRoot())))
System.out.println(temp.Path());
//figure out how to place file in editor pane.
else
return;
catch(Exception fubar)
fubar.printStackTrace();
treeView = new JScrollPane(tree);
treeView.setSize(150,450);
jTextField1.setMaximumSize(new Dimension(50, 100));
jTextField1.setText("PATH");
this.getContentPane().add(jTextField1, BorderLayout.EAST);
this.getContentPane().add(treeView, BorderLayout.WEST);
catch(Exception e) {
e.printStackTrace();
jMenuBar1.setBorder(BorderFactory.createEtchedBorder());
JMenu menu = new JMenu("File");
JMenu about = new JMenu("Help");
JMenu keys = new JMenu("Keys");
JMenu change = new JMenu("Login");
menuQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.META_MASK));
menuQuit.setEnabled(true);
menuQuit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(0);
menu.add(menuQuit);
jMenuBar1.add(menu);
jMenuBar1.add(keys);
jMenuBar1.add(change);
jMenuBar1.add(about);
this.setJMenuBar(jMenuBar1);
public class FileInfo {
private String path = "";
private String name = "";
public FileInfo(String p , String n){
path = p;
name = n;
public String toString(){
return name;
public String Path(){
return path;
public static String getFileEx(String po){
String ext = "";
int i = po.lastIndexOf('.');
if(i > 0)
ext = po.substring(i-1);
else
ext = null;
return ext;
private DefaultMutableTreeNode unfold(File path) {
DefaultMutableTreeNode node = new DefaultMutableTreeNode("");
Vector Files = new Vector();
Vector Direc = new Vector();
if((path.isDirectory()) && (path.list().length != 0))
node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
File [] childs = path.listFiles();
for(int j = 0; j < childs.length; j++)
if(childs[j].isDirectory())
Direc.addElement(childs[j]);
else
Files.addElement(childs[j]);
for(int g = 0; g < Files.size(); g++)
Direc.addElement((File)Files.elementAt(g));
for(int i = 0; i < Direc.size(); i++)
node.add(unfold((File)Direc.elementAt(i)));
else if(!(path.isDirectory()))
node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
else
node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
node.add(new DefaultMutableTreeNode(new FileInfo(null,"<EMPTY FOLDER>")));
return node;
public static String getRoot(String path)
int find = path.indexOf(System.getProperty("file.separator"));
String root = path.substring(0,find + 1);
return root;
public static void main( String [ ] args )throws FileNotFoundException, InterruptedException, IOException, ClassNotFoundException {
File_Encryptor show = new File_Encryptor();
show.setSize(700, 500);
show.setResizable(false);
//show.setLocation(100,100);
show.setVisible(true);
//code end.
//well there it is. Hope someone can help me with my problem.
//I know this code is ugly, but I was trying a bunch of different
//things hoping something would work. but ehh no such luck.
//I am running windows 98, yea that's prolly my problem.
//thank you for your time.

I ran this on XP and got the null pointer exception...
it's likely that it's running into a file or directory that it can't list (in my case it was a mount on a different directory ntfs is kinda cool)... SO... to handle that problem I just put the whole method in a try / catch block
it was just the method unfold ... the fix returns a blank treenode... it should probably return null and the caller should see that as a sign to not add it to the tree...
     private DefaultMutableTreeNode unfold(File path) {
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("");
          try
               Vector Files = new Vector();
               Vector Direc = new Vector();
               if(path==null)
                    return(node);
               if((path.isDirectory()) && (path.list().length != 0))
               node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
               File [] childs = path.listFiles();
               for(int j = 0; j < childs.length; j++)
               if(childs[j].isDirectory())
               Direc.addElement(childs[j]);
               else
               Files.addElement(childs[j]);
               for(int g = 0; g < Files.size(); g++)
               Direc.addElement((File)Files.elementAt(g));
               for(int i = 0; i < Direc.size(); i++)
               node.add(unfold((File)Direc.elementAt(i)));
               else if(!(path.isDirectory()))
               node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
               else
               node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
               node.add(new DefaultMutableTreeNode(new FileInfo(null,"<EMPTY FOLDER>")));
          catch (Exception e)
          return node;
     }

Similar Messages

  • About to use my tree for firewood

    I was wondering if someone could maybe clue me into a problem that I am having with my DefaultMutableTree. See, I call a recursive method to get the file system of the computer, which is what is added to the tree. So the user is looking at a tree structure of the file system of their computer. My problem is that when I compile and run my program the tree shows up fine, with no hitches. I have given my code to other friends, and for some of them it does not show up, and throws a null pointer exception at the internal interface of this recursive method. I was wondering what might be causing this? My friends that have problems with the code are running either WIN XP, or Mac OS 10.1.4. Here is the code for the initialization of the tree (This will look ugly on the post, so I would hope that you would take the time to copy and paste this into your editor :D)
    //code start.
    import java.io.*;
    import java.io.File;
    import java.lang.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.beans.*;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.tree.TreeSelectionModel;
    public class File_Encryptor extends JFrame {
    private JFrame thisFrame = this;
              private JTree tree;
    private JMenuBar jMenuBar1 = new JMenuBar();
              private JMenuItem menuOpen = new JMenuItem("Open");
              private JMenuItem menuSave = new JMenuItem("Save");
              private JMenuItem menuClose = new JMenuItem("Close");
              private JMenuItem menuQuit = new JMenuItem("Quit");
              private JMenuItem menuAbout = new JMenuItem("About this software...");
              private JMenuItem menuAdd = new JMenuItem("Add key and user");
              private JMenuItem menuChange = new JMenuItem("Change buddy key");
              private JMenuItem menuSend = new JMenuItem("Send your buddy key");
              private JMenuItem menuDelete = new JMenuItem("Delete selected buddy key");
              private JMenuItem menuReset = new JMenuItem("Reset your key");
              private JMenuItem menuChangeLogin = new JMenuItem("Change Login");
              private JMenuItem menuHelp = new JMenuItem("Help...");
              private JButton openDir = new JButton("Open path");
              private JTextField jTextField1 = new JTextField();
              private JScrollPane treeView;
              private JScrollPane imageView;
              private JScrollPane textView;
              private String ROOT;
              private File root;
              private DefaultMutableTreeNode top;
              final private DefaultMutableTreeNode FILLER = new DefaultMutableTreeNode(new FileInfo ("about:blank", "about:blank"));
         public File_Encryptor() throws FileNotFoundException, InterruptedException, IOException, ClassNotFoundException {
    super("FILE ENCRYPTOR 1.0");
                   addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
                        System.exit(0);
                   ROOT = getRoot(System.getProperty("user.home"));
                   root = new File(ROOT);                    
                   try{
                   //Create the nodes.
                   top = unfold(root);
                   top.setUserObject(new FileInfo(ROOT,ROOT));
                   tree = new JTree(top);
                   tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
                   Object nodage = top.getNextNode().getUserObject();
                   FileInfo leaf = (FileInfo) nodage;
                   tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)
    tree.getLastSelectedPathComponent();
    if (node == null) return;
              try{
                        Object nodeInfo = node.getUserObject();
                        FileInfo temp = (FileInfo) nodeInfo;
                        if((node.isLeaf()) && (!(node.isRoot())))
                             System.out.println(temp.Path());
                             //figure out how to place file in editor pane.
                        else
                             return;
                   catch(Exception fubar)
                        fubar.printStackTrace();
                   treeView = new JScrollPane(tree);
                   treeView.setSize(150,450);
                   jTextField1.setMaximumSize(new Dimension(50, 100));
                   jTextField1.setText("PATH");
                   this.getContentPane().add(jTextField1, BorderLayout.EAST);
                   this.getContentPane().add(treeView, BorderLayout.WEST);
    catch(Exception e) {
    e.printStackTrace();
                   jMenuBar1.setBorder(BorderFactory.createEtchedBorder());
                   JMenu menu = new JMenu("File");
                   JMenu about = new JMenu("Help");
                   JMenu keys = new JMenu("Keys");
                   JMenu change = new JMenu("Login");
                   menuQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.META_MASK));
                   menuQuit.setEnabled(true);
                   menuQuit.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             System.exit(0);
                   menu.add(menuQuit);
                   jMenuBar1.add(menu);
                   jMenuBar1.add(keys);
                   jMenuBar1.add(change);
                   jMenuBar1.add(about);
                   this.setJMenuBar(jMenuBar1);
              public class FileInfo {
              private String path = "";
              private String name = "";
              public FileInfo(String p , String n){
                   path = p;
                   name = n;
              public String toString(){
                   return name;
              public String Path(){
                   return path;
              public static String getFileEx(String po){
              String ext = "";
              int i = po.lastIndexOf('.');
              if(i > 0)
                   ext = po.substring(i-1);
              else
                   ext = null;
              return ext;
              private DefaultMutableTreeNode unfold(File path) {
                   DefaultMutableTreeNode node = new DefaultMutableTreeNode("");
                   Vector Files = new Vector();
                   Vector Direc = new Vector();
                   if((path.isDirectory()) && (path.list().length != 0))
                        node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
                        File [] childs = path.listFiles();
                        for(int j = 0; j < childs.length; j++)
                             if(childs[j].isDirectory())
                                  Direc.addElement(childs[j]);
                             else
                                  Files.addElement(childs[j]);
                        for(int g = 0; g < Files.size(); g++)
                             Direc.addElement((File)Files.elementAt(g));
                        for(int i = 0; i < Direc.size(); i++)
                             node.add(unfold((File)Direc.elementAt(i)));
                   else if(!(path.isDirectory()))
                        node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
                   else
                        node = new DefaultMutableTreeNode(new FileInfo(path.getPath(),path.getName()));
                        node.add(new DefaultMutableTreeNode(new FileInfo(null,"<EMPTY FOLDER>")));
                   return node;
              public static String getRoot(String path)
                   int find = path.indexOf(System.getProperty("file.separator"));
                   String root = path.substring(0,find + 1);
                   return root;
    public static void main( String [ ] args )throws FileNotFoundException, InterruptedException, IOException, ClassNotFoundException {
    File_Encryptor show = new File_Encryptor();
    show.setSize(700, 500);
    show.setResizable(false);
    //show.setLocation(100,100);
    show.setVisible(true);
    //code end.
    //well there it is. Hope someone can help me with my problem.
    //I know this code is ugly, but I was trying a bunch of different
    //things hoping something would work. but ehh no such luck.
    //I am running windows 98, yea that's prolly my problem.
    //thank you for your time.

    This will make the code less ugly.
    > //code start.
    import java.io.*;
    import java.io.File;
    import java.lang.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.beans.*;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.tree.TreeSelectionModel;
    public class File_Encryptor extends JFrame {
    private JFrame thisFrame = this;
              private JTree tree;
    private JMenuBar jMenuBar1 = new JMenuBar();
              private JMenuItem menuOpen = new JMenuItem("Open");
              private JMenuItem menuSave = new JMenuItem("Save");
    private JMenuItem menuClose = new
    w JMenuItem("Close");
              private JMenuItem menuQuit = new JMenuItem("Quit");
    private JMenuItem menuAbout = new JMenuItem("About this software...");
    private JMenuItem menuAdd = new JMenuItem("Add key and user");
    private JMenuItem menuChange = new JMenuItem("Change buddy key");
    private JMenuItem menuSend = new JMenuItem("Send your buddy key");
    private JMenuItem menuDelete = new JMenuItem("Delete selected buddy key");
    private JMenuItem menuReset = new JMenuItem("Reset your key");
    private JMenuItem menuChangeLogin = new
    w JMenuItem("Change Login");
    private JMenuItem menuHelp = new
    w JMenuItem("Help...");
              private JButton openDir = new JButton("Open path");
              private JTextField jTextField1 = new JTextField();
              private JScrollPane treeView;
              private JScrollPane imageView;
              private JScrollPane textView;
              private String ROOT;
              private File root;
              private DefaultMutableTreeNode top;
    final private DefaultMutableTreeNode FILLER = new
    w DefaultMutableTreeNode(new FileInfo ("about:blank",
    "about:blank"));
    public File_Encryptor() throws FileNotFoundException,
    InterruptedException, IOException,
    ClassNotFoundException {
    super("FILE ENCRYPTOR 1.0");
                   addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e)
    dowEvent e) {
                        System.exit(0);
                   ROOT = getRoot(System.getProperty("user.home"));
                   root = new File(ROOT);                    
                   try{
                   //Create the nodes.
                   top = unfold(root);
                   top.setUserObject(new FileInfo(ROOT,ROOT));
                   tree = new JTree(top);
                   tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
                   Object nodage = top.getNextNode().getUserObject();
                   FileInfo leaf = (FileInfo) nodage;
    tree.addTreeSelectionListener(new
    ew TreeSelectionListener() {
    public void
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
    TreeNode node = (DefaultMutableTreeNode)
    tree.getLastSelectedPathComponent();
    if (node == null) return;
              try{
                        Object nodeInfo = node.getUserObject();
                        FileInfo temp = (FileInfo) nodeInfo;
                        if((node.isLeaf()) && (!(node.isRoot())))
                             System.out.println(temp.Path());
                             //figure out how to place file in editor pane.
                        else
                             return;
                   catch(Exception fubar)
                        fubar.printStackTrace();
                   treeView = new JScrollPane(tree);
                   treeView.setSize(150,450);
    jTextField1.setMaximumSize(new Dimension(50,
    0, 100));
                   jTextField1.setText("PATH");
    this.getContentPane().add(jTextField1,
    1, BorderLayout.EAST);
    this.getContentPane().add(treeView,
    w, BorderLayout.WEST);
    catch(Exception e) {
    e.printStackTrace();
                   jMenuBar1.setBorder(BorderFactory.createEtchedBorder
                   JMenu menu = new JMenu("File");
                   JMenu about = new JMenu("Help");
                   JMenu keys = new JMenu("Keys");
                   JMenu change = new JMenu("Login");
                   menuQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEv
    nt.VK_Q, ActionEvent.META_MASK));
                   menuQuit.setEnabled(true);
                   menuQuit.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             System.exit(0);
                   menu.add(menuQuit);
                   jMenuBar1.add(menu);
                   jMenuBar1.add(keys);
                   jMenuBar1.add(change);
                   jMenuBar1.add(about);
                   this.setJMenuBar(jMenuBar1);
              public class FileInfo {
              private String path = "";
              private String name = "";
              public FileInfo(String p , String n){
                   path = p;
                   name = n;
              public String toString(){
                   return name;
              public String Path(){
                   return path;
              public static String getFileEx(String po){
              String ext = "";
              int i = po.lastIndexOf('.');
              if(i > 0)
                   ext = po.substring(i-1);
              else
                   ext = null;
              return ext;
              private DefaultMutableTreeNode unfold(File path) {
    DefaultMutableTreeNode node = new
    ew DefaultMutableTreeNode("");
                   Vector Files = new Vector();
                   Vector Direc = new Vector();
    if((path.isDirectory()) && (path.list().length !=
    != 0))
    node = new DefaultMutableTreeNode(new
    new FileInfo(path.getPath(),path.getName()));
                        File [] childs = path.listFiles();
                        for(int j = 0; j < childs.length; j++)
                             if(childs[j].isDirectory())
                                  Direc.addElement(childs[j]);
                             else
                                  Files.addElement(childs[j]);
                        for(int g = 0; g < Files.size(); g++)
                             Direc.addElement((File)Files.elementAt(g));
                        for(int i = 0; i < Direc.size(); i++)
                             node.add(unfold((File)Direc.elementAt(i)));
                   else if(!(path.isDirectory()))
    node = new DefaultMutableTreeNode(new
    new FileInfo(path.getPath(),path.getName()));
                   else
    node = new DefaultMutableTreeNode(new
    new FileInfo(path.getPath(),path.getName()));
    node.add(new DefaultMutableTreeNode(new
    new FileInfo(null,"<EMPTY FOLDER>")));
                   return node;
              public static String getRoot(String path)
    int find =
    =
    path.indexOf(System.getProperty("file.separator"));
                   String root = path.substring(0,find + 1);
                   return root;
    public static void main( String [ ] args
    ] args )throws FileNotFoundException,
    InterruptedException, IOException,
    ClassNotFoundException {
    File_Encryptor show = new
    show = new File_Encryptor();
    show.setSize(700, 500);
    show.setResizable(false);
    //show.setLocation(100,100);
    show.setVisible(true);
    //code end.

  • Folder Chooser reference (which uses a tree for selection)

    is there a recommendation for a folder chooser which uses a tree for selection? all i've found so far are either:
    * 3rd party folder choosers
    * the file open dialog box of java where you use setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
    i can't believe there is currently no folder chooser which uses a tree for selection in standard java. so probably i didn't find it. before i write my own, i thought i'd ask.
    thanks for the help!

    No, it doesn't exist in the standard Java API. What's wrong with third party solutions, especially when some of them are open source? Google found quite a few.
    db

  • Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some

    Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some headers and maps in this document are converted OK but the body text is garbled. I have tried converting to Docx, Doc and RTF with no success. I disabled OCR and it made no difference. What can I do please?
    Les

    Hi,
    Can you please provide me the file with which you are facing the issue.
    Thanks

  • I have been using Itunes Apps for some time. Today I signed to Itunes to get Apps updated. Apple said I must update my account. I did that with a new password. Itunes said invalid support. Now what can I do?

    I have been using Itunes Apps for some time. Today I signed to Itunes to get Apps updated. Apple said I must update my account. I did that with a new password. Itunes said invalid support. Now what can I do?

    What do you mean "invalid support"? What EXACTLY did it say? Did it say you had an unsupported SIM after updating the firmware on your phone?

  • I have been using Voice memos for some time but now I get a message to say No Microphone Available how do I get the function working again?

    I have been using Voice memos for some time but now I get a message to say No Microphone Available how do I get the function working again?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I was not using my Iphone for some time and when i charged it for use the screen is not lighting up. the image is very dim . Please assist to correct this situation., I tried to increase the brightness.no use.

    Iphone 3 GS was not being used for some time. When I charged it for use the screen is not becomeing bright. The images are very dim although i increased the brightness. Pls assist.

    Since it's a new machine, contact Apple Service, iMac Service or Apple's Express Lane. Do note that if you have AppleCare's protection plan and you're within 50 miles (80 KM) of an Apple repair station, you're eligible for onsite repair since yours is a desktop machine. That also might apply to newly bought ones inside the first 90 days.
    FWIW, IMO, the AppleCare extended plan's the cheapest insurance you can get for your new desktop machine.

  • I'm confused about buying used smart cases for iPad mini 1, 2, and 3.

    I'm trying to buy used smart covers for the iPad mini 1, 2, and 3 but I'm not sure which smart cover versions will fit which mini.
    So far, in pink, I've been able to find MGNN2ZM/A and MF061ZM/A. But I want all the other colors too.
    MacMall.com says MGNN2ZM/A is compatible with iPad mini 1, 2, and 3 and MF061ZM/A is compatible with iPad mini 1 and 2. (Apple doesn't provide the part numbers on their web page)
    Basically, I could really use a list of iPad mini, iPad and iPad Air accessories' parts numbers,  and the device/cover compatibilities, if such a list exists.
    Eventually, I want to buy smart covers in every color for iPad 1, 2, 3, 4, 5 (Air), and 6 (Air 2).
    Thank you for your help in advance ^^

        Hello there ctemple,
    That is a great question, thank you for taking the time to contact us. I am sorry to hear your phone is on it's last leg and not working as it should be. I know how important it is to have a working device at all times so will be more than happy to assist you today.
    Great news on our Verizon Edge program you can upgrade to pretty much any phone in our lineup. You pay a small installment every month over a 24-month span on your bill instead of paying full retail or the two-year pricing all at once.
    If you like you can view additional information about our Edge program by going to http://vz.to/1kqnEzS
    Please let us know if you have additonal questions or concerns. Have a great day!
    KarenC_VZW
    Follow us on twitter @VZWSupport

  • Using cache just for some classes

    Hi,
    I'd like to use datastore cache just for some persistent objects. The
    cache should be active just for some objects and disabled for some other
    objects.
    The only one way I found is the following: I defined the default cache
    time-out to 0 millisecs and this value is overridden for a particular
    class in the jdo metadata.
    For example, these are the global properties:
         <config-property name="dataCache" value="true"/>
         <config-property name="dataCacheTimeout" value="0"/>
    and this is the jdo metadata:
    <extension vendor-name="kodo" key="data-cache-timeout" value="10000"/>
    It works, but I don't like it. I'd like to turn off the cache in some way
    for classes that doesn't need it. I tryed to create a custom cache in this
    way:
    <config-property name="dataCache" value="false, true(Name=myCache)"/>
    or
    <config-property name="dataCache" value="false(Name=default),
    true(Name=myCache)"/>
    but Kodo says that a cache named "default" must be configured and error is
    raised.
    What happens when the cache timeout is 0? If the cache is read every time
    with 0 hits, I think that this is no good for performances, it would be
    better not reading the cache at all...

    Your best bet is to use the data-cache metadata extension in those
    classes that you don't want cached:
    <class name="MyVolatileClass">
    <extension vendor-name="kodo" key="data-cache" value="false"/>
    </class>
    If most of your classes should not be cached, you could also set the
    default cache's size (and soft reference size) to zero. This will,
    however, incur a small performance overhead.
    -Patrick
    Claudio Tasso wrote:
    Hi,
    I'd like to use datastore cache just for some persistent objects. The
    cache should be active just for some objects and disabled for some other
    objects.
    The only one way I found is the following: I defined the default cache
    time-out to 0 millisecs and this value is overridden for a particular
    class in the jdo metadata.
    For example, these are the global properties:
         <config-property name="dataCache" value="true"/>
         <config-property name="dataCacheTimeout" value="0"/>
    and this is the jdo metadata:
    <extension vendor-name="kodo" key="data-cache-timeout" value="10000"/>
    It works, but I don't like it. I'd like to turn off the cache in some way
    for classes that doesn't need it. I tryed to create a custom cache in this
    way:
    <config-property name="dataCache" value="false, true(Name=myCache)"/>
    or
    <config-property name="dataCache" value="false(Name=default),
    true(Name=myCache)"/>
    but Kodo says that a cache named "default" must be configured and error is
    raised.
    What happens when the cache timeout is 0? If the cache is read every time
    with 0 hits, I think that this is no good for performances, it would be
    better not reading the cache at all...

  • Known Issue: "DNS server could not be reached" when creating or updating a RemoteApp collection using template images for some locales

    When trying to create or update Azure RemoteApp collections that use a template image for some non-EN-US locales, it might fail with error "DNS server could not be reached". You might also see error code "DnsNotReachable". 

    Cause:  There was a issue in Azure in which decimal punctuation was not treated properly if the locale of the template image used a comma (,) instead of a period (.).
    Workaround:  Before a fix was applied, the workaround was to use template images based on a locale that uses a period to delimit decimals, such as EN-US.
    Resolution:  As of March 19, 2015, a fix for this issue has been applied to Azure. You should once again be able to create collections from template images that use non-EN-US locales. If you continue to have this problem, please
    try the workaround. If that works and the only difference in the template images is the locale, please email remoteappforum (at Microsoft). If the workaround does not work, the issue is likely caused by a DNS configuration issue such as:
    No valid forwarders to public DNS servers configured on your internal DNS server(s).
    A valid internal DNS server is not specified on your Azure RemoteApp VNet.
    A VNet or internal network configuration issue is preventing the internal DNS servers from be reached by the VMs in the RemoteApp collection.

  • Clicking magnets inside of iPad Air after using Smart Cover for some time

    I have read that many people experience clicking magnets inside of iPad Air after using Apple Smart Cover for some time.
    I experienced the same thing and returned the device to the shop where i bought it, while still having the warranty.
    They wrote me after 11 days of having my iPad that it is fixed and i can come for it, i was not yet there.
    Please tell me, how can i realize that they warranty serviced my iPad?
    I have read that many people get new device with same issue, and mine just got fixed somehow...
    It is not Apple Store it is Apple Premium Reseller, was their service OK or they just did not wanted to give me new device?
    How can i get to know they were acting correctly?
    Thanks for the answer

    Everything is OK, they gave my whole new iPad Air

  • Disable Drag & Drop in Tree for some nodes

    It is very easy to enable Drag and Drop on Tree controls. How
    do I disable some Nodes from being dragged? I do not need all nodes
    to be draggable.

    The trick is not to use the tree drag* properties of the
    control and instead use the DragManager to do custom drag and drop.
    This allows to listen to mouse down events and evaluate
    whether to useDragManager.doDrag() to initiate a drag.

  • I have used Adobe Photoshop for some time and want to continue with it. Would I be wise to uninstall iphoto before installing adobe on my new Mac?

    I have loaded about 100 pictures into iPhoto on my new Mac (old PC user) but now am certain that I want to continue with Adobe Photoshop which I have used for quite some time. Should I uninstall iPhoto completely as well as removing the IPhoto Library? Please tell me how best to proceed so as to avoid conflicts.
    Thanks,
    Jerry

    I currently have Elements 9, but as I said I am a complete novice on the Mac.
    When I bought the Mac, I had all of my photos already on an external hd for securitiy purposes, and have since moved them onto the Mac hard drive. I have not yet imported them into iPhoto, although, as I mentioned above I have loaded some pix into iPhoto from a camera just to see how it works. Also I have not yet installed Elements 9 on the Mac.
    If I use IPhoto as the program to upload from the camera, do the photos go directly into iPhoto Library?
    Does the library function the same as my storing them in My Pictures/My Documents, etc on a pc? Can I move pictures about within the iPhoto Library?
    What is the advantage of using both programs simultaneously? If, as TeenTitan mentions above, I could put iPhoto back into the applications folder and not use it at all, and then use Elements 9 as the total package, what features, etc., would I lose?
    If I choose to move iPhoto into the app folder, is it a simple matter or dragging it back? If not, how should I do it?
    Thanks for your patience. I just want to get off to a clean start with my pictures. 

  • HT1420 I've not used my iMac for some time and the password has been forgotten.  How do I re-start?

    I bought the iMac some 18 months ago and it was set up be a system administrator who has since left the company.  I want to start using it again, but no-one knows the password.
    I've tried inserting the Install DVD but the system immediately asks for the original password.
    How do I overcome this?

    Hi Paulfromhkg,
    Welcome to the Support Communities!
    Your post indicates you are using Snow Leopard on your iMac.
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    Mac OS X 10.6: If you forget your administrator password
    http://support.apple.com/kb/PH6317
    Cheers,
    - Judy

  • Use GP API for some GP Runtime Work Center's Function

    Hi ,experts:
    i want to use GP runtime API to do some useful function of GP Runtime Workcenter's function.But when i use
    a method ,got this error:
    java.net.MalformedURLException: The protocol is not allowed
        at com.sap.security.core.server.csi.URLChecker._isValid(URLChecker.java:334)
        at com.sap.security.core.server.csi.URLChecker.isValid(URLChecker.java:775)
        at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:791)
        at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourceURL(AbstractURLGenerator.java:1304)
        at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.getWebResourceURL(AbstractURLGenerator.java:279)
    here is the code i wrote in the Web Dynpro Component Controller method:
           try{
           IWDClientUser wdUser = WDClientUser.getCurrentUser();     
           IUser user = wdUser.getSAPUser();  
           IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
           IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
           IGPWorkItem[]  itemList = rtm.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_OPEN, userContext);
           if(itemList[0].isSingleTaskUI()){
                result = itemList[0].generateNavigationTargetForSingleTaskUI();
           }catch(Exception e)
    how can i solve this exception and continue to complete my work?
    best regards

    Hi,
    I fear that it is not possible to customize the Runtime WorkCenter. This link will always be there. However, it is possible for you to implement your own work center by using the GP Public API.
    Administrator, Owner and Overseer are runtime concepts and cannot apply for browsing the Gallery. It is possible to define DT Permissions for each object. To do this, open a process/block/action and click on the tab "Permissions". There you can search for <i>Role</i>, <i>Group</i> or <i>User</i> and grant them special rights.
    For more information, you can have a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/7f55429c0fab53e10000000a1550b0/frameset.htm">Granting for permissions for GP Objects on help.sap.com</a>
    Hope this helps.
    David

Maybe you are looking for

  • OEDQ 11 - error.connection.externaldatasource - While trying to export excel file into local drive

    Team I am trying to export a dataset as a excel spreadsheet on to my local drive. when I ever I try to run the Export I am getting error.connection.externaldatasource error message. Even I tried creating a excel file in my local and point that file i

  • How do you add multiple videos to one single timeline in encore cs6

    please need assistance, i have 10 separate video files that i am trying to burn onto as few of dvd dl's as possible

  • Acrobat Pro XI PDF Printer を利用したPDF作成でエラーダイアログを表示させない方法はあるか」

    お世話になっております. 現在.バッチからプリントコマンドを実行して.PDF ファイルを作成するプログラムを検討しています. 実際にインストールして実行を確認していたところ.Acrobat 側で上書きエラーなどの出力エラーが 発生した時にエラーダイアログが表示されてしまいます. バッチプログラムですので.エラーダイアログが出しまうと単純にはその画面を閉じる方法がありませんので. 処理が待ち状態で止まってしまいます. この状況を避けるために.エラーダイアログを出さない方法を探しているのですが.コミ

  • 6.0.1 update problems

    After updating to IOS 6.0.1 my phone seems to always be roaming - shows the E instead of 3g or 4g - sometimes it just shows a little circle up there. And it does not let me connect to wi-gi when not at home. Is there some setting that I should change

  • Split contents in a row

    SQL> select edcd_emp_code,edcd_title_name,edcd_param_value from employee_deschange_details   2  where edcd_emp_code =0002108   3  and edcd_code='PWI'; EDCD_EMP_CODE                         EDCD_TITLE_NAME