File Filter for a Jlist

I'm new to filtereing, ive been looking on site and this one, but can't quite get round the filtering process.
Most filter examples I've seen are for Filechooser, but this program is a Jlist.
I wish to show only one file type, namely an AVI format.
Can anyone help
import javax.swing.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.io.File;
import java.io.FileFilter;
class Test2 extends JFrame
  DefaultListModel dim = new DefaultListModel();
  JList list = new JList(dim);
  private FileFilter fileFilter;
  public Test2()
    setLocation(200,100);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    JScrollPane sp = new JScrollPane(list);
    sp.setPreferredSize(new Dimension(150,200));
    FNameFilter filter = new FNameFilter();
    File directory = new File(".");
    File[] files = directory.listFiles(filter);
    for(int x = 0; x < files.length; x++)
        if(files[x].isFile()) dim.addElement(files[x].getName().toLowerCase().endsWith("txt"));
    JPanel panel = new JPanel();
    JButton btn = new JButton("Delete File");
    panel.add(btn);
    getContentPane().add(sp,BorderLayout.CENTER);
    getContentPane().add(panel,BorderLayout.SOUTH);
    pack();
    btn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae){
        int selectedIndex = list.getSelectedIndex();
        if(selectedIndex < 0)
          JOptionPane.showMessageDialog(null,"Please select file to delete");
        else
          File fileToDelete = new File((String)list.getSelectedValue());
          if(fileToDelete.delete()) dim.removeElementAt(selectedIndex);
   public static void main(String[] args){new Test().setVisible(true);}
}

I tried FileFilter, but the system wouldn'y excpt
that.
Would it be directly related to the file only.Just how did you try "FileFilter"? You know that you have to implement one first, don't you?

