JFileChooser as a panel, not as a dialog

I'm trying to use a JFileChooser as a panel in a wizard.
I can get the selected file name back if the user double-clicks by adding an ActionListener onto the chooser.
I can get the selected file name back if the user single-clicks by adding a PropertyChangeListener (prop = SelectedFileChangedProperty).
However, if the user enters a name by typing it (or pasting it I guess), when I call getSelectedFile(), it returns the wrong value.
So, I need to know how to read the value that's in the text field, or get an event when the user changes it, or make the field un-editable.
I've searched the forums for quite a while, but have not found any applicable topics. Can this be done? Thanks...

I was able to get the value from that text by extending JFileChooser, and adding this recursive method:
   public String getEnteredFile (Component c)
      if (c instanceof JTextField)
         return ((JTextField) c).getText();
      if (c instanceof Container)
         for (Component child : ((Container) c).getComponents())
            String text = getEnteredFile (child);
            if (text != null)
               return text;
      return null;
However, I still can't tell if the user has entered data into that field, so that I can enable my wizard's Next button. I guess I can use a similar recursive method to get the JTextField, and add a listener on it. Seems kind of clunky, but it should work...

Similar Messages

  • Prelude Metadata panel of the Ingest dialog not available

    Hi, the File Metadata panel of the Ingest dialog is not available (Prelude CS6 Mac) as mentioned in all Prelude tutorials or Help files. I can ingest, transfer or transcode with no problem, but cannot add metadata on Ingest (or add a preset) Any help will be deeply appreciated, thank you. I am ingesting AVCHD files
    This is what it looks like:
    as opposed to this:
    Arturo

    THank you for your quick response, I was getting very frustrated, now I am just plain frustrated . I cannot personally upgrade since the college does that in their own cycles which not always coincide with what you need,
    thanks again

  • JColorChooser : "Swatches"-tab's recent-panel not showing recent color

    Hello all,
    in JColorChooser on "Swatches" tab we have one panel named "recent" and another
    named "Preview".
    Problem 1.
    After i close my Color-chooser-dialog and reopen again , Preview-panel shows
    the last selected ie recently selected color BUT recent-panel not showing any color.
    Although on other Tab like "RGB" i am getting the selected color's RGB values .
    Below is the code-snippet , Am I doing anything wrong ?
    Problem 2.
    This problem is not consistent. What happens that whatever RGB values i set,
    next time when i open the chooser , Red-value gets educed by 1 !!!
    /// code snippet
    Color defaultForeground = conFont.getForeground(); /// this gives last selected color
    Color newColor = JColorChooser.showDialog(GSCommonUtility.getAMStudioFrame(),CommonToolProperties.bundle_ToolProperties.getString("ComContributionsAdapter_ChooseForeground"),defaultForeground);
    Can someone please through some light on these 2 problems?
    thanx n regds,
    Rajesh

    I'm having the same problem with the default color chooser. Whenever it is closed it seems to lose all of the recent colors information. If you figure it out please let me know!!

  • Custom XMP Panels not working in CS4

    I'm trying to develop my first Flex based XMP Panel for CS4.  I'm on Windows Vista.
    I downloaded the SDK (4.4.2) and created a panel, it compiles and previews fine with Flex Builder 3.
    If I add the panel to CS4 (manually or through Flex Builder 3) then the Panel just shows up blank in the PhotoShop FileInfo window.  Many of the other panels also appear blank until I remove the panel.
    I tried copying the sample panels that came with the SDK and they all show up as blank and most of the other default panels are blank too.  Basically, any custom panels cause the FileInfo dialog to stop working properly.
    What am I doing wrong?

    Dear forum user,
    usually we recommend to install custom panels into the "user" location at:
    WINDOWS XP: C:\Documents and Settings\username\Application Data\Adobe\XMP\Custom File Info Panels\2.0\panels\
    WINDOWS VISTA: C\Users\username\AppData\Roaming\Adobe\XMP\Custom File Info Panels\2.0\panels\
    MAC OS: /user/username/Application Data/Adobe/XMP/Custom File Info Panels/2.0/panels/
    The reason why your panels did not work properly was a missing Flash trust file for that user location. Without such a trust file the embedded flash player refuses to "play" your custom panel.
    Please see section "Trust files for custom panels" in the XMPFileInfo SDK Programmer's Guide on page 50 for all details on how to create such trust files.
    Kind regards
    Jörg
    Adobe XMP

  • Anchor links to accordion panels not working properly across browsers

    Hi everyone,
    I need some help to figure out why my anchor links  to specific accordion panels on another page are not working properly  across browsers.
    I have a Map page which has tooltips on  mouseover on the site markers. 15 of the tooltips have "Click here for  information" anchor links (although only 14 are currently linked) which,  in theory, would take you to the Nurseries page where the specified  accordion panel would be opened with the nursery entry appearing at the  top of the new browser window.
    Here are the links to the Map page and Nurseries page, respectively:
    www.alegriadesignstudio.com/RFRI/map_v6.html
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html
    I've  tested the anchor links on IE, Firefox, Google Chrome, and Safari, and  have received varying results. In most cases, the anchor links worked  perfectly on two of the browsers, while on the other browsers, the  correct accordion panel is opened but the nursery entry does not appear  at the top of the new browser window. Anchor links using Safari and  Google Chrome fared better (10 out of 14 links worked properly, and  8/14, respectively), whereas when using Firefox and IE, only 3 anchor  links worked properly. The target audience for this website will be  using IE and Firefox, so I  would appreciate any help to figure out how to tweak the code so that  the most, if not all, anchor links work properly on these two browsers  in particular.
    Here's an anchor link which worked perfectly in  IE, GC, and Safari, but in FF, the entry did not appear at the top of  the new browser window.
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem
    http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem [To access the anchor link on the Map page, mouseover the third green  dot from the top of the map (Tooltip--Location: Mangatarem) and then  click on "Click here for information."]
    Here's a sample anchor link in which the entry did not appear at the  top of the new browser window in any of the 4 browsers:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel [To access the anchor link on the Map page, go to "Mindanao" at the  bottom of the map and mouseover the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION:        Brgys. Amabel, Bongolanon, Imamaling, & Manobisa; Magpet;        North Cotabato) and then  click on "Click here for information."]
    Here's a sample anchor  link in which the anchor link worked properly in GC and Safari, but the  entry didn't appear at the top of the browser window in IE and FF:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar [To access the anchor link on the Map page, go to the small island  north and a bit west of "Mindanao" which is called "Bohol" and mouseover  the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION: Bilar; Bohol) and then   click on the first "Click here for information."]
    Many thanks in  advance for your assistance!
    Joy

    Hi everyone,
    I'm still trying to figure out how to resolve the problem of anchor links to accordion panels not working properly across browsers (see original post for details). I would greatly appreciate any suggestions on how to resolve the problem.
    Many thanks in advance.
    Joy

  • Why do my panels not work in CC 2014

    I made my own panels in CC but they don't work in CC 2014. I miss them.

    It's the latter. Thank you for answering my question.
    Op 21 jun. 2014, om 09:42 heeft Trevor Dennis <[email protected]> het volgende geschreven:
    Why do my panels not work in CC 2014
    created by Trevor Dennis in Photoshop General Discussion - View the full discussion
    Are you talking about a custom workspace, or actual panels made with Configurator?  If the former, then go Preferences > Sync settings.  If the latter, then those Flash panels no longer work in CC 2014.  Check out any of the multiple threads about Extensions being greyed out.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6481073#6481073
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Spry Tabbed Panels - not correct in IE but correct in Chrome and MF

    Hi,
    I'm having problems with an extension I used for a client, so I want to use the Spry tabbed panels form dreamweaver, but they in IE8 it puts all the content under each other in the first tab ??
    In Chrome and MF its correct. Do you know about this problem or is it because I did something wrong?
    see: www.zorgfilosofie.nl/index2
    The other pages where made with an extension but with that script my client can't edit with contribute. That's why I want to implement Dreamweaver Spry Tabbed Panels.
    Thanks for answering!
    Carla

    Hello there from down under J
    Het was mooi weer, maar vandaag regent het.
    Toch zijn hier in deze kamer veel zonnestralen, want het probleem is opgelost!
    I searched the whole evening for alternative but it did’t work with templates.
    With the js files the problem is solved.
    I don’t understand why the js file was not correct, because I just bought CS5.5
    Where do I have to put de file so the problem will not happen again when I make another site?
    Thanks a lot!
    Best regards and take some sun with you!
    Carla
    Van: altruistic gramps [email protected]
    Verzonden: woensdag 5 oktober 2011 2:16
    Aan: Carla Leliveld
    Onderwerp: Spry Tabbed Panels - not correct in IE but correct in Chrome and MF
    Re: Spry Tabbed Panels - not correct in IE but correct in Chrome and MF
    created by altruistic gramps <http://forums.adobe.com/people/altruistic+gramps>  in Spry Framework for Ajax - View the full discussion <http://forums.adobe.com/message/3954185#3954185

  • Spry tabbed panel not displaying correctly in IE , in other browsers it is fine, what is the fix

    Spry tabbed panel not displaying correctly in IE , in other browsers it is fine, what is the fix

    As an FYI: Adobe discontinued developing the Spry framework last year.  And Spry was removed from DW CC.  You can keep using Spry if you wish, but most of us have switched to other solutions that work better in IE10 and Touch Screens.
    Nancy O.

  • Spry Sliding Panels not working in IE

    I've been working for about 12 hours straight on getting this
    working correctly - my Sliding Panels just aren't working at all in
    IE. The panels load properly - for example, you can see only the
    first loaded panel, not all of them - but when I click a link to
    switch to the next, nothing happens. Firebug is reporting no
    errors, and neither is IE. Here is the relevant code:
    <head><script type="text/javascript"
    src="SpryAssets/SprySlidingPanels.js"></script>
    <link type="text/css" rel="stylesheet"
    href="SpryAssets/SprySlidingPanels.css"></head>
    <div id="mainContent">
    <div id="panelwidget" class="SlidingPanels">
    <div class="SlidingPanelsContentGroup">
    <div class="SlidingPanelsContent" id="main">Main
    Content<br /><a href="images/news.png" rel="lytebox"
    title="Omgtest!"><img src="images/news.png"
    /></a><br /> <a href="javascript:void(0);"
    onclick="sp1.showPanel('series');">TEST</a></div>
    <div class="SlidingPanelsContent" id="series">Series
    and Models</div>
    <div class="SlidingPanelsContent" id="about">About and
    Bio</div>
    </div>
    </div>
    <script type="text/javascript">var sp1 = new
    Spry.Widget.SlidingPanels("panelwidget");</script>
    </div>
    The following might be somewhat related: I am using the
    Lytebox javascript library, which is a Lightbox clone (that doesn't
    use prototype), as well as a preloader for my mouseover nav bar,
    with this code:
    <script type="text/javascript">
    function init() {
    MM_preloadImages('images/menu/main_click-trans.png','images/menu/main_hover-trans.png','i mages/menu/series_click-trans.png',
    'images/menu/series_hover-trans.png','images/menu/about_click-trans.png','images/menu/abo ut_hover-trans.png');}
    </script>
    My nav bar links to the panels like this:
    onclick="MM_nbGroup('down','group1','Main','images/menu/main_click-trans.png',1);
    sp1.showPanel('main'); return false"
    However, a plaintext link inside of the first panel - "<a
    href="javascript:void(0);"
    onclick="sp1.showPanel('series');">TEST</a>" - does not
    work either.
    Just for fun I thought I would try adding min-height:0; zoom:
    1; to the CSS classes for slidingpanels.... no dice there as well.
    URL is
    www.goldensealdrums.com/wip
    Any ideas? I am at a complete loss. Thanks.

    Thanks for your help :] I ended up realizing that a huge
    bloated js navbar wasn't all that great of an idea anyway, so I
    scrapped it and used a CSS-based one instead...much cleaner and
    works better (no preloading! woohoo.) It looks like the problem was
    probably an amalgamation of many things, but it's resolved now.
    quote:
    IE doesn't seem to like the PNG images you are using
    understatement of the decade.

  • Just installed the latest Canon printer software update (V 3.2) from the App store. Canon Pixma MX850 will not print. Dialog says job stopped at the server - no pages found. Utilities, print test page works. Printing via Airport.

    Just installed the latest Canon printer software update (V 3.2) suggested by the App store in effort to get printer working after OS update. Canon Pixma MX850 will not print. Dialog says job stopped at the server - no pages found. Utilities, print test page works. Attempting to print via Airport from a MacBook Pro. Also from a Mac Pro via ethernet. Both worked before updating to Yosemite. Canon Pro 9000 Mk 2 works via USB. Tried installing driver 10.84 from OS 10.9 as suggested by PAHU; no luck.

    The "stopped at server - no pages found" message would suggest an image with the print file that is created by the printer driver on the MacBook Pro. But if the Mac Pro is getting the same message then that is unusual.
    To rule out a couple of causes I would try connecting the MacBook Pro directly to the MX850 by USB cable. This action should result in a new printer for the USB connection being created automatically. If not then you may need to manually create it as you won't be able to use the existing printer that exists for the network connection. With the new printer created see if this will let you print without error.
    If this USB connected printer also fails with the same message then try a reset of the printing system. Note that this action will also remove the Pro 9000 from Printers & Scanners so you will have to add it and the MX850 again.

  • "Photos" option button in icloud control panel not working

    Photos option button in icloud control panel not working...it is not greyed out, and it is ticked, but clicking on it has no effect. Windows 8.

    luvsack wrote:
    DOES ANYBODY RESPOND TO THESE QUESTIONS EVER? I HAVE THE SAME PROBLEM AND CAN FIND NO ANSWER ANYWHERE! ANSWER THE **** QUESTION PLEASE!!!!!!!!!!!!!!!!!!!!!!!
    Windows 7 64
    Start your own thread, and please stop shouting, it is hard to read, and who wants that.

  • Textbox Data Binding in VS 2008, Works on a Main form but not in a Dialog!

    I got a perplexing problem here with Databindings. I'm using a POCO class for XML serialization that implements the INotifyPropertyChanged. I'm using Visual Basic 2008 and unfortunately I have to keep the program that way!
    I have two projects: One is a Main WinForm, and the other one I'm working with another engineer and I'm trying to create a dialogbox for the users to enter in data (ie: user name, calibration data, etc)
    In my Main Winform, I'm doing databinding like this:
    TextBoxUserName.DataBindings.Add("Text", data, "Name", False, DataSourceUpdateMode.OnPropertyChanged)
    And it works fine, but when I do this in the dialogbox form, NOTHING is being updated. Not the textbox nor the data.name member (which is also a string)
    So what's the problem then? How come it works in the instance of the Main Winform but not in the dialogbox?

    Duplicate post with :https://social.msdn.microsoft.com/Forums/en-US/04720835-d2a9-47cb-a0d9-ca457e6bb377/textbox-data-binding-in-vs-2008-works-on-a-main-form-but-not-in-a-dialog?forum=vbgeneral

  • Bridge does not open files. dialog: libmmd.dll missing

    bridge does not open files. dialog: "libmmd.dll missing, reinstall bridge."
    Yet I cannot redownload bridge because when I open creative cloud I see bridge as up to date. How can I redownload installed programs?

    How can I redownload installed programs?
    https://creative.adobe.com/products

  • Where is the performance panel of the preferances dialog?

    where is the performance panel of the preferances dialog?

    Choose Edit > Preferences
    It looks like you are using an older system, 32 bit, with an unsupported video card.
    See this link for an explanation of which operating systems are supported. 32 bit on the MAC is no longer supported.
    http://blogs.adobe.com/photoshopdotcom/2012/03/photoshop-cs6-operating -system-support-and-beyond.html
    You can check these links to see what  video cards are supported and system requirements:
    FAQ: What are the System Requirements for the Photoshop CS6 Beta?
    FAQ: What features use the GPU and how do I troubleshoot GPU issues?

  • Actions Panel not displaying

    I am posting this here simply because I couldn't find
    reference to this elsewhere and perhaps it will help someone
    someday.
    In Flash CS3 I had a problem with the Actions panel not
    displaying. I tried F9, choosing Actions from the Window Menu,
    right clicking on a frame and selecting Actions from the context
    menu, restarting Flash, rebooting the computer, etc. It just
    wouldn't display.
    I finally took a good look on my flash desktop. At the very
    top, right below the menu bar, was this little horizontal bar,
    about 2 to 4 pixels in height. It was a dark grey, virtually
    blending in with the window background. It had no graphics or text
    on it, just a horizontal bar. It was probably the bottom few pixels
    of the window frame. This was my actions panel all curled up, no
    header bar, no nothing. I clicked on it, an voila, my actions panel
    appeared.
    My main questions are these: How did this happen and why was
    it just a a blank vertical bar? Why not the regular title bar you
    see when you minimize a panel?

    I received this information from Adobe for my mac when the
    top actions panel ribbon was showing but the window would not open:
    As an initial troubleshooting step, please try to reset the
    Flash CS3 configuration to
    further isolate the issue:
    To reset or re-create the Flash configuration:
    - Close all applications
    - Go to your Hard Drive
    - Then Users
    - Choose your user login (with house icon)
    - Go to Library
    - Then Application Support
    - Choose Adobe
    - Open Flash CS3 or Flash 9 folder
    - Open "EN" folder
    - Rename Configuration folder to Configuration_OLD
    - Launch Flash again and try accessing the Actions Panel.
    It worked for me.

Maybe you are looking for