Get state of checkbox in customized JFileChooser

I have built a custom JFileChooser that displays a JCheckBox as an accessory component.
// build an accessory panel for the file chooser
JPanel accesoryPanel = new JPanel(new GridLayout(2, 1));
accesoryPanel.setBorder(BorderFactory.createTitledBorder("Export options"));
JCheckBox checkbox = new JCheckBox ("Copy symbol files", isCopySymbolsDuringExportEnabled);
accesoryPanel.add (checkbox);
JFileChooser fc = new JFileChooser("c:\\temp");
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
fc.setAccessory(accesoryPanel);
int returnVal = fc.showDialog(null, "Choose export directory");
exportDirectory = fc.getSelectedFile().getPath();
How do I refer to the checkbox to see whether the user checked it or not?
-Phil

Nevermind. As soon as I hit send I realized I can simply do
isCopySymbolsDuringExportEnabled= checkbox.isSelected();

Similar Messages

  • Checkbox in custom control(module pool)

    Hi Experts,
    In my module pool i have used function module 'set_table_for_first_display'.
    I am displaying internal table having field for checkbox in custom control .
    When user clicks any checkbox value 'X' is not getting populated in checkbox field in internal table for that particular row.
    Please suggest,
    Regards,
    Kaustubh.

    Hi,
    Just check the Field Catalog you have maintained for the List and check for the Options.
    also in the Grid Layout that you are maintaining just try these:
    data:   g_layout        TYPE lvc_s_layo,           " Grid Layout
    constants:    c_flag(4)       TYPE c VALUE 'FLAG',       " FLAG field
                        c_a             TYPE c VALUE 'A',              " Value 'A'
    In building layout:
      g_layout-sel_mode    =  c_a.
      g_layout-excp_fname  =  c_flag.
    Edited by: Neha Shukla on Nov 17, 2008 6:48 AM

  • Help with custom JFileChooser

    Hello everyone,
    I would like to customize JFileChooser to display a panel with some text above the folder browse section.
    Is this possible... if so, could anyone provide some sample code on how to get this started?

    I'm afraid you're on your own. Noone has [ever done something like that before|http://www.google.com/search?q=customizing jfilechooser].

  • *** How to get the username in a custom password change routine....

    How to get the username in a custom password change routine / procedure / form when a user's password has expired and is redirected automatically to this custom program?
    We use the 2nd parameter in LOGIN_URL column in WWSSO_LS_CONFIGURATION_INFO$ table to get to this custom change-password proc.

    OK !
    Use that maybe good :
    select USERID into v_user from sys.aud$
      where ntimestamp#=(
      select max(ntimestamp#)
      from sys.aud$ );

  • GET statement and internal table

    Hi community,
    I use the GET statement and I want to use some older code segments.
    I read somewhere that I can use the result of GET like an internal table.
    So I tried to get the content of bsid into my internal table it_bsid. But that doesn't seem to work.
    Do you have any advice in this?
    I wanted to do the following:
    TABLES:
            KNA1,
            BSID,
            BKPF.
    DATA:
          it_bsid TYPE TABLE OF bsid WITH HEADER LINE,
          is_bsid LIKE LINE OF it_bsid,
    GET bsid.
    LOOP AT bsid.
      APPEND it_bsid.
    ENDLOOP.
    -or-
    GET bsid.
    LOOP AT bsid INTO is_bsid.
      APPEND is_bsid TO it_bsid.
    ENDLOOP.
    But in both cases I get an error.
    ' "VERSION ... ." expected after "BSID" '
    Do you know what is the reason for that?
    Regards
    Tobias
    Edited by: Tobias Oelschlaeger on Feb 29, 2008 4:18 PM

    Hi Tobias,
    first you have to assign a logical database which has BSID to your program (in program attributes).
    Then GET is the event triggered by the next BSID record according to your selection. You can not LOOP here but you may append to an internal table. This table may be processed using LOOP in the END-OF-SELECTION event.
    Read some documentation about LDB [Logical Databases|http://help.sap.com/erp2005_ehp_01/helpdata/en/f0/ca4584260211d28a430000e829fbbd/content.htm] - it may help to understand the concept of this obsolete technique.
    Regards,
    Clemens

  • How to use where clause with get statement in LDB programs

    Hi All,
    I am using logical databse in my report program.I am not getting how to use the where clause in the get statement is it possible to use?or if not possible only option is we should filter it after get statment is right?Can you please some body throw some idea on this?
    Regards
    Mahesh

    Hi,
    Reffer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    reward if helpful
    Thanks,
    Suma.

  • How to get the count of distinct customer in matrix?

    Hi,
    I want to get the count of distinct customer in matrix at the time of validation event.
    Thanks Regards,

    Hi,
    Please close the thread.by marking the correct answer
    regards,
    Prasad

  • Anyone here get very irritated with Verizon customer service? impossible to contact anyone in a higher position?

    I am so irritated that I cannot discuss my phone issues with a manager. I get supervisors that aren't the smartest, Never return their calls, even though I get plenty of promises. also customer service people who make corrections on my account but never actually do? They do not put notes in my account. list goes on and on....

    Only the negative notes are entered into your account so that the next rep has the upper hand in dealing with us.  Each step up is really only to the next cubicle.  There are no real managers or supervisors.  These are call centers you can't see.  I tried for a month to get to talk to someone about a problem with my 5th replacement in 10 months only to be handed over to a tier 3 tech...yeah right.  The best they could do was an early edge upgrade, for which was a common thing to suggest in any situation.  Basically, they try it one way, then pass you off to tier 2 with another option, usually a sales pitch, then the almighty tier 3 who reside above all else and make all the decisions...if you agree to change plans and buy the one phone they are pushing that month.

  • How do I get a photo inside a custom shape in CS6

    How do I get a photo inside a custom shape in CS6...

    Also, in Sharon's method - "simply press delete" on a regular jpg picture will bring up the Fill Dialog in CS6, with Content Aware being default. Not what you you want here.
    If the OP wants to use a selection as a "custom shape", then creating a mask by clicking on the Add a Mask icon at the bottom of Layer panel (third in from left) is preferable to inverting the selection and deleting pixels.

  • My iphone plus is bending, what does Apple offer regarding this issue?   I am trying to get to contact with Apple Customer Care, but not clear to me how to do it beside this channel of communication. I bought the phone from kosovar carrier which is u

    My iphone plus is bending, what does Apple offer regarding this issue?
    I am trying to get to contact with Apple Customer Care, but not clear to me how to do it beside this channel of communication. I bought the phone from kosovar carrier which is under Slovenian ownership. This means that the original warranty comes from Slovenia, bit complicated but still I would like to get an urgent answer how to proceed with this issue, thanks

    Maybe i should have only asked if anyone is aware on apple's policy
    regarding bending. I took the point that this seems not a proper forum to
    pose Q's to apple thanks to both
    On Wednesday, November 5, 2014, Apple Support Communities Updates <

  • Getting processing log for our custom output triggering FM?

    Hello,
    VA02 > Extras>Header>Output>Edit --- Triggering an custom IDOC
    Stadnard SAP output programs shows IDOC number on output processing log. But, our custom programs/FMs the one we use to trigger on order IDOC, don't show the processing log. How to get this processing log for custom FMs just like standard SAP?
    Thank you

    Hello
    I am sending my custom IDOC by using FM  'MASTER_IDOC_DISTRIBUTE', if it went well (sending successfully - status is '03') in next step am using PERFORM FILL_NAST_PROTOCOL(ROIKCALE) routine.
    But, when i checked the PROCESSING LOG of the associated green latest item in VA02/03>Extras>OP>Header>Edit....am getting a message that "No processing log exists"
    How to get/see my IDOC #?
    when i saw the F1, it says, "System logging has been de-activated for the selected output type (use settings in Customizing for current application for the selected output type)"
    When i checked the settings in NACE (and then clicking lense), they are fine.
    Am i seeing correctly to get/know the generated IDOC #?
    Thank you

  • When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED ra

    When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Applied patch
    6241631 11i.ATG_PF.H.delta.7 (RUP 7) and it's pre-requisite patches
    Forms can not be launched successfully.
    APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Followed
    Note 391243.1: Unable to access forms - getting APP-FND-01926 error (Doc ID 391243.1)
    Note 555409.1: Client Gets App-Fnd-01926 Every Time After Bounce Apps 11i Forms Service (Doc ID 555409.1)
    these two notes, can not solve the issue.
    Executed following action plans:
    1. Backup custom.pll file on your issued instance(DEV instance).
    2. Copy a custom.pll files from a working environments(i.e. PROD instance) to this issued instance(DEV instance).
    3. Compile the new copied Library CUSTOM.pll manually by running the command:
    f60gen module=CUSTOM.pll userid=APPS/APPS output_file=$AU_TOP/resource/CUSTOM.plx module_type=library batch=no compile_all=special4. The $FORMS60_PATH needs to be in sync with the the Context.xml specifically the s_f60path variable
    i.e >/oracle/apps/test10appl/au/11.5.0/resource:/oracle/apps/test10appl/au/11.5.0/resource/stub</FORMS60_PATH>
    5. Run Autoconfig instantiate the changes.
    Issue still exists.
    Please HELP~~
    Thanks,
    Jackie

    Hello Srini,
    app11i@hpfsapp2> ls -ltra CUSTOM
    -rwxr-xr-x 1 app11i dba 24576 Aug 29 2001 TMCUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Mar 8 2006 CUSTOM.pll.backup
    -rwxr-xr-x 1 app11i dba 24576 Feb 22 2007 CUSTOM.pll.20120215
    -rwxr-xr-x 1 app11i dba 32768 Oct 4 2007 CHRM_CUSTOM.plx
    -rw-r--r-- 1 app11i dba 36864 Oct 8 2007 CHRM_CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Feb 14 15:20 TMCUSTOM.plx
    -rw-r--r-- 1 app11i dba 24576 Feb 15 09:22 CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 16384 Feb 15 09:23 CUSTOM.plx
    I don't quite understand "only one copy of CUSTOM.plx in the PATH directories", what is PATH directories? How to check? You mean environment variable?
    EBS version: 11.5.10.2
    DB version: 9.2.0.8
    OS: Linux x86
    Thanks,
    Jackie

  • How to get action to checkbox

    hi,
    Can somebody help me to get action to checkbox. As im a beginner in JSP, i finds difficulty in getting the right one.

    action to checkbox? don't think i've ever heard of anyone doing that before. Sounds like the OP needs something but didn't explain the problem well. But if you really do want to call an action when the user clicks a checkbox (sounds like a bad idea to me but whatever) then yeah, you can use JavaScript

  • Is there anyway I can get buy a Moto X customized phone?  I spent most of the day talking with Motorola and Verizon.. it seems the two companies need to have a chat on how  to freakn work together to order this phone online. I feel like a bunch of demento

    Is there anyway I can get buy a Moto X customized phone?  I spent most of the day talking with Motorola and Verizon.. it seems the two companies need to have a chat on how  to freakn work together to order this phone online. I feel like a bunch of dementors sucked the life outta me, I need chocolate and alcohol to help me feel better... eeeek!

    One thing that I finally had to do when I got my phone on MotoMaker was to buy it outright, after getting an account with Motorola--that way I could get a customized one with 32GB storage.  I recall that I could not get it in that size with the usual contract term with Verizon.  The Edge option for some reason was not available to me either, don't recall why.
    But by buying it through Motorola credit, I could spread the purchase price over 12 months--kind of Edge lite.  Then when my contract status changed over to month-to-month instead of the old-fashioned 2 year system, my line charges went down to $15 per month,  as it would using the Edge option. 

  • I would like to express my Adobe Muse years subscription. Through the site this is unfortunately not possible to arrange that through my accounbeheer online. I is getting by referred to the customer support.

    I would like to express my Adobe Muse years subscription.
    Through the site this is unfortunately not possible to arrange that through my accounbeheer online. I is getting by referred to the customer support.
    Is it only possible to arrange this via chat to or by calling to look for?

    You can join support team via chat or Phone :
    https://helpx.adobe.com/contact.html?step=MUSE
    Thanks,
    Sanjit

Maybe you are looking for

  • Closed lid not laying flat

    I just purchased a hp refurbished chromebook 14 and when it arrived I started setting it up and checking all the keys were working and good to go until i was all done and closed the lid of the device. When I closed the lid I noticed that it doesnt qu

  • How to Download to iMovie on MacBook Air from Sony HandyCam Model DCR HC21

    I have a Macbook Air, with USB and Thunderbolt ports.  I'd like to download to iMovie from my Sony HandyCam DCR HC21.  I have a Firewire cable, which I used to download to my old Macbook Pro.  Is there an adapter?  Do I have to download to the old Pr

  • How to show images and text together in textfield or textbox.

    I want to show text and image both in text field or text box or any other container. I actually want to make an messaging application like msn message chat. Where user can add emotion along with their text messages. Do any one have any idea how to do

  • Apple TV - Onkyo Receiver - HD TV = FAIL

    Is this particular setup supposed to work? We just moved into our new home (brand new construction) and we got hardwired surround sound with an Onkyo receiver and since all signals these days are digital everything runs through the Onkyo. The cable b

  • Include '\' escape charecter in normal String

    I just want to include in \ charecter in a string like "please divide 1000/100 when you do this" but is not allowing me .Please help me out thanks.