JFileChooser detecting switch between "List" and "Details" views

I'm customizing a JFileChooser and would like to provide users a longer version of the file names when in Details mode (Unix showing links).
This might be accomplished using the getDescription method of FileView, I don't know. My FileView getTypeDescription and getDescription methods are never called but getIcon is. I added @Override annotations to all method, so I think I really am overriding them.
Thanks!

Here's a solution. I still think there should be a more official way of doing this.
public MyFileView(JFileChooser chooser)
          for ( Component c : chooser.getComponents())
               if (c.getClass() == FilePane.class)
                    filePane = (FilePane) c;
     @Override
     public String getName(File f)
          if (filePane.getViewType() == FilePane.VIEWTYPE_DETAILS){
               return "Long";
          return null;
     }

Similar Messages

  • When frequently switching between mobile and desktop view

    When I frequently switching between mobile and desktop view I have to open the layers every time since they get closed/collapsed. Adobe may need to fix it for the next version.

    You can use CTRL+# to switch between Code and Design View.
    By the way, this is the Dreamweaver Application Development forum which deals with questions about using server-side scripting languages like PHP or ColdFusion. General Dreamweaver questions should be posted in the regular Dreamweaver General Discussions forum.
    And while I´m at it: please use descriptive headlines such as "how to switch between Code and Design View" for your posts -- mentioning your screen name "Goula129" is not helpful to other users.

  • Change view order of characteristics in list and details view

    Hello everybody
    I made some changes in the view order of most standard and own characteristics. Unfortunately the characteristic position changes I made are only partly applied!
    Example:
    Position   Characteristic              real pos. in list view
    1          /CCM/PRODUCT_ID             2
    2          /CCM/SHORT_DESCRIPTION      1
    3          /CCM/ORDER_UNIT             3
    4          ZZUMREF_AUSME_MEINS         8
    5          /CCM/BASE_UOM               4
    6          /CCM/PRICE                  6
    7          /CCM/PRICE_BASIS_QUANTITY   7
    8          ZZNFMAT_KZ                  not shown!
    9          ZZNON_AML_AM                5
    10         ZZLIM                       not shown!
    Why characteristics are not shown as a column in the list view is clear to me. This is the case when no catalog items have a value in those characteristics.
    Did anyone else out there observe similar behaviour and hopefully knows the solution to it?
    Kind regards,
    Renaud

    Just for the records...
    The system obeys to a changed character view order of own defined characteristics only if your own defined characteristics are not specified on catalog but on schema level!
    We had specified our own defined characteristics on both levels at the same time... this disturbed the system and was the reason for the disorder in list and details view.
    After correcting it all is fine again.
    Hope this helps someone in future.
    Kind regards,
    Renaud

  • Word Wrap Lost When Switching Between XML and Author Views

    I compose DITA topics in the XML view with the word wrap option selected. If I switch to the Author view to check something and then return to the XML view, my nicely formatted XML view with all the happy element-nesting tabs goes away. I wind up with an ugly chunk of flush-left code and text that's difficult to read. Is there a reason why FM can't remember the tabs and word wrap when I return to the XML view?
    I'm relatively new to using FM's structured side for DITA, so perhaps I'm missing the obvious solution to this problem. If you know the answer, I'd appreciate if you'd clue me in.
    Thanks!

    Sarah,
    When you switch from XML to Author (or WYSIWYG) view, FM does not "remember" the XML document at all. Instead, internally it creates a structured FM document with the same element structure (possibly modified by the underlying XML application). When you switch back to XML view, it creates a new XML document from the current element structure, thereby preserving any changes you made in Author View. FM is very conservative about writing white space to XML in order to avoid inserting unwanted significant space.
    If you do all your editing in XML View and want to inspect the formatted version of the document without making changes to white space, always make a copy of the XML document (with File > Save As) and use the copy in Author View.
    --Lynne

  • Dreamweaver Momentarily Freezing When Moving Between Code and Design View

    I have Dreamweaver CS4 and have had a problem that just started yesterday.  I have rebooted my machine to no avail.  The local copy and the live copy of the site are on two different servers that we access through a local network.
    Dreamweaver slows to a standstill if I click to another program and then attempt to go back into Dreamweaver or if I switch between design and code view.
    I haven't made any changes to Dreamweaver in the way of added extensions or updates.  Is it possible that the cause of this could be either a server problem or a connectivity to the server problem?
    Many thanks in advance for any help you could provide.
    Andy

    You can use CTRL+# to switch between Code and Design View.
    By the way, this is the Dreamweaver Application Development forum which deals with questions about using server-side scripting languages like PHP or ColdFusion. General Dreamweaver questions should be posted in the regular Dreamweaver General Discussions forum.
    And while I´m at it: please use descriptive headlines such as "how to switch between Code and Design View" for your posts -- mentioning your screen name "Goula129" is not helpful to other users.

  • JFileChooser - List and Details

    Hi,
    In the JFileChooser Dialog, we have two buttons "List" and "Details" to view and select the files.
    The default is "List" mode, when the File Chooser dialog opens.
    In this mode, if we type in the first character of the file we want to select, then the FileChooser will automatically focus the first file in that directory starting with that letter.
    For Example: If I type in 's' in the "File Name" text filed, the focus is on the first file in that directory starting with letter 's' like "sample.txt".
    But this same feature is not available in the "Details" mode.
    Does anyone have an idea of how to incorporate this in the "Details" mode ?
    Also is there a way to make the "Details" mode as the default mode when the FileChooser dialog opens.
    I have tried many sources but could not find any information regarding this problem.
    Any help will be appreciated.
    Thanks in advance,
    Neeharika.

    Here's a solution. I still think there should be a more official way of doing this.
    public MyFileView(JFileChooser chooser)
              for ( Component c : chooser.getComponents())
                   if (c.getClass() == FilePane.class)
                        filePane = (FilePane) c;
         @Override
         public String getName(File f)
              if (filePane.getViewType() == FilePane.VIEWTYPE_DETAILS){
                   return "Long";
              return null;
         }

  • Dynamic switching between stacked and non-stacked detail groups?

    Hi guys,
    Is it possible to dynamically switch off/on stacking of detail groups?
    I would like to give the user the option to switch between stacked and non stacked
    Regards
    Bar
    JDev: 10.1.3.2
    JHS: 10.1.2.26

    Yes and No. No because it is not supported out-of-the-box by JHeadstart, yes because you can do this post-generation and then move the custom code to JHeadstart templates.
    However, it is not a trivial thing to build, you can try the JDeveloepr forum for any help, we can help you with moving the post-generation code to custom templates, since that is the JHeadstart-related part of your question.
    Steven Davelaar,
    JHeadstart Team.

  • JFileChooser "List" and "Details" button disabled.

    Hi,
    The two buttons "List" and "Details" buttons on the top-right of my JFileChooser dialog box are both disabled.
    Dose anyone know how to enable them?
    Thanks
    slam

    Here's a solution. I still think there should be a more official way of doing this.
    public MyFileView(JFileChooser chooser)
              for ( Component c : chooser.getComponents())
                   if (c.getClass() == FilePane.class)
                        filePane = (FilePane) c;
         @Override
         public String getName(File f)
              if (filePane.getViewType() == FilePane.VIEWTYPE_DETAILS){
                   return "Long";
              return null;
         }

  • List and details controls of JFileChooser not working

    hey pls tell me wheather there is any way of making list and details controls of JFileChooser work in jdk1.3 it perfectly work in jdk1.4 ....
    pls help me
    thanx
    nik

    Hi Kamal
    In XI 3.0, this is a known issue for DCP value which is based on SAP OpenSQL driver can't be shown .
    It has been resolved in XI3.1 version.
    Thanks
    Ricky

  • Switching between Design and JSP tabs add code?

    I am new to SJSC and I am taking the time to go through all of the little odds & ends of the IDE.
    I was looking at:
    http://blogs.sun.com/roller/page/tor?entry=computing_html_on_the_fly
    And I decided to try this.
    When I add the following in the JSP tab:
    <h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>Save.
    Then click on the Design tab, then go back to the JSP tab, I now have:
    <h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>
    <h:outputText binding="#{Page1.outputText1}" id="outputText1"/>It's late here, but this doesn't make any sense, why would switching between Design and JSP tabs add code?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Girish: I followed these steps:
    1.) Downloaded:
    Sun Java Studio Creator 2, Multilanguage creator-2-windows-ml.exe 254.23 MB
    2.) When I started the install, I received the message:
    Welcome to Sun Java(TM) Studio Creator 2! You are installing: Sun Java Studio Creator 2 development environment Sun Java System Application Server Platform Edition 8.1 2005Q1 Update Release 2 Bundled database
    3.) Installed version:
    Product Version: Java Studio Creator 2 (Build 060120)
    IDE Versioning: IDE/1 spec=5.9.1.1 impl=060120
    Also, Under, the Palette window: Standard component list, there is a component labeled Output Text.
    When placed on a jsp, the following code is produced:
    <h:outputText binding="#{Page1.outputText1}" id="outputText1" style="position: absolute; left: 24px; top: 48px"/>Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Docked T500 - Switch between headphones and speakers

    Hey guys,
    I am using my T500 with an Advanced Mini Dock at work. I keep the headphones (with microphone) plugged into the docking station. 
    Sometimes I want to listen to the audio on my laptop's speakers rather than inside the headphones. Is there any way I can make this switch without unplugging the jack from the docking station. 
    I know that above the volume bar for some systems you are able to switch between headphones and speakers and also, up until ~1 month ago I was able to do this from the SmartAudio utility, but now I can't. I can just switch between SPDIF and headphones. 
    I am using Windows 7 64-bit and I have all the latest drivers and apps that come using the "System Update" utility.
    Please let me know if you have a solution for this.
    Thank you,
    Ciprian

    I'm pretty sure that the blame for this lies entirely with Microsoft and their stupid hardware-detecting W7 OS. Yes, it actually detects when you unplug the headphones, tells you what you just did, and promptly resets all sorts of things. The most sensible thing you can do (apart from reverting to XP, which doesn't do this) is to plug an external stereo jack to stereo jack socket extension lead, and plug either your headphones or speakers into that instead, whilst leaving the plug end permanently in the laptop. Microsoft can't pull that stupid stunt on an external connector, so you should be okay with that.

  • Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Absolutely. Just change the sim card and the APN details in the settings. You can do this either manually if you know them or just sync with iTunes after changing the sim and the details will sync. Once you have done it once for each network the device seems to remember the details.

  • I have the kindle app on my I pad.   How do I eliminate books I've already read?  On a regular kindle, you can switch between cloud and device but I am not getting that option.  Thanks

    I have the Kindle app on my I pad
    I want to eliminate the books I've already read (I have a LOT).
    On the regular kindle you can switch between cloud and device but that is not working on my I pad.
    HELP.
    Thanks

    The Kindle app has a menu on the very bottom center of the screen that allows you to switch from a device and cloud view. To remove a title from the device, tap and hold on it. a pop menu will apear that allows to add the title to a collection, remove it from the device, or download it from the cloud (depending on its current status).

  • When I set black point on windows, the image switches between blank and full image, why?

    when I set black point using windows, the image switches between blank and full image, why?

    I set black point with alt button down while I move sllider. When black
    dots show, I stop and back off a bit.  That's the normal result. Normally a
    white screen appears until I release the alt key. In my case, sometimes the
    screen goes from white to full image. It's not all the time. I view my
    power and ram use as I work and it doesn't spike when this happens.  It's
    as if the alt key command is not holding.  I've used both alt keys with
    same results.
    Thanks for responding.  I hope you have some ideas.

  • Help neede with UITableview and detail views

    OK. So I'm new to iPhone dev and have been trying to figure this out with no luck.
    I have a xib and coresponding ProfileViewController file that contains a tableview. The tableview is pulling data from a .txt file. This is working. However, what I'd like to be able to do is when a user selects one of the tableview rows, it pulls a different xib file, under the nav controller.
    For instance:
    Item 1 displays person.xib
    Item 2 displays animal.xib
    etc.
    I am also using a tab view controller and a navigation controller. The tab views and nav controller work fine.
    If anyone could help with some instructions/code, I would greatly appreciate it.
    Thanks,
    Doug

    Hi Doug - Do you just want each row of your table view to switch to a different detail view when selected? That's a fairly standard setup, so maybe you're trying to describe something else I'm not seeing yet.
    Let's start with the standard structure anyway. Then you can explain what you want that's different, ok?
    Have you looked over the UICatalog sample app yet? The main view of that app presents a table view under a nav bar. Selecting any row in the table view will slide the detail view matching that row under the nav bar. Each detail view is controlled by a different subclass of UiViewController.
    The UICatalog sample is a bit more complicated than we might want for learning the basic structure, but I think it's clear enough for you to see the key steps. Here's one of the methods you might want to look at:
    // MainViewController.m
    // the table's selection has changed, switch to that item's UIViewController
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    UIViewController *targetViewController = [[menuList objectAtIndex: indexPath.row] objectForKey:@"viewController"];
    [[self navigationController] pushViewController:targetViewController animated:YES];
    The above is deceptively simple because lots of work has gone into building the menuList array, which is an array of NSDictionary objects, each containing all the info needed to bring up one detail view. However with a little study, you may find most of the answers to your questions in that file.
    Note that while the view controllers in the menuList array are created with code in awakeFromNib, they could just as easily have been pulled out of separate xib files.
    If you''d like a really well paced, crystal clear explanation of how to use nav bars with table views, I would recommend Chapter 8 and 9 of +Beginning iPhone Development+ by Mark and LaMarche. I think you may be right at the point where you'll benefit from that book the most.
    Hope that helps!

Maybe you are looking for

  • [WP]Restoring code ending in functions.php

    Hello Adobe Forum. I've come here in the hope of any kind person could help out a frustrated "webmaster" Earlier today, i was trying to add some code that would result in creation of a new user to login on my wordpress site. I tried on and on and it

  • Outside PDF transfer from iBook to nook

    I recently bought a travel guidebook online from an outside source other than iTunes. However, when asked what program I wanted to use to open it I chose iBook. Since the book I downloaded was in PDF format I can not highlight portions of it using iB

  • 11g: using limited values in column prompts

    Hello, in the "Column Filter Prompt Properties" dialog box used in 10g, there was an option called "Limited Values" for "What values should be shown to the user" question. So the users could only see those choices allowed by a filter. Is there such t

  • Sending photos in email on iPhone 4

    I am not able to send attachments (photos) while emailing within mail on the iphone.  There is no option to add an attachment.  Is it possible, and how would I do it.  Thanks!

  • Verizon VRUC-A (Verizon Re-Use Card-Amount)

    A short time ago in the District of Columbia near, near to me a store was visited, ready associates eager to accept any form of payment from needy customers, one of which, an Eco-conscience consumer requiring a VRUC-50 ( Verizon - Re-use card $50 amo