Similar Messages

  • Can i able to put filter for my source flat file?

    Hi all,
    Please help me with the best practise of ODI.
    My source is flat file and i want to put filter.
    can i able to put filter for my source flat file? If yes, please help me with the best practise of applying filter.
    Regards
    Suresh

    Hi ,
    If you are trying to create at the Model -->Datastore ---> Filter ---> Insert condition
    then it will not work for File technology . You will get " Invalid Format Description "
    But you can specify a filter in the interface .
    Just drop the column(s) from your flat file data store into the canvas and then specify the filter condition .
    Thanks,
    Sutirtha

  • JFileChooser: folder disapper for choosing when file filter is set

    I have created a JFileChooser for saving csv file. After I have add .csv as the choosable file filter, all folders disapper even though I have set file selection mode as FILES_AND_DIRECTORIES! It will be shown only when I choose "All files" in the file type. Is there any way to display the folder together with all the csv files together?
    Here is my code sippnet:
    javax.swing.JFileChooser saveDialogBox = new javax.swing.JFileChooser("C:\\");
    saveDialogBox.setDialogTitle("Exporting...");
    saveDialogBox.setDragEnabled(true);
    saveDialogBox.setFileSelectionMode(javax.swing.JFileChooser.FILES_AND_DIRECTORIES);
    FileFiltering fileExtension = new FileFiltering();
    saveDialogBox.addChoosableFileFilter(fileExtension);               
    int retMethod = saveDialogBox.showSaveDialog(this);

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.filechooser.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         JFileChooser jfc = new JFileChooser();
         jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
         jfc.setFileFilter(new FileFilter() {
             public boolean accept(java.io.File file) {
              return file.isDirectory() || file.getName().endsWith(".txt");
             public String getDescription() { return "*.txt"; }
         jfc.showSaveDialog(this);
         setSize(200,200);
         show();
        public static void main(String[] args) { new Test(); }
    }

  • Error while creating function filter for SAP R3 destination

    Hi All,
    I am using SAP Portal Add-in 1.0 Patch 3 for Visual Studio 2003 with SAP Portal Runtime 1.0 Patch 3 for Microsoft .NET and SAPDotNetConnector2.0.
    Portal server is successfully added to my server explorer.SAP R3 system  destination is also added succesfully ,but when i create a function filter  
    for my destination function to add my RFC enabled function module it  gives me an error message "Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx",but when i log into the R3 system from portal system ,I am able to log successfully.
    please see the attached jpg file for your reference.
    what should I do,plz help me.

    3 things:
    1. When you say "but when i log into the R3 system from portal system ,I am able to log successfully"... what do you mean exactly? Do you mean you tried to do a "test connection"?
    2. Make sure the portal user mapping is set to "user & password" and not SSO. In order to work with the destination in design time you need to have it set to User and Password. Later, for run-time connection you can change it to SSO.
    3. If number 2 failed, can you please click on the destination in the server explorer and look at the property grid for the connection string property? make sure it's correct (you can post it here if you don't know).
    Regards,
    Ofer

  • How can I get file list for a given directory?

    Hi,
    How can I get file list for a given directory? Is there a function?
    Thanks.

    Hi friend,
    Try this sample report. It displays all files in a directory.
    While executing give some directory name in input. ex:  C:\
    Mention file type in filter parameter. ex: *.DOC
    REPORT ztests.
    DATA : file_table LIKE TABLE OF sdokpath WITH HEADER LINE .
    DATA : dir_table LIKE TABLE OF sdokpath WITH HEADER LINE .
    PARAMETERS:p_dir(50) TYPE c.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        directory  = p_dir
        filter     = '*.DOC'
      TABLES
        file_table = file_table
        dir_table  = dir_table
      EXCEPTIONS
        cntl_error = 1
        OTHERS     = 2.
    LOOP AT file_table .
      WRITE:/ file_table-pathname.
    ENDLOOP.
    Might be helpful...
    Thanks.....
    Edited by: Guest77 on Feb 11, 2009 5:30 AM

  • How to make an app a file receiver for images on iOS?

    Hi,
    How to make an app a file receiver for images on iOS?
    I did it for the Android app.xml like this:
    <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain"/>
        <data android:mimeType="image/jpg"/>
        <data android:mimeType="image/jpeg"/>
        <data android:mimeType="image/png"/>
        <data android:mimeType="image/gif"/>
    </intent-filter>
    How to do it for iOS?
    (I'm using Adobe Air 4.0)
    Thank you!

    What app have you used to create your ibook?  Normally any app will have a menu item like File > Export that will give you the option of PDF, or you can use Print and there will be an option in the Print dialogue to Print to PDF.

  • How do you filter for photos with develop adjustments?

    I wanted to put this information out there, because it was difficult for me to find an answer to the question of "how do you quickly filter for photos that have develop adjustments?"
    Some earlier posts in this forum observe that a smart collection has the ability to filter files wherein "has adjustments" is "true." Yes, it can do that. And it can also add in a "date" parameter for more specific targeting. But it cannot simply say, "in the current folder," or "in the selected folder." And frankly, that's the exact situation when I need to filter down to the files I want: I'm in a folder—typically the current folder that I've just imported—and I've done a smattering of develop adjustments. Now, I want to quickly select just those images for export. Can't be done, not with a Smart Collection, anyway.
    But Lightroom is nothing if not deep, and if you approach the problem from a filtering standpoint, it will eventually get you there—but the solution is very non-obvious. Expose the filter bar, with your favorite preset: camera info, default columns... it doesn't really matter. Hover over the header bar and to the far right will become visible the "add column" widget. Add a column. From the pop-up menu on the name will come a long list of options, the second-to-last of which is "develop preset." Once that's in place, click on "custom." Save your current settings as a new preset and give it a descriptive name like "adjusted images."
    Now, when you're in your current—or any—folder, just click on "metadata" in the filter bar, and your custom preset will be in effect: any images that you've worked on will be selected. It's a fast, one-click selection.
    If there's another way of doing this (keep in mind it's for the selected or current folder only), let me know. It's such a seemingly desirable action that I'm kind of astounded there's no built-in or easy or obvious way to do it... or that no photographer has requested it.

    I am honored to have a response from Rikk "MVP" Flohr, and I do readily agree that your approach is one way to approach the issue. It puts the relevant images in a discrete area that is easy to access. However (this is where I look a gift horse in the mouth) I find "sorts" a bit underwhelming in comparison to "filtering." Two problems: first, the sort still does not 'clear your deck' of unwanted images. You still have to squint at the badges and carefully select the range at the top (or bottom). Mistakes can be made (and I would be the first to make them). Second, the sort command is "sticky," meaning that folder will always have that sort unless you undo it. In general, I think most photographers want to see a folder's images sorted by capture time, so they can easily glance to the beginning, middle, and end of the shoot. With my method, once you click out of the folder, the filter is taken away and you're back to normal.
    I do understand that Lightroom wants me to flag my images with rankings or stars or colors or dancing beavers or what-have-you. But in this particular situation, that's an extra step. If I've applied development adjustments, it's already done. Why shouldn't I be able to choose "Select Developed Photos" from the Edit menu, right under "Select Flagged Photos"?

  • J2EE Filter for /irj application

    Hi,
    i developed a J2EE Filter for irj application but i am getting some problem:
    1) The irj application cannot load the J2EE Filter; it throws a ClassNotFoundException. I think that the problem is linked with a
        ClassPath/ClassLoader issue.
    2) I don't know the session attribute name that stores the URL alias used by a user during logon step. I have to set up to null 
         this attribute in order to obtain a recomputation of the portal desktop to show when a user change application using  
         different alias.
    These are the steps:
    1) I made a jar file for the filter linked to a .sda file through NWDS.
    2) I deployed this sda file throug NWDS
    3) I changed the web.xml to configure the new filter component
    4) restart the server but not worked.
    Can anyone help me please?
    Carlo Paglia

    Hi,
    the file is correctly located in the dir that you suggested. Opening Visual Administration tool i can see the entry "EnteprisePortalFilterLibrary"  in the Libraries section linked with the jar name.
    Restarting the server i obtain again ClassNotFoundException. I think that the problem is correlated to the server ClassPath but i don't know how to configure it.
    Have you got other suggestions?
    Kind regards,
    Carlo Paglia

  • Good file-manager for OpenBox? (with icons)

    I tried rox with the magickthumbnails and videothumbmails, but havent got it working yet.
    I am now trying thunar, but it has dull generic icons.  Everything looks like a piece of paper.  I'm sure it'd look good if I was running XFCE.
    Is there a standard/common file-manager for use with openbox?  Preferably one with icons for different file-types.

    DonVla wrote:
    hi,
    i also recommend rox. fast and the drag'n'drop functionality is brilliant.
    the default layout is truely ugly. but you can change everything.
    i've changed the rox icons by hand:
    in my ~/.gtkrc-2.0.mine:
    # rox-filer toolbar icons
    pixmap_path "~/.icons/panel_icons/icons_2"
    style "normal" {
    stock["gtk-close"] = {{"close.png"}}
    # stock["gtk-close"] = {{"exit.png"}}
    stock["gtk-go-up"] = {{"1uparrow.png"}}
    stock["gtk-home"] = {{"gohome.png"}}
    stock["gtk-refresh"] = {{"redo.png"}}
    stock["gtk-zoom-in"] = {{"add.png"}}
    stock["gtk-zoom-fit"] = {{"stop.png"}}
    stock["gtk-jump-to"] = {{"bookmarks.png"}}
    # stock["gtk-sort-ascending"] = {{"bottom.png"}}
    # stock["gtk-help"] = {{"help-icon.png"}}
    stock["rox-show-hidden"] = {{"filter.png"}}
    stock["rox-show-details"] = {{"view_tree.png"}}
    # stock["rox-select"] = {{"select-icon.png"}}
    widget "*" style "normal"
    it's quite self explanatory .
    vlad
    ps:
    and that's what it looks like:
    http://img206.imageshack.us/img206/2949 … 24aak4.png
    That's a pretty cool setup u got there. Is that conky in the top centre? If so, mind sharing your .conkyrc.
    What Icon theme are u using? is that panel-thingy AWN?
    Could u also elaborate this line < pixmap_path "~/.icons/panel_icons/icons_2" > ?

  • IDOC to XML file filter

    Hi Experts,
    I have created a custom IDOC message type and send as XML file outbound. In the XML file, there are other details as follows just before my header data. Is there any filter for this? The requirement is only send the header and item data.
    Please note that these fields are not defined in my custom IDOC type.
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>200</MANDT>
      <DOCNUM>0000000000250025</DOCNUM>
      <DOCREL>700</DOCREL>
      <STATUS>30</STATUS>
      <DIRECT>1</DIRECT>
      <OUTMOD>2</OUTMOD>
      <IDOCTYP>ZIDOCTYP</IDOCTYP>
    Thanks in advance.

    Hi,
    in XI side don't map control data field to your traget strucutre
    Thanks
    Amit

  • Getting trace file names for a conc program

    Hi All,
    We are using Oracle EBS 11i with Oracle 9i database.
    The Apps version is 11.5.9 and database version is Release 9.2.0.6.0.
    I am trying to trace a custom program which runs the pl/sql procedure.
    I have enabled the tracing in the custom program definition.
    This procedure has several blocks inside and also has many commits.
    Due to this the SID for the session changes frequently.
    Now my question is how can I get all the SIDs for this conc program and get the trace files for each SID.
    My goal is to get all the trace file generated for this conc program and use them for analysis.
    Any help is appreciated !
    Thanks,
    DR.

    Sending again with formatting.
    SELECT c.*, b.accounting_date,
              a.segment1
           || '.'
           || a.segment2
           || '.'
           || a.segment3
           || '.'
           || a.segment4
           || '.'
           || a.segment5 accrual_account
      FROM gl_code_combinations a,
           ARCHIVE.ap_ae_headers b,
           ARCHIVE.ap_ae_lines c,
           ARCHIVE.po_distributions d,
           ARCHIVE.ap_invoice_distributions e
    WHERE e.po_distribution_id IS NOT NULL
       AND d.po_distribution_id = e.po_distribution_id
       AND c.source_table = 'AP_INVOICE_DISTRIBUTIONS'
       AND c.source_id = e.invoice_distribution_id
       AND b.ae_header_id = c.ae_header_id
       AND b.accounting_date <= :b1
       AND a.code_combination_id = d.accrual_account_id
       AND a.segment3 = '3010'
    UNION ALL
    SELECT c.*, b.accounting_date,
              a.segment1
           || '.'
           || a.segment2
           || '.'
           || a.segment3
           || '.'
           || a.segment4
           || '.'
           || a.segment5 accrual_account
      FROM gl_code_combinations a,
           apps.ap_ae_headers b,
           apps.ap_ae_lines c,
           apps.po_distributions d,
           apps.ap_invoice_distributions e
    WHERE e.po_distribution_id IS NOT NULL
       AND d.po_distribution_id = e.po_distribution_id
       AND c.source_table = 'AP_INVOICE_DISTRIBUTIONS'
       AND c.source_id = e.invoice_distribution_id
       AND b.ae_header_id = c.ae_header_id
       AND b.accounting_date <= :b1
       AND a.code_combination_id = d.accrual_account_id
       AND a.segment3 = '3010'
    SQL>select * from table(dbms_xplan.display);
    | Id  | Operation                        |  Name                         | Rows  | Bytes | Cost  | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                 |                               |    20 |  7545 |  7708 |        |      |
    |   1 |  UNION-ALL                       |                               |       |       |       |        |      |
    |   2 |   NESTED LOOPS                   |                               |    19 |  7201 |   825 |        |      |
    |   3 |    NESTED LOOPS                  |                               |    19 |  6612 |   787 |        |      |
    |   4 |     NESTED LOOPS                 |                               |    93 | 28737 |   694 |        |      |
    |   5 |      NESTED LOOPS                |                               |   119 | 32130 |   456 |        |      |
    |*  6 |       FILTER                     |                               |       |       |       |        |      |
    |   7 |        REMOTE                    |                               |       |       |       | AJINNI | R->S |
    |*  8 |       FILTER                     |                               |       |       |       |        |      |
    |   9 |        REMOTE                    |                               |       |       |       | AJINNI | R->S |
    |* 10 |      FILTER                      |                               |       |       |       |        |      |
    |  11 |       REMOTE                     |                               |       |       |       | AJINNI | R->S |
    |* 12 |     FILTER                       |                               |       |       |       |        |      |
    |  13 |      REMOTE                      |                               |       |       |       | AJINNI | R->S |
    |* 14 |    TABLE ACCESS BY INDEX ROWID   | GL_CODE_COMBINATIONS          |     1 |    31 |     2 |        |      |
    |* 15 |     INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1       |     1 |       |     1 |        |      |
    |  16 |   NESTED LOOPS                   |                               |     1 |   344 |  6883 |        |      |
    |  17 |    NESTED LOOPS                  |                               |     6 |  1878 |  6871 |        |      |
    |  18 |     NESTED LOOPS                 |                               |   572 |   156K|  5727 |        |      |
    |  19 |      NESTED LOOPS                |                               |   988 |   248K|  3751 |        |      |
    |* 20 |       TABLE ACCESS BY INDEX ROWID| AP_AE_HEADERS_ALL             |   978 | 17604 |   817 |        |      |
    |* 21 |        INDEX RANGE SCAN          | AP_AE_HEADERS_N3              | 17595 |       |    82 |        |      |
    |* 22 |       TABLE ACCESS BY INDEX ROWID| AP_AE_LINES_ALL               |     1 |   240 |     3 |        |      |
    |* 23 |        INDEX RANGE SCAN          | AP_AE_LINES_U2                |     8 |       |     2 |        |      |
    |* 24 |      TABLE ACCESS BY INDEX ROWID | AP_INVOICE_DISTRIBUTIONS_ALL  |     1 |    23 |     2 |      
    |* 25 |       INDEX UNIQUE SCAN          | AP_INVOICE_DISTRIBUTIONS_U2   |     1 |       |     1 |        |      |
    |* 26 |     TABLE ACCESS BY INDEX ROWID  | PO_DISTRIBUTIONS_ALL          |     1 |    32 |     2 |        |      |
    |* 27 |      INDEX UNIQUE SCAN           | PO_DISTRIBUTIONS_U1           |     1 |       |     1 |        |      |
    |* 28 |    TABLE ACCESS BY INDEX ROWID   | GL_CODE_COMBINATIONS          |     1 |    31 |     2 |        |      |
    |* 29 |     INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1       |     1 |       |     1 |        |      |
    Predicate Information (identified by operation id):
       6 - filter(NVL("AP_AE_HEADERS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
       8 - filter(NVL("AP_AE_LINES_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      10 - filter(NVL("AP_INVOICE_DISTRIBUTIONS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      12 - filter(NVL("PO_DISTRIBUTIONS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      14 - filter("A"."SEGMENT3"='3010')
      15 - access("A"."CODE_COMBINATION_ID"="PO_DISTRIBUTIONS_ALL_H"."ACCRUAL_ACCOUNT_ID")
      20 - filter(NVL("AP_AE_HEADERS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      21 - access("AP_AE_HEADERS_ALL"."ACCOUNTING_DATE"<=:Z)
      22 - filter("AP_AE_LINES_ALL"."SOURCE_TABLE"='AP_INVOICE_DISTRIBUTIONS' AND
                  NVL("AP_AE_LINES_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      23 - access("AP_AE_HEADERS_ALL"."AE_HEADER_ID"="AP_AE_LINES_ALL"."AE_HEADER_ID")
      24 - filter("AP_INVOICE_DISTRIBUTIONS_ALL"."PO_DISTRIBUTION_ID" IS NOT NULL AND
                  NVL("AP_INVOICE_DISTRIBUTIONS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      25 - access("AP_AE_LINES_ALL"."SOURCE_ID"="AP_INVOICE_DISTRIBUTIONS_ALL"."INVOICE_DISTRIBUTION_ID"
      26 - filter(NVL("PO_DISTRIBUTIONS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      27 - access("PO_DISTRIBUTIONS_ALL"."PO_DISTRIBUTION_ID"="AP_INVOICE_DISTRIBUTIONS_ALL"."PO_DISTRIB
      28 - filter("A"."SEGMENT3"='3010')
      29 - access("A"."CODE_COMBINATION_ID"="PO_DISTRIBUTIONS_ALL"."ACCRUAL_ACCOUNT_ID")
    Note: cpu costing is off
    67 rows selected.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • File filter removing the All Files option

    I am trying to remove the All Files option from the file filter. Someone suggested doing this:
        public FileFilter getAcceptAllFileFilter() {
          return null;
        }but I am unsure how to use it. My filechooser is this:
          final JFileChooser fc = new JFileChooser();
          fc.setFileFilter(new ExtensionFileFilterClass());ExtensionFileFilterClass is used to filter out some extensions and only keep .txt ones. It works except for the All Files part. Can anyone point me in the right direction? Thanks.
    Allyson

    I think my subject is probably misleading. I WANT to remove the All Files option. I only want to have the *.txt option on the filter. And it won't go away. Can I make it go away? I only want the user to have the ability to pick from *.txt files, not any. Thanks.
    Allyson

  • Filter for invalid values

    10.2.0.1.0
    This question is related to the following post;
    DISTINCT returns error on column with TO_NUMBER
    Is it possible to filter for invalid values in a column if you dont know what they could be?
    I tried something like this with no success;
    select distinct plot_number
    from (select to_number(col_3) plot_number from user_recovery_external where col_3 > 0)I then created a view with the to_number on col_3 and tried to query with the greater than zero filter but it still returned an error.
    Ben

    Thank You for the assistance here is some sample data;
    External Data
    Example of the sort of lines that would be causing the error, this csv file has over half a million records in it.
    BUN28N06.DAT,N06,053070, 21.48, 20,R1, 13.39,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 21,R1, 13.86,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 22,R1, 15.01,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 23,R1, 12.69,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 24,R1, 15.68,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 25,R1, 15.57,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 26,R1, 14.55,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 27,R1, 18.60,  1074,H,C,1,F,E
    BUN28N06.DAT,N06,053070, 21.48, 28,R1, 17.97,  1074,H,C,1,F,E
    BUNALN06(bkup).DAT,                 CORRECTION OF HASSELBLAD MEASUREMENTS                1
    BUNALN06(bkup).DAT,                                                 10:50 Friday, November 24, 1989
    BUNALN06(bkup).DAT,         CELLPLOT         RADIUS         HT2     COM    SCALE2     TYPE
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  1,O1,    22.28     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  2,O1,    20.00     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  3,R1,    15.49     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  4,O1,    18.76     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  5,R1,    17.32     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  6,R1,    16.99     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  7,R5,    18.29     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  8,R5,    12.65     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14,  9,O1,    22.28     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 10,R1,    18.05     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 11,R1,    19.15     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 12,R1,    15.99     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 13,R1,    17.88     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 14,R1,    13.39     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 15,R1,    13.91     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 16,R1,    10.59     ,       957     ,H,C,1
    BUNALN06(bkup).DAT,        N06,005341,    18.14, 17,O1,    19.54     ,       957     ,H,C,1This is the external table.
    CREATE TABLE USER_RECOVERY_EXTERNAL
    ( COL_1  VARCHAR (255 CHAR)
    , COL_2 VARCHAR (255 CHAR)
    , COL_3 VARCHAR (255 CHAR)
    , COL_4 VARCHAR (255 CHAR)
    , COL_5 VARCHAR (255 CHAR)
    , COL_6 VARCHAR (255 CHAR)
    , COL_7 VARCHAR (255 CHAR)
    , COL_8 VARCHAR (255 CHAR)
    , COL_9 VARCHAR (255 CHAR)
    , COL_10 VARCHAR (255 CHAR)
    , COL_11 VARCHAR (255 CHAR)
    , COL_12 VARCHAR (255 CHAR)
    , COL_13 VARCHAR (255 CHAR)
    , COL_14 VARCHAR (255 CHAR)
    , COL_15 VARCHAR (255 CHAR)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
      DEFAULT DIRECTORY "UPLOAD_DIR"
      ACCESS PARAMETERS
        ( RECORDS DELIMITED BY NEWLINE
          BADFILE "UPLOAD_DIR":'user_external.bad'
          LOGFILE "UPLOAD_DIR":'user_external.log'
          FIELDS TERMINATED BY ','
          OPTIONALLY ENCLOSED BY '"' LDRTRIM
          MISSING FIELD VALUES ARE NULL
          ( COL_1
          , COL_2
          , COL_3
          , COL_4
          , COL_5
          , COL_6
          , COL_7
          , COL_8
          , COL_9
          , COL_10
          , COL_11
          , COL_12
          , COL_13
          , COL_14
          , COL_15
      LOCATION
        ( "UPLOAD_DIR":'USER_EXTERNAL.csv'
    ) REJECT LIMIT UNLIMITED;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Where can I get Oil Paint filter for Pixel Bender?

    Hi, I had to reinstall my CS4 after a system disk crash, and now I cannot find free Oil Paint filter for Pixel Bender plugin. It is not included in a new version of the plugin available for download. Where can I download the old version or only the Oil Paint filter file to restore my working software configuration? (Photoshop Extended CS4, 64-bit)

    It was removed, you can only use it in the previous version: Photoshop: Spring Cleaning | PHOTOSHOP.COM BLOG

  • Webserver Filter for Apache for SSO2

    Hello,
    i see in this Presentation that there is a Webserver filter for Apache aviable. With the Webserver I can check SSO2 Cookies:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/sap active directory integration of sso and user management.pdf (Page23).
    I search evrywhere, but i only found a Library and a Webserverfilter for IIS. Does anybody know where i can find this webfilter?
    Best Regards,
    Patrick
    Message was edited by: Patrick Höfer

    Hello,
    you can find some informations about webfilter-file-location in SAP-note:
    442401 (EP 5.0: Web-Serverfilter für SSO an Fremdsystemen )
    - 723896 (EP 6.0: Webserverfilter für SSO bei Fremdanbietersystemen)
    - 684106 (Microsoft Laufzeit DLLs) 
    and help.sap.com:
    http://help.sap.com/sapdocu/netweaver/portals/ep50sp4/helpdata/EN/1c/22afe0b26011d5993800508b6b8b11/content.htm
    good luck!
    Nicky
    Message was edited by: Nicky Gromeleit
    Message was edited by: Nicky Gromeleit

Maybe you are looking for

  • I have a feed which my reader doesn't pick up.

    I know I asked this sort of question before, but I've got a different kind of problem. I have a feed I just added; it's not a generic feed--it looks normal. When I click on the feed to open it, the website (Feedzilla) just takes me back to where I fo

  • Duplicate Bank Account Number

    Hi, I would like to impose a check on duplicate bank account number in IT9 so that a same bank account number cannot be used by other employees or mistakenly being double-keyed in by a HR personnel. Can anyone advise me how to do that? Thank you in a

  • Internal Order restriction with Plant during PR & PO

    Hi All, Generally we create budget based PO for each plant. So we have defined internal order for each plant and we assigned those order during PR and PO creation But my requirement is i want to restrict the Order with respective Plant e.g If Order V

  • Planing to buy Skypein number(urgent reply request...

    Hi  I am planing to buy UK Skypein number for my 3 phone, so that my family can call me easily using the skypein number which is more like a landline number. My question is that if i am called on skypein number , will i be able to receive calls on m

  • I can't find the authorize my computer option

    i cant find the authorize this computer option