Jfilechooser on remote directories

Hi guy's I wish to create a java swing applet to use the jfilechooser to browse the directory structure of a remote server. what is the best way of going aboput doing this?
thanks in advance
Danny

Back when there was only SunOS (Solaris 1 as it's known now), when my C program needed to display a directory contents, I would simply do a system call to "ls -lt" and pipe the output to a file or something that I can read. But after having taken a cursory look at the source code for the JFileChooser class in JDK1.3.1, my suggestion would not work....I do not believe the bottleneck is in JFileChooser -- it's simply the sheer size of the list that is causing the problem.
Of course if the only thing you are using the JFileChooser for is to list the contents of that humongous directory, you can use the trick that I mention but instead of using JFileChooser, put the list in a list box that the user can do the selection from.
:o(
V.V.

Similar Messages

  • Rsync - to compare remote directories

    Hi Friends,
    I did use the below syntax to compare remote directories , but it listed all the files in the source directories even if the files are same as in the target directory.
    rsync -avn -e 'ssh -l target user' target:path path
    Thanks,
    Revathi

    The files might be the same, but do the permissions and ownerships match? rsync's "-a" option checks for these, too; "-a" is the "archive mode" and equals to "-rlptgoD" (where "-p", "-t" and "-o" preserve permissions, time stamps and ownerships).
    BTW, the "-e ssh" option might not be necessary. Recent versions of rsync default to ssh anyway. You can use "user@target:path" instead.
    Edited by: Lenz Grimmer on Jun 7, 2011 1:16 AM

  • JFileChooser centers the directories in the dialog box

    Hello,
    I have been searching the forums for days looking for inspiration on my problem and haven't found anything.. (If I've missed it, sorry :( )
    My problem is as follows:
    I am using JFileChooser to create a pop-up dialog box to open and save files. Unfortunately in the box the directories and files are centered making it look quite bad!!
    I know the list button is not enabled, but is there a way I can write my own implementation for it? Err.. any help on how to would be great!!
    By the way, if I run the app on my local env (Using Forte for Java 4 it looks fine), its when I put the jars on the server that the problem appears..
    Thank you in advance for any help/ideas etc...
    Dany

    I just finished dealing with the same problem, which I had caused by incorporating a multiline JLabelUI implementation into my app (http://manning.com/sbe/files/uts2/Chapter27html/Chapter27.htm). It isn't likely that your problem has the same cause, but you might as well check--someone may have snuck it in on you ;).
    Anyway, here's what I learned. The file/directory view in JFileChooser is just a JList, which uses JLabels to render its cells. JLabelUI, in turn, relies in the method SwingUtilities.layoutCompoundLabel. There are two versions of that method, and one of them is not "orientation-aware"--if the label's horizontal alignment is set to the default, LEADING, it will be converted to CENTER.
    Of course JLabelUI should be calling the correct method, but if you're using a custom LookAndFeel, that may have gotten changed. In my case, the LabelUI wasn't calling either of the SwingUtilities methods, but a custom, non-orientation-aware replacement. Also, you may have a version conflict. I don't know when they added this component-orientation stuff, but maybe the JVM on your server doesn't have it.
    Hope this helps.
    Alan

  • JFileChooser and remote filesystems

    I want to add(among local file system) a few remote filesystems to JFileChooser ,
    I implemented FileSytestemVIew(FileSystem) and File(RemoteFile) class.
    At the first glance everything looks ok - i can see local folders and remote root folder(in combo box), when i choose remote root i can see remote folders and files, but when i invoke double click to enter remote folders, exception occurs.
    for some reason JFileChooser sees 'ordinary' File - not my RemoteFile, and it treats it as a file (not folder) and wants to open it (approveSelection fires)
    Probably i did not implemented all the methods that are used ..
    Any ideas ? maybe there are some other ways to explore remote filesystems ?
    package pl.edu.pw.browser;
    import javax.swing.filechooser.FileSystemView;
    import java.io.File;
    import java.io.IOException;
    import pl.edu.pw.fileserver.client.Client;
    import java.util.*;
    import javax.swing.Icon;
    public class FileSystem extends FileSystemView {
    public FileSystem(ArrayList servers) {
    this.servers=servers;
    public File createFileObject(File dir, String filename) {
    System.out.println("createFileObject1");
    if (dir instanceof RemoteFile )
    return new RemoteFile(((RemoteFile)dir).getFtp(),dir.getAbsolutePath(), filename);
    return super.createFileObject(dir,filename);
    public boolean isDrive(File dir)
    if (dir instanceof RemoteFile )
    return false;
    return super.isDrive(dir);
    public boolean isFloppyDrive(File dir)
    if (dir instanceof RemoteFile )
    return false;
    return super.isFloppyDrive(dir);
    public boolean isComputerNode(File dir)
    if (dir instanceof RemoteFile)
    if(servers.contains(dir))
    return true;
    else
    return false;
    return super.isComputerNode(dir);
    public File createFileObject(String path) {
    return null;
    public boolean isFileSystem(File f) {
    System.out.println("isFileSystem");
    if (f instanceof RemoteFile) {
    return false;
    } else
    return super.isFileSystem(f);
    public boolean isFileSystemRoot(File dir)
    System.out.println("isFileSystemRoot");
    if (dir instanceof RemoteFile)
    if(servers.contains(dir))
    return true;
    else
    return false;
    return super.isFileSystemRoot(dir);
    public boolean isRoot(File f) {
    System.out.println("isRoot");
    if (f instanceof RemoteFile )
    if(servers.contains(f))
    return true;
    else
    return false;
    return super.isRoot(f);
    public String getSystemTypeDescription(File f)
    if (f instanceof RemoteFile)
    return f.getName();
    return super.getSystemTypeDescription(f);
    public Icon getSystemIcon(File f)
    return super.getSystemIcon(f);
    public boolean isParent(File folder,
    File file)
    if (folder instanceof RemoteFile && file instanceof RemoteFile )
    System.out.println("isParent("+folder.getAbsolutePath()+")("+file.getAbsolutePath()+")");
    if(file.getParent().equals(folder.getAbsolutePath()))
    System.out.println("is");
    return true;
    else
    return false;
    return super.isParent(folder,file);
    public File getChild(File parent,
    String fileName)
    System.out.println("getChild");
    if (parent instanceof RemoteFile )
    return new RemoteFile(((RemoteFile)parent).getFtp(),parent.getAbsolutePath(),fileName);
    return super.getChild(parent,fileName);
    public File createNewFolder(File containingDir)
    throws IOException {
    System.out.println("createNewFolder");
    if (containingDir instanceof RemoteFile )
    return null;
    return new File(containingDir,"/nowyFolder");
    public String getSystemDisplayName(File f)
    if (f instanceof RemoteFile )
    return f.getName();
    else
    return super.getSystemDisplayName(f);
    public File[] getRoots()
    System.out.println("getRoots");
    File[] files = super.getRoots();
    File[] fileAll = new File[files.length+1];
    int i=0;
    for(i=0;i<files.length;i++)
    fileAll=files[i];
    fileAll[i]=createFileSystemRoot((RemoteFile)servers.get(0));
    return fileAll;
    public boolean isHiddenFile(File f) {
    return f.isHidden();
    public File getParentDirectory(File dir) {
    System.out.println("getParentDirectory");
    if (dir instanceof RemoteFile)
    String p = dir.getParent();
    if(p!=null)
    return new RemoteFile(((RemoteFile)dir).getFtp(),p);
    else
    return null;
    else
    return super.getParentDirectory(dir);
    protected File createFileSystemRoot(File f)
    System.out.println("createFileSystemRoot");
    if (f instanceof RemoteFile)
    return new FileSystemRoot( (RemoteFile) f);
    else
    return super.createFileSystemRoot(f);
    static class FileSystemRoot extends RemoteFile {
    public FileSystemRoot(RemoteFile f) {
    super(f.getFtp(),f.getAbsolutePath());
    public File[] getFiles(File dir, boolean useFileHiding) {
    if (dir instanceof RemoteFile)
    RemoteFile[] files = (RemoteFile[])( (RemoteFile) dir).listFiles();
    return files;
    else
    return dir.listFiles();
    public File getHomeDirectory() {
    return super.getHomeDirectory();
    ArrayList servers = null;
    package pl.edu.pw.browser;
    import java.io.File;
    import java.io.FilenameFilter;
    import java.io.FileFilter;
    import pl.edu.pw.fileserver.client.Client;
    import java.util.*;
    import java.text.*;
    import pl.edu.pw.fileserver.Constants;
    public class RemoteFile extends File {
    final static char PATHDELIMS = '/';
    public final static String absoluteStart = "//";
    public RemoteFile(Client ftp, String parent) {
    super(parent);
    this.ftp = ftp;
    path = parent;
    public RemoteFile(Client ftp, String parent, String name) {
    this(ftp, parent);
    if (path.length()>0 && path.charAt(path.length()-1) == PATHDELIMS)
    path += name;
    else
    path += PATHDELIMS + name;
    public boolean equals(Object obj) {
    if (!checked)
    exists();
    return path.equals(obj.toString());
    public boolean isDirectory() {
    if (!checked)
    exists();
    return isdirectory;
    public boolean isFile() {
    if (!checked)
    exists();
    return isfile;
    public boolean isAbsolute() {
    if (!checked)
    exists();
    return path.length() > 0 && path.startsWith(this.absoluteStart);
    public boolean isHidden() {
    if (!checked)
    exists();
    return ishidden;
    public long lastModified() {
    return modified;
    public long length() {
    return length;
    public String[] list() {
    return list(null);
    public String[] list(FilenameFilter filter) {
    System.out.println("list");
    String[] result = null;
    try{
    ArrayList names = (ArrayList)ftp.dir(this.getAbsolutePath());
    ArrayList files = new ArrayList();
    for(int i=0;i<names.size();i++)
    RemoteFile rf = new RemoteFile(ftp,(String)names.get(i));
    if (filter == null || filter.accept(this,rf.getName()))
    files.add(rf.getName());
    result = new String[files.size()];
    files.toArray(result);
    catch(Exception ex)
    ex.printStackTrace();
    return result;
    public File[] listFiles() {
    FileFilter filter = null;
    return listFiles(filter);
    public File[] listFiles(FileFilter filter) {
    System.out.println("listFiles");
    RemoteFile[] result = null;
    try{
    ArrayList names = (ArrayList)ftp.dir(this.getAbsolutePath());
    ArrayList files = new ArrayList();
    for(int i=0;i<names.size();i++)
    RemoteFile rf = new RemoteFile(ftp,(String)names.get(i));
    rf.exists();
    if (filter == null || filter.accept(rf))
    files.add(rf);
    result = new RemoteFile[files.size()];
    System.out.println("listFiles.size="+files.size());
    files.toArray(result);
    catch(Exception ex)
    ex.printStackTrace();
    return result;
    public String getPath() {
    return path;
    public String getCanonicalPath() {
    return getAbsolutePath();
    public String getAbsolutePath() {
    if (!isAbsolute()) {
    return ftp.pwd();
    return path;
    public String getName() {
    String result=path;
    if(result.charAt(result.length()-1) == this.PATHDELIMS)
    result = result.substring(0,result.length()-1);
    int i = result.lastIndexOf(this.PATHDELIMS);
    if(i!=-1)
    result = result.substring(i+1);
    return result;
    public String getParent() {
    String result=path;
    if(result.charAt(result.length()-1) == this.PATHDELIMS)
    result = result.substring(0,result.length()-1);
    int i = result.lastIndexOf(this.PATHDELIMS);
    if(i<3)
    return null;
    result = result.substring(0,i);
    return result;
    public boolean exists() {
    boolean ok = false;
    try {
    String r = ftp.exists(path);
    if(r != null)
    System.out.println("('"+path+"')header:"+r);
    ok = true;
    StringTokenizer st = new StringTokenizer(r,Constants.HEADER_SEPARATOR);
    String answer = st.nextToken();
    if(answer.equals(Constants.TRUE))
    isfile=true;
    isdirectory=false;
    answer = st.nextToken();
    if(answer.equals(Constants.TRUE))
    canread = true;
    answer = st.nextToken();
    if(answer.equals(Constants.TRUE))
    canwrite = true;
    answer = st.nextToken();
    if(answer.equals(Constants.TRUE))
    ishidden = true;
    answer = st.nextToken();
    length = Long.parseLong(answer);
    if(isfile)
    answer = st.nextToken();
    modified = Long.parseLong(answer);
    checked = true;
    catch (Exception ex) {
    ex.printStackTrace();
    return ok;
    public boolean canRead() {
    return canread;
    public boolean canWrite() {
    return canwrite;
    public int hashCode() {
    return path.hashCode() ^ 098123;
    public boolean mkdir() {
    return false;
    public boolean renameTo(File dest) {
    return false;
    public Client getFtp() {
    return ftp;
    private Client ftp;
    private boolean checked = false;
    private boolean isdirectory = true;
    private boolean isfile = false;
    private boolean ishidden = false;
    private boolean canread = false;
    private boolean canwrite = false;
    private String path;
    private long length = 0;
    private long modified =0;
    java.lang.NullPointerException
         at pl.edu.pw.browser.Browser.openLocalFile(Browser.java:136)
         at pl.edu.pw.browser.component.FileChooser.approveSelection(FileChooser.java:31)
         at javax.swing.plaf.basic.BasicFileChooserUI$DoubleClickListener.mouseClicked(BasicFileChooserUI.java:412)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:207)
         at java.awt.Component.processMouseEvent(Component.java:5137)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3174)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java:1590)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    i solve the problem .
    I did not overwrite File.getConicalFile() , this method is invoked at javax.swing.plaf.basic.BasicFileChooserUI$DoubleClickListener.mouseClicked(BasicFileChooserUI.java:412)
    that is why i recived a new object type File when I was waiting for RemoteFile

  • JfileChooser � choose only directories

    How can one in Java[b] CHOOSE (NOT just view) in OpenDialog (via Jfilechooser showOpenDialog method) ONLY DIRECTORIES.
    The desired Filechooser should be able to open directories as well as choose them (as selected) and view directories and files as well. It should be possible to choose (as selected) also directories that are empty or comprise just other subdirectories and no files. One solution could be to add a 3rd button labeled �select directory� but I did not find out how to do it.
    Could someone help me ?
    Thank you in advance.
    Lubos.

    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    How to Use File Choosers

  • Webserver remote directories issues

    We have netware 65sp5/sp6 in production on a multicontainer network. I
    have configured Apache to allow user webpages to be served from their home
    directory/PUBLIC_HTML. This works great on three containers, but the 4th
    refuses. Logs show it not parsing accounts on that system for the proper
    directory, instead looking to the actual WWW server and of course failing.
    We HAVE discovered a user key that is not on accounts setup prior to the
    NW6x upgrades is critical to this technique working, but I have assured
    myself that the test users in each context are setup similarly... Now,
    this containers server experienced a failure a few months back and we had
    to restore and rebuild from scratch.
    It is my assumption there is some deep access configuration that is
    different with this server and not the others, but I cannot find it.. How
    do I make sure the homedir is being searched properly and how do I debug
    things at this level when the normal logfiles don't give us any real
    detail. The users do have all normal access (i.e., Groupwise, data
    directories, etc.)
    Your advice would be greatly appreciated.
    MJK

    Update to debugging...
    Tried replacing the mod_edir.c with the latest and greatest... Now, when I
    try to go to the unreachable server for the users home dir, it will kill
    the main www page... Very odd... Only way to get it back is to issue
    AP2WEBDN & AP2WEBUP.
    MJK

  • Spry Tab Panel is not working properly on remote server

    Hello All,
    I have a problem with spry tab panel, it is not displaying image in the background when it is active, it is working properly in local server but when i upload to remote it vanishes.
    Here is the link
    http://www.geftas.com/temaritestpage/about.html
    Also I am uploading Css and html code below
    Any help would be exteremely appreciated.
    Thanks
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf8"/>
    <meta http-equiv="content-type" content="cache" />
    <meta http-equiv="robots" content="INDEX,FOLLOW"  />
    <meta http-equiv="keywords" content="Enter Keywords"/>
    <meta http-equiv="description" content="Description Here" />
    <title>TEMARI&CO. | Business Strategists</title>
    <link href="css/about.css" rel="stylesheet" type="text/css" media="screen" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
              <div id="header"></div>
      <div id="navigation">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html">HOME</a></li>
          <li><a href="about.html" class="current">ABOUT</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">CONSULTING</a>
            <ul>
              <li><a href="#">Business Plan</a></li>
              <li><a href="#">Marketing Plan</a></li>
              <li><a href="#">Incorporation</a></li>
              <li><a href="#">Accounting System</a></li>
            </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">INDUSTRIES</a>
            <ul>
              <li><a href="#">Untitled Item</a></li>
              <li><a href="#">Untitled Item</a></li>
              <li><a href="#">Untitled Item</a></li>
              <li><a href="#">Untitled Item</a></li>
            </ul>
          </li>
          <li><a href="#">OUR PROCESS</a></li>
          <li><a href="#">CAREERS</a>      </li>
          <li><a href="#">CONTACT</a></li>
        </ul>
      </div>
    <div class="shadow" id="content">
      <div id="TabbedPanels1" class="TabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0">values</li>
          <li class="TabbedPanelsTab" tabindex="0">people</li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">
                    <div id="scrolltext">
                        <h1>Heading1</h1>                 
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. N</p>
            </div>
          </div>
          <div class="TabbedPanelsContent">
                      <div id="scrolltext">
                        <h1>Heading1</h1>                 
            <p>Lorem n, </p>
                                <h1>Heading1</h1>                 
            <p>Lorem ipsum dolor sit amet, , </p>
                               <h1>Heading1</h1>                 
            <p>Lorem ipsum dolor sit a, </p>
                               <h1>Heading1</h1>                 
            <p>Lorem ipsum dolor sit amet,  </p>   
            </div>
          </div>
        </div>
      </div>
    </div>
      <div id="footer">
    <div id="legal">
                          <ul>
                              <li>Copyright © 2012 Temari&Co</li>
                        <li>| Privacy Policy |</li>
                        <li>Terms of Use</li>
                    </ul>
        </div>
                <div id="socialmedia">
                          <ul>
                              <li><img src="images/fbicongri.png" width="20" height="20" alt="fbicon" /></li>
                        <li><img src="images/gicongri.png" width="20"          height="20" alt="gicon"/></li>
                        <li><img src="images/linkedinicongri.png" width="20" height="20" alt="linkedin"/></li>
                        <li><img src="images/twittericongri.png" width="20" height="20" alt="twitter"/></li>
                  </ul>
          </div>   
      </div><!-- end footer-->   
    </div><!-- end wrapper-->
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    @charset "UTF-8";
    /* SpryTabbedPanels.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* Horizontal Tabbed Panels
    * The default style for a TabbedPanels widget places all tab buttons
    * (left aligned) above the content panel.
    .TabbedPanels {
              overflow: hidden;
              margin: 0px;
              padding: 0px;
              clear: none;
              width: 100%;
              height:100%; /* IE Hack to force proper layout when preceded by a paragraph. (hasLayout Bug)*/
    .TabbedPanelsTabGroup {
              margin: 0px;
              padding: 0px;
    .TabbedPanelsTab {
              position: relative;
              float: left;
              background-color: #FFF;
              list-style: none;
              -moz-user-select: none;
              -khtml-user-select: none;
              cursor: pointer;
              font-family: Arial, Helvetica, sans-serif;
              font-size: 9pt;
              font-weight: normal;
              color: #666;
              height: 30px;
              width: 116px;
              text-transform: uppercase;
              text-align: center;
              line-height: 30px;
              margin: 0px;
              padding: 0px;
    .TabbedPanelsTabHover {
              background-image: url(../../SUPEROLDU/images/menubaractive.png);
              background-repeat: repeat-x;
              color: #FFF;
    .TabbedPanelsTabSelected {
              background-image: url(../../SUPEROLDU/images/menubaractive.png);
              background-repeat: repeat-x;
              color: #FFF;
              height: 30px;
              width: 116px;
    .TabbedPanelsTab a {
              color: black;
              text-decoration: none;
    .TabbedPanelsContentGroup {
              clear: both;
              background-color: #FFF;
              height: 100%;
              width: 824px;
              font-family: Arial, Helvetica, sans-serif;
              font-size: 9pt;
              color: #666;
              border-top-width: 1px;
              border-right-width: 1px;
              border-bottom-width: 1px;
              border-left-width: 1px;
              border-top-style: dotted;
              border-top-color: #CCC;
              border-right-color: #CCC;
              border-bottom-color: #CCC;
              border-left-color: #CCC;
    .TabbedPanelsContent {
              height: 100%;
              width: 100%;
              overflow:hidden;
    .TabbedPanelsContentVisible {
    .VTabbedPanels {
              overflow: hidden;
              zoom: 1;
    .VTabbedPanels .TabbedPanelsTabGroup {
              float: left;
              background-color: #EEE;
              position: relative;
    .VTabbedPanels .TabbedPanelsTab {
              float: none;
              margin: 0px;
              border-top: none;
              border-left: none;
              border-right: none;
    .VTabbedPanels .TabbedPanelsTabSelected {
              background-color: #EEE;
    .VTabbedPanels .TabbedPanelsContentGroup {
              clear: none;
    /* Styles for Printing */
    @media print {
    .TabbedPanels {
              overflow: visible !important;
    .TabbedPanelsContentGroup {
              display: block !important;
              overflow: visible !important;
              height: auto !important;
              margin-top: 0px;
              margin-right: auto;
              margin-bottom: 0px;
              margin-left: auto;
    .TabbedPanelsContent {
              clear:both !important;
              margin-top: 0px;
              margin-right: auto;
              margin-bottom: 0px;
              margin-left: auto;
              width: 744px;
    .TabbedPanelsTab {
               overflow: visible !important;
               display: block !important;
               clear:both !important;

    Hi
    Please Upload SpryTabbed Panels.css and menubaractive.png to their respective remote directories/folders.
    The images have not been uploaded at all, the online CSS is the one without a link to the images
    Regards
    Adaan Pre-Media Services
    For more image editing services follow us @
    web designing services

  • Empty folders on remote server after synchronization

    I am trying to set up a working environment for a very large web site and to get to the point of my post...
    Whenever I try and synchronize my FTP with my local copy, I am selecting "Delete remote files not on local drive."
    While the files are deleted on the remote server as they should be, it leaves behind empty directories all over the place where these files used to be.
    The site is large enough that it takes over an hour to ftp it up to my testing server and I am doing a large amount of cleanup and deleting un-necessary files / directories all over the site. If I am going to have to manually track down every empty directory and remove them one by one, it is going to be faster to completely delete my FTP space and re-upload the site every single time I make some revisions which is a bit ridiclulous.
    Isn't deleting the remote directories if I have deleted them locally considered part of SYNCHRONIZATION?
    The site is so large that I can go grab a coffee while the synchronization is taking place but it is not quite as bad as re-uploading the entire local copy of the site every time I make significant changes to the site structure.
    I guess this is related to why Dreamweaver throws "_notes" folders all over my site CONSTANTLY even when I have design notes turned off for my sites?
    I have so many complaints about Dreamweaver and the fact that it pretty much has not improved much at all since Adobe took it over from Macromedia I don't know where to begin. I guess this would be a good place to start LOL!

    As much as I hate replying to myself...
    I was reading through this thread
    http://digg.com/apple/OSXLeopard_Another_Serious_BUG_Unable_to_Browse_SMB_WindowsShares
    I tried many of the suggestions one at a time. Unfortunately, I tried way too many suggestions to know if/which any single one was the "fix". The last three configuration changes I made were to disable IPV6, enable SMB sharing, then disable AFP sharing. After each of these, I did "sudo killall Finder" from a terminal.
    Now it works for me as desired.
    I hope this helps someone else.

  • Cursor Busy in JFileChooser

    I am using a JFileChooser to open directories, some of the directories can contain a lot of sub directories and it can take a while to update the display with the contents (5 seconds), but the JFileChooser doesnt show a busy cursor whilst doing this so can appear to the user that the directory is empty.
    is this a bug in java , i havent found anything in the Bug Database. ?
    Running on Windows JDK 1.5.

    It should work if "parent" is a Window.
    I do notice a problem if you navigate to an empty directory, in which case there is no
    contentsChanged event and the wait cursor doesn't go away. I will investigate if there
    is a solution for that.
    Here is a complete example.
    import java.awt.*;
    import java.beans.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.basic.*;
    public class bug5010850 {
        public static void main(String[] args) throws Exception {
            SwingUtilities.invokeAndWait(new Runnable() {
                public void run() {
                    final JFileChooser fc = new JFileChooser();
                    FileChooserUI ui = fc.getUI();
                    if (ui instanceof BasicFileChooserUI) {
                        fc.addPropertyChangeListener(new PropertyChangeListener() {
                            public void propertyChange(PropertyChangeEvent e) {
                                String s = e.getPropertyName();
                                if (s.equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY)) {
                                    setCursor(fc, Cursor.WAIT_CURSOR);
                        ListModel model = ((BasicFileChooserUI)ui).getModel();
                        model.addListDataListener(new ListDataListener() {
                            public void contentsChanged(ListDataEvent e) {
                                setCursor(fc, Cursor.DEFAULT_CURSOR);
                            public void intervalAdded(ListDataEvent e) { }
                            public void intervalRemoved(ListDataEvent e) { }
                    fc.showSaveDialog(null);
                private void setCursor(JComponent comp, int type) {
                    Window window = SwingUtilities.getWindowAncestor(comp);
                    if (window != null) {
                        Cursor cursor = Cursor.getPredefinedCursor(type);
                        System.out.println(cursor);
                        window.setCursor(cursor);
            System.exit(0);
    }

  • JFileChooser and driectories

    i know its possible to select directories using a jfilechooser but once the directory is selected i want to be able to take all the files from the directory and add their paths to a JList. This is as opposed to going in and adding the files one at a time.
    can anyone help?
    cheers

    yes-
    configure the JFileChooser to select directories (read the doc)
    once you have a directory returned from the dialog, use the File object (read the doc) to obtain its children (the files in the directory)

  • Remote servers on class path

    Is it possible to include an URL of a remote server on the classpath.
    In other words is it possible to store compiled byte-code of classes on a "storage" server and make them available across a network to applications which might need them.
    cheers

    In other words is it possible to store compiled
    byte-code of classes on a "storage" server and make
    them available across a network to applications which
    might need them.You can mount remote directories and put these in your classpath. But having a URL on the classpath is not possible.

  • ORBD + Servertool Remote Servers

    I'm having trouble finding documentation that covers this scenario and wondered if anyone could help.
    I'm developing a Java CORBA solution that has 5 different servers. These servers will be distributed among a number of physical computers on the same network and there is inter-server communication...the servers must know where eachother is.
    I would like them to be CORBA persistent servers and have successfully got a server up and running using ORBD and the servertool.
    The problem is: it appears that the server class files need to be local to the ORBD application. Is this the case? If so, how would this work in a distributed environment? Would each server and physical computer need an ORBD running? If this it the case, how will the servers know where the other is...this isn't a problem when using a transient naming service as the servers/clients and naming servers can all be distributed over any number of nodes.
    Thanks in advance for any help.

    In other words is it possible to store compiled
    byte-code of classes on a "storage" server and make
    them available across a network to applications which
    might need them.You can mount remote directories and put these in your classpath. But having a URL on the classpath is not possible.

  • Network Connection Failures Affecting Printing and Finder Access

    I have a Canon MX320 connected via USB to my iMac running OSX 10.9.1.  The latest Canon printer drivers are installed.  Everything works fine with this printer and computer combination.  The printer is enabled for shaing over the network.
    The problem is that occasionally, the iMac seems to disconnect from any other laptop or desktop computer (Macs or PCs) connected through my wireless router.  On a mac laptop (also with OSX 10.9.1) I may lose access to shared directories on the iMac, and more often, I lose the ability to print from the laptop.  The print queues are unchanged on all Macs, but remote printing over the network fails with the message "printer not connected", even though the only change may have been that the iMac hosting the printer went to sleep. 
    Sometimes, waking the iMac allows the network print job to go through, but typically not if the print job is initiated before waking the iMac.  The printer queue on the laptop will seem fine, with "printer idle", but as soon as the print job is submitted, it briefly reports "looking for printer", and then "printer not connected".  Sometimes, everything (iMac and laptop) needs to be rebooted to re-establish a network printing connection through the iMac. 
    Trying to reset or delete and re-install the printer queue on the laptop does not fix the problem.  I am assuming that this is because the remote connection to the server (the iMac) has effectively been interrupted or lost.  The iMac may show up in a Finder window on the laptop as a simple PC icon, but with none of the connected directories visible.  trying to re-mount the remote directories by connecting to the "server" (the iMac) often fails.  It is as if something has happened to break the connection to the iMac, and both Finder and network printing are thereby disabled until everything is rebooted.
    Printer error log entries:
    E [13/Feb/2014:08:21:43 -0500] Unknown directive BrowseOrder on line 9 of /private/etc/cups/cupsd.conf.
    E [13/Feb/2014:08:21:44 -0500] Unknown directive BrowseAllow on line 10 of /private/etc/cups/cupsd.conf.
    This problem is intermittent but seems to be happening often after the Mavericks upgrade.  One should not have to wake up a remote computer prior to connecting to it, or asking a printer connected to it to print a job.

    Hello Rescue_2003
    Check to see if Wake for network access is checked in System Preferences > Energy Saver.
    OS X Mavericks: Share your computer’s resources when it’s in sleep
    http://support.apple.com/kb/PH14244
    Regards,
    -Norm G.

  • FTP and Internet Explorer lets me retrieve all files in a folder with one click, how to in Firefox?

    I want to use FTP to copy multiple files from a remote machine so I can burn a backup here. I cannot find any syntax in Firefox yet in Internet Explorer 8 I can get a Windows-like display of all remote directories then use Windows commands to 'select all' and/or 'copy to folder' which does the bulk transfer with no further commands. The initial WinXP response to the FTP command is like Firefox in that I have to retrieve each file with a separate command.

    hello, firefox has just a simple viewing capability for files on a ftp server. for more advanced functions please use an extension like fireftp: https://addons.mozilla.org/firefox/addon/fireftp/

  • File Chooser in a Panel - please help

    Hello!
    I am implementing a FTP program as part of an assignment. Can you please tell me how I can get a File Chooser like interface to the files on the remote computer? Can the existing JFileChooser be modified to support this and also can it be embedded in a panel rather than opening in a separate dialog box? Is there any way to get drag and drop support in it?
    Please do help
    Thanks
    Dilip

    Hi!
    Actually, you can use JFileChooser for remote filesystems. I've implemented it once using JDK 1.3.1 (accessing a remote Linux machine over RMI in an applet):
    (1) Create your own subclass of java.io.File, hooking all methods that actually access the filesystem (isDirectory, getSize, ...) to your ftp-connection. (That's the main work, about 50 methods to overwrite, but you can skip many, e.g. createTemporaryFile).
    (2) Make your own subclass of FileSystemView to deliver objects of your File-class instead of Sun's.
    (3) Initialize JFileChooser with this FileSystemView.
    You may also take a look at
    http://www.crocodile.org/listok/2/WhatDoesFileSystemViewView.shtml .

Maybe you are looking for

  • Issues downloading Photoshop CC

    Hi all - I'm running on a Macbook Pro with OSX 10.6.8. I purchased a Creative Cloud membership in June for my freelance work and successfully downloaded Dreamweaver CS6 at that time. However, when I went to download Photoshop CC, I got the following

  • VMware workstation下goldengate monitor server的配置

    java版本: java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b05) Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) ogg版本: Oracle GoldenGate Command Interpreter for Oracle Version 11.1.1.1 12733251 Windows (optimized

  • Sub: code for accessing  4  webcams from the usb ports

    sir , i want to connect 4 webcams in the system and access these four cams symultaneousely . how can i do that using java... by ,johnpaul

  • Message stucks in SM58

    Hi, i'm trying to send an ALEAUD from XI to IDES (R/3 4.6C). It stucks in SM58: "Screen output without connection to user", what is obvisiously a message from R/3. Do somebody know that error? Regards, Udo

  • Error submiting iBook on iTunes Producer

    I tried to submit my iBook made on iBooks Author to the iBookstore using iTunes Producer application but I'm stuck with this error: "Error: Internal error: java.net.MalformedURLException: unknown protocol: bundle schema/20/rng/opf.rng" at Book (MZItm