Desktop like view of files and folders using Swing
I have an application for upload/download of files from a server. The application is developed using swing and it works perfectly. Currently, the files and folders are displayed in a table view(using jtable) in which the file/ folder will be displayed with icon and extension in each row.
I need to display these files and folders in a desktop like view. How can I implement this?
Anees
Any sample demos or links? Thats why people give you links to the Swing tutorial. The hope is that you will actually look at the Table of Contents and read the tutorial before you post a question.
Or you could even read the JList API to find a link to the tutorial.
Similar Messages
-
With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?
The way I moved from 10.3.9 to 10.5.8 was to use "ditto -rsrc" and copy the user homes and the data share to an external firewire drive. Then did the same in reverse.
I found the key to data and share permissions to make sure that the users had the same UID in Leopard that they had in Panther.
You can then use "sudo rm -rf" to remove any folder from the relocated homes that you want. Remember if you do choose to remove "~/Library" from each users relocated home, you will be removing any iCal calendars, login.keychains, browser bookmarks, custom screensavers and wallpapers, etc.
Users don't really care if they can login and do any work. But there will be much wailing, gnashing of the teeth, and anxiety, if they lose their bookmarks and wallpaper. -
Folder Options - View Hidden Files and Folders
Hello,
On this same laptop, there seems to be an issue with *Folder Options - View Hidden Files and Folders.*
Each time i "check" that option to View - then i go back to verify/confirm the changes done - but the checkbox is "unchecked" again. Despite clicking on Apply and Ok to save the changes! The changes are never saved..
I have used other laptops for this same option and it all worked fine.
Please advise whether i need to apply or amend other settings for this to work?
Regards.Hi
> Therefore, i doubt the antivirus program is the causal factor here..
I wouldnt say so.
I mean normally Bitdefender shouldnt cause such a problem thats right but theoretically its possible. Such security software programs are really good and necessary on every computer with internet connection but due the high security it could maybe blocks some changes from Windows.
In my opinion its worth a try to test it without Bitdefender. Alternative you can use AntiVir (freeware) and the Windows firewall. In my opinion a really good freeware solution. -
Parsing large xml file and display using swing
Hi all,
I want to read a large xml file and display graphically in swing as a tree structure.
I implemented it and works fine for files of 5MB size after increasing the jvm heap size (-Xmx). If the file size is larger than 5MB it throws out of memory error. I'm creating a custom datastructure from the xml and I'm using sax parsing.
After displaying the datastructure, the user could do some operation on this, like search etc.
Can any of you suggest a method, to support larger files ? What I'm looking for is create the datastructure in file system, rather than in memory.
Any other tips for memory management would be greatly appreciated
Thanks in Advance.
NishaUse a memory-mapped file?
http://javaalmanac.com/egs/java.nio/CreateMemMap.html -
Moving files and folders in Finder: any options to simply cut & paste?
My apologies if this has been asked before: I did a search but couldn't find a straight answer.
I'm a new PC-to-Mac convert, but I'm having trouble rearranging files and folders using the drag and drop method. Back in the windows world, I could select multiple files and folders, <ctrl> X to cut, then <ctrl> V to paste in a new location.
Is there any similar method in Finder, other than copying, pasting then deleting the originals?
tia for any advice!I have the same question as at the top of this thread, and I want to make sure I understand the answer independent of the discussion of cut/paste nomenclature.
I have a file or files somewhere on my harddrive. I would like to move them to some other location on my harddrive using the Finder without touching the mouse. Basically I want the Finder equivalent of the UNIX mv command. As far as I can tell from playing with files and from this thread, the way to do this in Finder is the following:
1. Highlight the file or files you want to move.
2. Type command-C.
3. Navigate to the destination folder.
4. Type command-V.
5. Navigate back to the original folder from step 1.
6. Highlight the files from step 1 again.
7. Type command-delete.
Steps 5-7 seem so needlessly clunky that I feel like there must be a better way to do it that I'm overlooking. As far as I can tell you have to do it this way. (You can't, for instance, type command-delete right after doing the copy in step 2, because this removes the files from the clipboard.) For my money, Microsoft Explorer does have the better user scenario for the keyboard-only-file-move task, regardless of whether you dislike the reuse of the "cut" metaphor.
But Apple vs. Microsoft religious wars are beside the point here. I just want to make sure that I've understood the design of Finder correctly. Is there an easier way to move files in the Finder without touching the mouse, or do I have to install 3rd party software like the kind mentioned upthread? -
Transfering files and folders from an external hard drive to my new iMac Lion
I recently bought an iMac Lion and today attempted to transfer applications folders and files from my old computer( tiger) using migration assistant.I was though only partially succesful in as much as my applications and office files were copied, but not so iTunes, iPhoto and iMovies content .I then decided to attempt transfering the files and folders using my external hard disc(La Cie).I have activated Time machine and can certainly see the two partitions i had originally set up in my old computer but cannot figure out how I can the User Files which contain the media i want.? I originally used Super Duper to do my backups but its not recognised on this new computer so i am inclined to think I need to re buy it
Can someone please advise me? Thank youI have found the files and made the transference succesfully except iMovie as i except they are not compatible with Lion
-
what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
II second the whole iTunes folder approach.
If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
tt2 -
My desktop files and folders no longer appear on the screen. I think this is a result of an iPhoto updating. It appears (from getting info) that now Desktop is being treated like a normal file for which an application to open it must be supplied. Can anything be done? Incila
You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
You need to get a new computer or a refurbished one. -
How to sort files and folders like Windows
I don't know if this is specific to Arch or every other Linux distro but one thing that really bugs me in Arch is how files and folders are sorted. I use Windows as my main OS (don't start on that please) and I have one folder properly organized exactly as I want it and I like it how Windows sorts this. I access that same folder from my Arch installation, the problem is that the sorting is different and it gets on my nerves lol...
This is how Windows sorts that specific folder:
C:\Users\Nazgulled\Documents\University>dir /O
Volume in drive C is Vista
Volume Serial Number is F84E-02BE
Directory of C:\Users\Nazgulled\Documents\University
05-08-2009 15:34 <DIR> .
05-08-2009 15:34 <DIR> ..
05-08-2009 11:10 <DIR> [Archives]
05-08-2009 14:38 <DIR> [Developers]
05-08-2009 11:17 <DIR> [X] 1) Cálculo II
05-08-2009 11:18 <DIR> [X] 2) Análise de Custos
05-08-2009 11:18 <DIR> [X] 2) Cálculo de Programas
05-08-2009 11:18 <DIR> [X] 2) Laboratórios de Informática III
05-08-2009 11:18 <DIR> 2) Algoritmos e Complexidade
05-08-2009 11:18 <DIR> 2) Arquitectura de Computadores
05-08-2009 11:18 <DIR> 2) Comunicaçao de Dados
05-08-2009 11:18 <DIR> 2) Engenharia Económica
05-08-2009 11:18 <DIR> 2) Estatística Aplicada
0 File(s) 0 bytes
13 Dir(s) 24.700.485.632 bytes free
And this is how Arch does it:
nazgulled ~/University $ ls -l
total 7
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Algoritmos e Complexidade
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Arquitectura de Computadores
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Comunicação de Dados
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Engenharia Económica
drwxr-xr-x 1 nazgulled nazgulled 8192 2009-08-05 11:18 2) Estatística Aplicada
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:10 [Archives]
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 14:38 [Developers]
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:17 [X] 1) Cálculo II
drwxr-xr-x 1 nazgulled nazgulled 12288 2009-08-05 11:18 [X] 2) Análise de Custos
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 [X] 2) Cálculo de Programas
drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 [X] 2) Laboratórios de Informática III
How can I get Arch/Linux to sort exactly the same as Windows?
Last edited by Nazgulled (2009-08-05 14:41:47)toad wrote:
Nazgulled wrote:Surely there must be a way to have the same sorting collation in Linux like in Windows
Ah, no. The way they are doing it is nonsensical and not good practice for a unix style system. Having said that, some solutions have already been offered in this thread.
While you are free to continue to ask others to help you achieve your aims, it may be more convenient for you to adapt to a structure that is displayed the same way under all systems (just to avoid frustration - not saying you _should_ do it ).
I really don't care if it's nonsensical, I use Windows 95% of the time or more, it's my main OS, I'm used to it and I like it. Why should I care if it's not a good practice for a unix style system? I just want things to behave the way I like and for a free system like Linux where it doesn't even compare to Windows in terms of freedom in what I can do with it and configure the way I like, it sure is hard to change the way folders/files are sorted...
It sucks that there isn't a proper solution but I'm not going to adapt anything, that would be nonsensical... But if I have to, I can live with the fact that there isn't a good solution and leave it as it is
Thanks everyone for their input, "topic closed". -
Saved Digital ID to desktop, all desktop files and folders immediately vanished from computer
I was signing a document in Abobe Reader, and instructed to create a new digital ID in order to do so.
when I did this, I chose to save the digital ID to the desktop, replacing whatever its original destination to be saved to was.
when I hit finish, every single file and folder on my desktop vanished from my laptop (Macbook air running OSX Yosemite) completely. I have searched everyone and gone through a live chat with an Apple specialist who has had access to my screen and cannot find anything. All files and folders, music and photos that were not on my desktop are still here. I have tried re-starting.
Does anyone have any idea what has happened and how to fix it? I am a graduate student and part of my dissertation was on my desktop. I am an idiot for not having backed it up properly, and will be buying an external hard drive and using Time Machine immediately.Hello Elizabeth,
Thank you for contacting Adobe via this forum and other correspondence.
I see that Adobe Support has contacted you directly and is working with you on this issue.
Regards,
Charlene -
I was using the arrange by function to select different arrangements of the files and folders in Finder (column view) but now that I want to return to having them arranged by Name, it is not rearranging the files/folders by name. Instead they stay in a totally random, non-alphabetical arrangement. List view sorts without issue by clicking on the column header. It is column view that will not return to arranging by name. Please help me figure out what is wrong.
Thank you!Repair Disk Permissions in Disk Utility, reboot the computer in Safe Mode then restart normally and test.
-
Files and folders doesn't show up in Web File Viewer
Hi all, My first post here, so please bear with me. After I received my EX2 I've been looking for an easy way to provide friends and family with access to my NAS so they can up/download vacation pictures and movies without having to install anything. I've run through this guide: http://community.wd.com/t5/WD-My-Cloud-EX2/Web-Access-using-browser-only/td-p/705824/page/2 (big thanks to Mikey Soft) And after reading this thread: http://community.wd.com/t5/WD-My-Cloud-EX2/Dashboard-Web-File-Viewer/td-p/785671 I got really excited. While logged in as admin, I'm able to do all the stuff I want to under Apps --> Web File Viewer. Browse all folders, up/download, rename, etc. But when I'm logged in as another user, I'm not able to even see the shared folders. There's absolutely nothing under the Web File Viewer tab. It only loads for a short while (please wait shows up) and then the site is blank. (screen shot here: http://EliNAS.device2284223.wd2go.com:80/api/1.0/rest/file_contents/Public/Shared%20Pictures/Web%20file%20viewer.png?device_user_id=14852387&request_auth_code=b940ac7e734118bcd1dbabdcaf172015986dc32e603c9cc056b89e5663f748f5 ) Could anyone point me in the direction of a fix for this? When trying to login with a non-admin user through the iOS or Android app all shared files and folders are there, so it only seems to be a problem with Web File Viewer.
Hi there and welcome to the WD community.
Try to do a system restore on the unit to see if this maked the web file viewer since this should be available on any users dashboard. This link Might help you with the procedure on the unit hope it helps: http://wdc.custhelp.com/app/answers/detail/a_id/10433 -
My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
I've run out of ideas. Help would be very much appreciated. Thanks.have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy.... google...." fcpx time machine problem" Frist page link
http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
booya! -
To extract the users permission on files and folders in sharepoint 2010 using client object model
To extract the users permission on files and folders in sharepoint 2010 using client object model
Hello,
This is sample code to get item level permisison: (Just written in notepad so it is not tested)
public void ItemLevelPermission()
SecurableObject curObj = null;
ListItem curItem = ctx.Web.Lists.GetByTitle("LibraryName").GetItemById(ItemId); -> Use Id of file or folder.
IEnumerable roles = null;
roles = ctx.LoadQuery(
curObj.RoleAssignments.Include(
roleAsg => roleAsg.Member,
roleAsg => roleAsg.RoleDefinitionBindings.Include(
roleDef => roleDef.Name, // for each role definition, include roleDef’s Name
roleDef => roleDef.Description)));
ctx.ExecuteQuery();
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
When i used Snow leopard, i can search every files and folders on my external hard drive (NTFS). But when i upgraded to lion OS, sportlight didn't index files on exteranal hard drive and i can't search everything on external hard drive whatever i type in the search box! I also check the Finder preference and select when performing a search to "Search the current folder" ! How can i solve this problem! Please help me if you know!
iTunes>Preferences (Cmd+,)>Advanced
Choose the Ext HD (and the appropriate folder) as the location for your library.
Maybe you are looking for
-
Stupid question on checking data types
Hi I want to write a function that can accept a parameter which could be an int or an int array. This is what I have so far: void translateParams(Object obj) { Class type = obj.getClass(); if (type.isArray()){ //do something Two questions - firstly a
-
How do i turn pop up blocker on or off
how do i turn pop up blocker on or off
-
I'd like to install an AIR application on my MacBook, but I get a dire warning panel when doing so: Is it safe to proceed in the face of this warning? Is this behavior unique to Mac OS X or to Safari? The panel comes up on any application install an
-
HT1338 What do like about the update
Hi I'm new to this
-
Why did I get this stupid emails about missing payment of my Adobe CC ???
Hi, I have get this email from Adobe: what we have here payment for your account could not be loaded. So there will be no interruptions in your use of the Creative Cloud , please update your billing information shortly . account Management If you hav