Is this how I would go about letting the user choose a source file and a de

Hello everyone.
I wasn't sure on how I would do this but what I want is from a drop down menu (which I already have created) they are going to choose somthing.
Once they choose somthing I want it to bring up another window that has a layout like this:
------------------------------------------------------------------------------------|
JLabel->Source:[                            ] (browse) <--JButton|
JLabel->Destination:[                      ] (browse) <---JButton|
------------------------------------------------------------------------------------|
So this new window I want to show up, what would it be? Is it just a JPannel or a JFrame with JButtons?

It might actually be more difficult the more I look at JDialog.
Because what I need is, to allow the user to select a destination directory and a source directory so when they click the button, it will open up a JFileChooser. whatever they pick, I need the window to stay up until both directory's are selected (A source and a destination)
Then I'll have an Ok button that will close the window.
THen I'll use their input source/destination strings and do my other processing with that.

Similar Messages

  • How do I delete one of the user accounts on my computer and not lose the data in that account?

    How do I delete one of the user accounts on my computer and not lose the data in that account?

    I actually have the opposite of this problem. haha.
    https://discussions.apple.com/thread/4484354

  • Letting the user choose the amount of questions to a random quiz

    is it possible to Letting the user choose the amount of questions to a random quiz taken from a question pool?

    Hi Paul,
    you could check the source code of the http://osmf.org/dev/1.5gm/youtube-googleanalytics.html page. The js script code creates the embed code on page load.
    After the object is created, I obtain a generated embed code similar to:
    <object id="StrobeMediaPlayback" width="640" height="480" type="application/x-shockwave-flash" name="StrobeMediaPlayback" data="StrobeMediaPlayback.swf" style="visibility: visible;">
    <param name="allowFullScreen" value="true">
    <param name="flashvars" value="src=http://movie/.....&plugin_ga=GTrackPlugin.swf&ga_http://www.realeyes.com/osmf/plugins/trac king/google=%3Cvalue%20key%3D%22reTrackConfig%22%20type%3D%22class%22%20class%3D%22com.rea leyes.osmf.plugins.tracking.google.config.RETrackConfig%22%3E%09%09%20%20%20%20%20%20%20%2 0%3Caccount%3EUA-7184501-2%3C/account%3E%09%09%20%2...l%3D%22start%22%20/%3E%09%09%20%20%2 0%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmarker%20time%3D%2220%22%20label%3D%22start%22% 20/%3E%09%09%20%20%20%20%20%20%20%20%3C/event%3E%09%09%20%20%20%20%20%20%20%20%3Cdebug%3Et rue%3C/debug%3E%09%09%20%20%20%20%20%20%20%20%3CupdateInterval%3E250%3C/updateInterval%3E% 09%09%09%3C/value%3E&src_namespace_realeyes=http://www.realeyes.com/osmf/plugins/tracking/ google&src_realeyes_pageURL=page%20description&javascriptCallbackFunction=onJavaScriptBrid geCreated">
    </object>
    You will have to urlencode the XML data in order to use the plugin, I think this is where you are stuck.
    Does this help create your own code?
    P.S. regarding the contents of the XML string, you will have to personalize it for you own purposes.

  • I need to make an app that lets the user save a text file to their docs

    i am a 14 year old developer, and i have a problem with interface builder. i would like to add a button, or option in the menu that will allow the user to save a file. it is just a basic text file. can anyone please help? and im a code noob, so make it simple! thanks!

    Seen these?
    Guides:
    http://developer.apple.com/library/mac/search/?q=open+save
    Application File Management:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/
    The Save and Open Panels:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/Concepts/SaveOpenPanels.html
    Managing Accessory Views:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/Articles/ManagingAccessoryViews.html

  • Develop Module RGB Pixel values: 0-100% or 0-255.  Let the user choose.

    I know that folks differ on whether they prefer to see RGB pixel values represented as integers in the range of 0-255 or floating point numbers between 0 and 100%.  Is there a way that the user can choose which one he/she wants (perhaps in the preferences)?  0-255 makes no sense for images which are >24 bit depth or in other color spaces.  It would be nice to have the "luddite option" (0-255) and the "future proof" option (0-100% or whatever range makes sense given the color space).  :-)

    rI load a raw image of Macbeth colorchecker. I look at the RGB percentages for one of the patches. What are they percentages of? I cycle though the colorsapces with Edit/Preferences/External Editing and nothing changes. The RGB precentages remain the same. They are not dependent on the "external editing" colorspace.
    As you discovered, the "external editing" preference is not used inside Lightroom. It sets the color space of the file that gets generated when you do an "edit in Photoshop". Lightroom uses a unique colorspace that has prophotoRGB primaries. Internally all math is done in a linear gamma version of prophotoRGB called MelissaRGB inside Adobe. The values reported under the histogram are based on melissaRGB but modified by the sRGB tone curve. There is nothing equivalent to it in any other piece of software, so you simply cannot compare Lightroom values to values in any other peice of software, regardless of the color space. Andrew wrote a nice overview on this many years ago: http://www.ppmag.com/reviews/200701_rodneycm.pdf 
    I go to Soft Proofing and the RGB values change to numeric. I cycle through some output profiles and the RGB values change, as I would expect. But when I turn soft proofing off, the RGB precentage values return and are the same. They do not depend on the Soft Proof profile. And in soft proof I only see 1 set of values, not a pair of values like Photohobby said. What am I missing?
    If you turn off soft proofing, the values simply return to the actual values according to the internal representation of the image, not the soft proofed ones. What did you expect would happen? I've never seen pairs of values so I am not sure what that is about.
    So, it looks like the Lightroom 4 RGB percentages are based on the Adobe98 colorspace, and are not dependent on any other settings?
    As said above, the values are not comparable. the colorspace is prophotoRGB with an sRGB tone curve. If you're looking for colorchecker values in the Lightroom system: check here.
    When I search the web for "skin tone by the numbers" I get hundreds of CMYK answers. I've never seen an RGB method. Please write one for us.
    You really do not want to do this weird by numbers thing. This is largely a thing of the past. With modern color management and display calibration all you need to do is make the skin tone look good on your display and your output will be good. The simplest and quickest thing to do is to use a reference image with known good skin tones and put it up next to your image. Then adjust white balance until your own image looks good visually. Even better is simply to start with a known neutral by shooting a grey card or color checker neutral patch in the same lighting condition. This ensures good skin tone rendering if your development is not too extreme.

  • How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid

    How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid.  When I tried to type this in for registration, it does register as this numbers also contain letters in it.  Apparently the registration boxes accept numbers only.  What do I do with a useless product for which I have paid good money for it?????

    This is the simple solution which was offered to me when I tried to get the serial code on line.
    The box and disc sleeve do not contain a series with 24 numbers which I presume is the product code to install.
    I tried to redeem the registration code by following what they recommended, but inevitably it gets to the page that showed the registration boxes that need 24 serial numbers and I got stuck again.
    This product is so different what my previous experiences of other software products where I just enter the serial number straight from the disc sleeve and then I got registered and go on to use the software.
    I is really frustrating, spending the last two hours trying to get my product going....

  • I would like to sync Notes between my MacBook Air and the IPhone and/or IPad.  I used to tick a box in Itunes (info), but for some reason it is no longer there.  How do I go about doing the sync?

    I would like to sync Notes between my MacBook Air and the IPhone and/or IPad.  I used to tick a box in Itunes (info), but for some reason it is no longer there.  How do I go about doing the sync?

    The only way to sync Notes is through a mail server. If you don't want to use iCloud, you'll have to use some other mail account, or run your own mail server under OS X Server. The latter is a job for advanced users only.

  • I have another account that i can't delete off my phone because lost my recovery key and password. How do i get rid of this account? it will not let me turn off find my iphone and delete account. Can anyone help?

    I have another account that i can't delete off my phone because lost my recovery key and password. How do i get rid of this account? it will not let me turn off find my iphone and delete account. Can anyone help?

    Hello aweirandyski.1975,
    Thanks for using Apple Support Communities.
    From what you're describing appears to be Activation Lock, a security measure provided by Apple that makes it harder for people to use a lost or stolen device.  You will need to enter the password for the Apple ID the device is prompting you for.
    iCloud: Activation Lock
    http://support.apple.com/kb/PH13695
    Take care,
    Alex H.

  • HT1338 I'm trying to upgrade to the OS X lion, and it says I need to have a Intel Core 2 duo. I currently have a 2 GHz Intel Core Duo. How do I go about making the change? Any help would be appreciated, Thanks Kevin

    I'm trying to upgrade to the OS X lion, and it says I need to have a Intel Core 2 duo. I currently have a 2 GHz Intel Core duo. How do I go about making the change? Any help would be appreciated. Thanks, Kevin

    I was afraid of that.... Thanks for helping!

  • Upon upgrading to Yosemite, the Pages and Numbers apps will not open (although they are the latest versions) and Keynote will not upgrade; how do I go about getting the apps to open?

    Upon upgrading to Yosemite, the Pages and Numbers apps will not open (although they are the latest versions) and Keynote will not upgrade; how do I go about getting the apps to open? Is this a common issue?

    Hi Madhattanite,
    Welcome to the Support Communities!  When did you purchase your Mac?  The first thing I would suggest is to review the information in the resource below for the Up-To-Date Program for Pages, Numbers, and Keynote.
    Once Yosemite is installed, you should have the option to Accept the Pages, Numbers and Keynote apps in the Mac App Store Purchases pane.
    Apple - Up-to-Date Program for Pages, Numbers, and Keynote
    I hope this helps ...
    - Judy

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How can I make US letter the default print size in PSE12

    How can I make US letter the default print size in PSE12

    Clips from JVC Everio camcorders have always had this problem with Premiere Elements (all versions). You need to select Interpret Footage.
    See this FAQ from PE version 2, step 3. Like I said it has been this way with all versions:
    http://www.adobeforums.com/webx/.3bc1265c
    You might be able to use this tool to change the header of your MOD files so they are seen as 16:9: http://www.videohelp.com/tools/DVDPatcher
    Or use this program (SDCopy) to download the video's from the cam, it will allow you to copy straight from the cam to your PC and auto renames and corrects the aspect ratio.
    http://zyvid.com/smf/index.php?action=dlattach;topic=280.0;id=153

  • My macbook crashed about two weeks ago and I had icloud already set up. How do I go about retrieving the music and images? Please, help me. I had over 10gb of music on that computer and the only place it was backup was icloud. Thanks.

    My macbook crashed about two weeks ago and I had icloud already set up. How do I go about retrieving the music and images? Please, help me. I had over 10gb of music on that computer and the only place it was backup was icloud. Thanks.

    I hate to say this, but unless you are paying the 25 bucks you cannot back up your library to the cloud.
    All you can do is back up the items you "purchased" from Apple.
    iTunes Match
    For $24.99/year you’ll get access to all your iTunesmusic including tunes you ripped from CDs or “borrowed” from anonymous friends. It scans your library to see if the song exists in iTunes’ 18 million song catalog and if it does it’ll stream it to you at 256 kbps. If your song is not in iTunes then it’ll be uploaded to iCloud at whatever rate it is on your device where it can be streamed for your listening pleasure. I cannot find any information on how to restore a library, however
    Best of luck

  • I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?

    I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?
    Any and all advice is welcome.

    Do you have different versions of the graphic novel pages, or is there just one version of the page? If there is one version, can you crop into the page without losing anything important?
    I would guess that there is one version, and that cropping into the page will lose something important. If that's the case, here's how I would handle it:
    Make a stage that is 14:9. The size doesn't matter, but 1400x900 could be a good starting point.
    Put down a background texture that fits well with the look of the other images. Make that fill the 1400x900 stage.
    Place your page graphics so that they are within the center 1200x788 area of the stage.
    Set the stage scalemode to "noBorder".
    You now have a layout that will work on all devices, as narrow as iPad, and as wide as iPhone 5. All without any code. On the widest devices you'll see a bit of your background pattern to the left and right of the page graphic. On the narrowest devices you'll see a bit of background pattern above and below the page graphic. But you won't lose sight of anything important.

  • When I come in this morning, Firefox would not connect to the Internet.

    When I come in this morning, Firefox would not connect to the Internet. The pop up read "Unable to connect. Firefox can't estabish a cennection to the server at...." I opened Explorer, and it worked fine. I removed and reinstalled Firefox, it still won't work. I prefer Firefox, how do I fix this?

    Did you download the Windows support software when you first ran Bootcamp Assistant? Did you install the downloaded Windows support software when you first booted into Windows?

Maybe you are looking for

  • Highlighting text in a table cell

    Im trying to get text in a table have it background shaded a different colour to the rest of the table cell but it doesnt work. No exceptions are thrown does anyone have any idea. public Component getTableCellRendererComponent(JTable table,         O

  • Card query

    Do I need a DeckLink or some card to project DV on the side of a 2-storey bldg? Or a DeckLink HD if HDV?

  • Activating Workflow Purchase Order Material Management:

    Hi: I am working in the Workflow for Purchaser Order. Actually I have to notify when an Order have been created. I am using the BUS2012 and also using as basis the Workflow WS20000075. My problem is that I pre-configured Workflow in the transaction S

  • Unexpected behavior: Solaris10 , vlan , ipmp, non-global zones

    I've configured a System with several non-global zones. Each of them has ip - connection via a seperate vlan (1 vlan for each nonglobal zone). The vlans are established by the global zone. They are additionally brought under control of ipmp. I follow

  • Problems opening jpg files in CS4

    I had bought CS4 and Lightroom from Adobe. My raw files ( nef as well as dng) open fine on it, however when they are converted, there is a mesh in front of the image. My jpg files previously adjusted in CS2 also do not open properly with same mesh in