Explorer like menu

First of all i know little in programming java and i am reading the java tutorials on this site and a book and im slow to learn but i think im getting some.
OK, i would like to ask. i am doing a program that needs a user to be able to access the contenets of the drive c and all of its drive from within the program itself. i know of the one where you use the file open menu but then how could i do it with placing the windows explorer like thing in an application. If you dont understand i can stillclarify thank you for reading this post.

I hope this helps:
In your Swing application, include a menu item called "Open" (or whatever you want) and attach an ActionListener to it.
When someone selects the menu item, the ActionListener will be called.
Have the action listener then display an instance of JFileChooser (read up on JFileChooser, as you can specify lots of parametres that govern its behaviour).
If you want to make the user experience more like windows, you can also set the Look-and-Feel to "system". But that's another thread ... :)

Similar Messages

  • Printing from Explorer context menu prints in wrong scale

    Hi,
    I have a problem with a customer; when they right-click a PDF file and choose "Print" from Explorer context menu the actual printout is sometimes printed in the wrong scale, ie it looks zoomed. The same problem exists when printing PDF's from other applications as well, for example Outlook. If they print the same PDF one more time (by right-click-printing) the problem may resolve itself. Sometimes it's enough to print twice, other times they need to do it more times. The problem exists in several computers, which is why i want it to be a problem with some default-settings in Adobe Reader.
    What might cause this behavior ?

    So, 4 years have passed, and one would hope the problem solved itself in some update the last 4 years.
    However, it has not. (Well, actually it was fixed for a short while. Then it broke again:()
    I do have some fresh information that can help you devs at Adobe to maybe get closer to a solution.
    Just before christmas (nov 22) i was doing a new attempt to solve the problem.
    At the time Reader XI had been released, but not yet installed at the client. Crossing my fingers and praying to higher powers i downloaded XI and gave it a shot; and the problem actually went away! My theory was that finally some architectual change had been implemented; or parts of Reader had been rewritten for any reason. Anyhow, the problem was gone after nearly 4 years and both me and the client was happy!
    Today the client called again. The PDF-printouts are zoomed again. Worse than ever. Now, EVERY PDF that's printed was getting zoomed (if printed from another program.). When printing, Reader flashes by the screen; so i guess the app does something like "adobe.exe /print %temp%\whatever.pdf" or however it works.
    I immediately suspected that an update had been installed and broke the Reader again. This was the case. 11.0.06 had been auto-installed last week. After searching adobe site for 30 minutes i finally found the downloads required to get 11.0.05 installed and running again. *poof* problem gone. Every print is good.
    SOO..
    11.0.05 does not contain the bug that makes most printouts zoomed. (WORKS)
    11.0.06 contains the bug again. (DOES NOT WORK)
    So, whatever changes are in that update broke the Reader for the client again.
    ADOBE: Hope this gets u closer to a solution!
    PEOPLE: If you are experiencing the same problem as my client, please try my solution. It just might help you.
    ps. oh, and where u download older versions from adobe.com is
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Install order:
    - 11.0.01                AdbeRdr11000_mui_Std.zip
    - 11.0.04 patch      AdbeRdrUpd11004_MUI.msp
    - 11.0.05 patch      AdbeRdrSecUpd11005.msp
    Im not sure if installing Multilanguage/All Languages makes a difference.

  • Explorer-type menu needed

    Hello,
    I need an explorer-type menu extension. I like this
    product
    , but you can't put more than one menu on a page. I need to build a
    template with two different menus--one menu for forms, the other
    for staff information.
    Does anyone know of any extensions that have an easy
    interface that will do this?
    Thank you.
    Sean

    Deactivate or remove fonts until the problem goes away.

  • Internet Explorer: Contextual Menu, Retrieve Current URL,Grab Selected Text

    Hi,
    How would you do to add an item to the Internet Explorer Contextual Menu that grab the selected text and retrieve the current Url?
    Thanks in advance

    Actually, I would like to retrieve the current URL and the selected text from the browser by default.
    Ubiquitous, Internet Explorer is the first browser I would like to use.
    1. It could be a java application that monitors the active browser on WinNT, and displays the current URL and the selected text of the monitored browser.
    Or
    2. it could be a java script called by the contextual menu of IE that launches an application with specific data from the page when the item is clicked (gives these specific data to a monitoring application)
    Launching the default browser with a URL is OK. However, monitoring the active browser and retrieving its informations, or retrieving its informations after a clik from the contextual menu is quite an exercise ;-)
    Thanks in advance,

  • How to create a "Explorer" like in java

    i'm just wonderin if there's a way on how to create "Windows Explorer" like in Java wherein you can view all your directories with yellow folder icon and also you can view all your files and drives....
    And when you double click the yellow folder icon it will then expand and will show all the subfolders and files ...
    How????
    Thanks!

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • Explorer-like GUI

    HI guys! i'm back again to ask for some help with my program. My problem is actually about files. How can i determine the size of a file? I have looked at the File class API but i see nothing about getting the file size (i.e. File.getSize()). Is there anyway i can do it in java? And secondly, i want to build an Explorer-like GUI in java using Swing. In there, i want to list the file name, file path, and the file size in columns (Table :-) ). Can this be possible? Thanks a lot to all of you! I'll surely appreciate your help!!! have a nice day :-)

    perhaps File.length() is the one.

  • Re: Explorer like user interface

    Re: Explorer like user interface
    You'll want to use the geometry management features in Forte.
    These can be controlled using the WidthPolicy and HeightPolicy
    attributes on FieldWidget (see p 160 of the Display Library manual).
    You can set these in your code, or using the 'Size Policy' dialog
    off the widget property sheet.
    Do the following:
    Create a Window class, get into the Window Workshop.
    In the Window property sheet, set the Window Style to Resizable,
    set Autosize Enabled.
    Create your TreeView and ListView, group them into a GridField.
    In the TreeView and ListView Property Sheets, under Size Policy,
    set the Width Policy and the Height Policy to Parent for both
    the ListView and TreeView. Also set a minimum size for each (in mils)
    the minimum size will prevent you from getting too small a window.
    For the GridField, also set the WidthPolicy and HeightPolicy to Parent.
    You may also want top set the Column Weight to the ratio you want for
    the sizing of the Tree and List, say 2:3.
    Now the sizing will work. You'll just have to write the code
    to get data in you TreeView and ListView. Looking at
    the examples for outline field:
    $FORTE_ROOT/install/examples/display/soutline.pex
    is a good place to start, if you haven't done it before.
    Good luck!
    Thanks, -Mark
    X-Originating-Ip: [40.33.1.12]
    From: "Ramarao P" <[email protected]>
    To: [email protected]
    Subject: Explorer like user interface
    Date: Fri, 19 Jun 1998 11:50:08 PDT
    Sender: [email protected]
    Reply-To: "Ramarao P" <[email protected]>
    Hi,
    I would like to design a window which is similar to Windows Explorer.
    Treeview in the left side, listview in the right side. I should be
    able to drag and expand the size of the treeview. How is this possible
    in Forte? I tried to use STATE attribute of widgets, but did not
    succeed. Could anyone suggest me how to go about it.
    Thanks in advance,
    Ramarao
    International Business Corporation-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Just to complete, here is a little sample in R3.F.2.0 done with
    Treeview and listView.
    Be aware that to give the user the possibility to resize the left
    part, you should manage it yourself. If you use an outlinefield
    instead, you can put WidthPolicy to seleted and then use FS_ROUTE
    state to enable the user to resize it. But this occurs a bug with the
    resize of the window. If you try this with the treeview, it will
    be converted to FS_SELECTONLY which is nonsense here.
    Also, don't forget that ListView only does Ascending Sort (Microsoft
    does Ascending and Descending). So you should need to manage sort
    yourself too.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    Mark Wallace wrote:
    >
    Re: Explorer like user interface
    You'll want to use the geometry management features in Forte.
    These can be controlled using the WidthPolicy and HeightPolicy
    attributes on FieldWidget (see p 160 of the Display Library manual).
    You can set these in your code, or using the 'Size Policy' dialog
    off the widget property sheet.
    Do the following:
    Create a Window class, get into the Window Workshop.
    In the Window property sheet, set the Window Style to Resizable,
    set Autosize Enabled.
    Create your TreeView and ListView, group them into a GridField.
    In the TreeView and ListView Property Sheets, under Size Policy,
    set the Width Policy and the Height Policy to Parent for both
    the ListView and TreeView. Also set a minimum size for each (in mils)
    the minimum size will prevent you from getting too small a window.
    For the GridField, also set the WidthPolicy and HeightPolicy to Parent.
    You may also want top set the Column Weight to the ratio you want for
    the sizing of the Tree and List, say 2:3.
    Now the sizing will work. You'll just have to write the code
    to get data in you TreeView and ListView. Looking at
    the examples for outline field:
    $FORTE_ROOT/install/examples/display/soutline.pex
    is a good place to start, if you haven't done it before.
    Good luck!
    Thanks, -Mark
    X-Originating-Ip: [40.33.1.12]
    From: "Ramarao P" <[email protected]>
    To: [email protected]
    Subject: Explorer like user interface
    Date: Fri, 19 Jun 1998 11:50:08 PDT
    Sender: [email protected]
    Reply-To: "Ramarao P" <[email protected]>
    Hi,
    I would like to design a window which is similar to Windows Explorer.
    Treeview in the left side, listview in the right side. I should be
    able to drag and expand the size of the treeview. How is this possible
    in Forte? I tried to use STATE attribute of widgets, but did not
    succeed. Could anyone suggest me how to go about it.
    Thanks in advance,
    Ramarao
    International Business Corporation-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Tree like menu

    Hello frds,
    I am have to develop Tree like menu in Midlet.. can any one have idea abt . plz share sample code fo rit if posible
    looking for early response
    Ashish

    You can make a Branch class, stored in an array. The branches each store other branches or menu items, a boolean flag could be used to indicate the difference.
    Class Branch {
       Branch subbranch[];
       String menuItems[];
       boolean ItemOrTree;
       void click(int idx) {
          if (ItemOrTree) {
              /// item
              doMenuItem(menuItem[idx]);
          else {
             subbranch[idx].open();
    }

  • How to make Folder Explorer  like windows with ADF

    I want to make a folder explorer like windows like this image
    http://img837.imageshack.us/img837/4296/sshot7z.png
    I want to make a folder explorer like windows when click on a folder on the tree it expands and shows its sub-folders and its content or show the files inside the folder in another place in the page
    is this possible to be done with ADF .
    I need help in this.
    Thanks in advance.

    Hi,
    Your use case is extremely vague. However, assuming you simply meant the look using ADF Faces, you can simply use the tree component with correctly defined icons to get that. See http://jdevadf.oracle.com/adf-richclient-demo/faces/components/index.jspx?_afrLoop=30572603018616864#%2Fcomponents%2Ftree.jspx%40
    Regards,
    ~ Simon

  • I like to create tabs like menu bar tool bar in my safari , google

    I like to create tabs like menu bar,tool bar, task bar in my safari -google browser

    Is this what you are looking for
    Settings>Safari>Always Show Bookmarks Bar

  • Outlook like menu in apex

    Hi,
    How could i make an outlook like menu in apex i.e. buttons/images as the main menu selections and onclick a tree
    is populated. (Can the tree be visible when i click, say on first button and invisible for the other buttons while a new
    tree is created/displayed when i click on another button )
    Best Regards,
    /costas

    Hi,
    You would have to ask Denes for access to see behind the scenes as it's his site.
    One thing you could look at would be the Issue Tracker or Online Store sample applications: http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html
    These looks fairly similar to what you want to do and you can download them and install them locally or onto your own OTN workspace to see how they are designed.
    Andy

  • An explorer-like program.

    Hello.
    I did not find a specialized forum to post this question, so here it comes.
    I'm creating a program with many "windows explorer" like features. It seems to me that it's likely this already exists - and it would be pointless to program this from scratch.
    Do you know a program with source that has explorer like features (i.e. surf through the files etc.) ?
    I found javaexplorer on sourceforge, but I can't get it to run in NetBeans(it is java 1.4, and renaming enum to enume does not get rid of the runtime errors, though it does compile it)
    Thanks

    @annie: well. There is a NullPointerException. I don't have the details now, because I already deleted the project from NetBeans.
    The thing is, is that a good program ? Or is there a project going on programming something with explorer-like features (javaexplorer seemed dead) ?
    @chuckbin: yes, I know that class, thank you very much.

  • Explorer context menu

    In Windows Explorer, when I right click a file, I can open the VI by selecting an application from the "Open With..." item. However, whenever I run Labview 8.2, it removes my Labview 8.0 item from the list, making it cumbersome to start up an older project. (I have to start Labview 8.0 with a desktop icon and then open the VI).
    What I would like to see is for each version to add its own item to the menu bar, but still leave the old ones there. That way when I want to open an older project, I can simply right-click and pick the appropriate version.
    Alternatively you could have a handler that determines the version from the VI and starts the correct version of Labview.
    Brian Rose

    All that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
    My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
    A rough example of how to do this is at  http://www.codeproject.com/w2k/extendingshell.asp
    Brian Rose

  • How to add "select all" to explorer context menu

    In Windows 7 and  8 I was able to add "select all" to explorer right click context menu using a .vbs script file and a .reg file.  The same .vbs and  .reg files worked for both OS.  However, it does not work in Windows
    10.  Does anyone know how I can accomplish this in Windows 10?  Using Ctrl+A is awkward for me since I've used the context menu for so long.  Besides,  I guess I'm lazy.  Searching the net I've found other context menu adds but
    not this.

    Hi Glasskuter,
    Win 10 is preview version and the purpose is to collection feedback. We've not started to support it yet. I would recommend you use feedback tool in Win 10 desktop to submit issues about it. Thank you for using Win 10.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Explorer Context Menu Convert Sends Files to the Printer

    Right-clicking PSD files and choosing "convert to PDF" sent the files to the printer!!!  I had hoped it would have brought up a dialog to convert the files to PDF...
    (I was looking for "combine as PDF" -- I'm not sure what happened to it?)
    I'm running Acrobat 11 on Windows 8.1
    -Donald

    All that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
    My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
    A rough example of how to do this is at  http://www.codeproject.com/w2k/extendingshell.asp
    Brian Rose

Maybe you are looking for

  • Having very difficult time setting up and running time capsule and airport

    I am having a very difficult time setting up and running airport express and time capsule. My time machine is not being recognized by my mac. The amber light keeps blinking. I'm ready to stsrt over.

  • DTS-610 with Logitech Z-

    Hi everyone, just got the DTS-60 Home Theatre Connect and connected it properly with me Logitech Z-680 Sound System (DTS Decoder is integrated in the user panel). But it does not work! The display just says "Detecting...", so it seems the Decoder can

  • Can't import from OUTLOOK EXPRESS 5 to Mail

    I was trying to import contacts and e-mails from OUTLOOK EXPRESS and somehow all my information seemed to be erased from OUTLOOK. When I try to open it up it doesn't have all my emails and addresses. It's as if it just got installed. I don't know whe

  • Tip for Mail users regarding attaching files (icon view)

    defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes Say bye-bye to *inline attachment view* once and for all!

  • How to realize download by jsp

    Is there any class in jdk to handle with download some files to client? I mean, when a request of download some file comes, how could jsp handle this request and push request file to client?(some thing like browser's work) thank you