Turning a resultset into a JTable

How can i covert a resultset into a table?
1. I created a resultset from database data.
2. I scanned through the resultset to determine how many items i need to extract.
3. I created an array of the same size as the number of items i need to extract.
4. Now when i use the getString() commands it tells me that their is no data!
Help!

Your ResultSet will not be scrollable so once you've got to the end you can't go back to get the data. You could create a scrollable result set but there's no need if you use another data structure to store your data. You could use a Vector for example and as you will see a JTable has a constructor (Vector v1, Vector v2) where v1 contains the column names and v2 is in fact a Vector of Vectors containing the row data.
To get the columns names, assuming you have a ResultSet object, rs:
ResultSetMetaData rsmd = rs.getMetaData();
Vector columns = new Vector();
// check these ResultSetMetaData methods in API as I don't have it to hand right now - I think I have them right!
for (int counter = 0; counter < rsmd.getColumnCount(); ++ counter)
String name = rsmd.getColumnName(counter);
v.add(counter);
}Extract the data from the rows into a Vector of Vectors.

Similar Messages

  • Moving a ResultSet into a JTable, cheaply and efficiently.

    Hi,
    This may be something interesting for the more advanced Java programmers.
    I've recently run into an issue, with moving a ResultSet into a JTable. Now, this may seem simple, and believe me it is, but, all the ways I have seen it done, and tried, just don't suite my need.
    DBSql dbsql = new DBSql(); // My database handler class
    tableResults.setModel(new javax.swing.table.DefaultTableModel(dbsql.execute(script), dbsql.getColumns()));
    * Queries the DataBase and populates
    * the values into a two-dimensional object array
    * @param SqlQry
    * @return Object[][]
    public Object[][] execute(String SqlQry) throws SQLException {
    Object[][] obj = null;
    select = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet rs = select.executeQuery(SqlQry);
    rsmd = rs.getMetaData();
    try {
    if (rs.next()) {
    boolean found = true;
    rs.last();
    recordCount = rs.getRow();
    rs.first();
    obj = new Object[recordCount][rsmd.getColumnCount()];
    int i = 0;
    while (found) {
    for (int j = 0; j < rsmd.getColumnCount(); j++) {
    obj[i][j] = rsmd.getColumnType(j + 1) != Constants.TYPE_INTEGER ? rs.getString(j + 1) : rs.getInt(j + 1);
    i++;
    found = rs.next();
    } else {
    recordCount = 0;
    return null;
    } catch(OutOfMemoryError oome) {
    System.gc();
    throw new SQLException("Out Of Memory");
    if(rs != null) rs.close();
    return obj;
    The application I have created is used to connect to any database I want. I have tested it with JavaDB, Microsoft Access, and DB2. The problem is, most DB2's have tables with many records and columns, while most new Relational Databases, have small tables with few records. This code works fantastic with a couple thousand records, with very few columns. But, doesn't cut it when it comes to 50000 records or more. For, instance I queried a DB2 table that has 34000 records and 117 columns ("select * from table"), it doesn't take too long, but it uses way too much memory. If I run that query the application resources 298mb, then when I run it again, it uses a little more and throws an OutOfMemoryError.
    The second issue I have is, I queried another table that has 147000 records and selected 4 columns. No OutOfMemoryError this time - 70mb resourcing - but, the application did take at least 20 minutes to collect those records.
    I have tried using the Vector<Vector<String>> type into the JTable, but, frankly that's just asking for an OutOfMemoryError.
    I have tried creating my own custom table model, with a created data object.
    I have tried inserting rows into a table model in the method itself and returning the table model.
    Eg.
    while (found) {
    Object[] obj = new Object[rsmd.getColumnCount()];
    for (int j = 0; j < rsmd.getColumnCount(); j++) {
    obj[j] = rsmd.getColumnType(j + 1) != Constants.TYPE_INTEGER ? rs.getString(j + 1) : rs.getInt(j + 1);
    tablemodel.insertRow(obj);
    found = rs.next();
    ^I think you can use a vector for this too.
    So far, nothing has solved my problem.
    One thing I have not tried however, is a different table component for this kind of thing.
    I'm basically looking for, a method of doing this, with less overhead and quicker table population.
    Any Ideas?
    Regards,
    That_Gui

    Thanks for the reply.
    "1) Swing related questions should be posted in the Swing forum."
    Apologies, I was caught between swing and essentials, as it seemed to me as, more of a "better ways to do things" kind of question.
    "Also, the approach you are using requires two copies of the data, one in the ResultSet and one in the TableModel."
    I understand that transferring a ResultSet into an Object Array may probably be resource intensive, my delphi colleague made mention of that to me, not too long ago. That is why I'm trying to transfer the ResultSet directly into the table. That is why I used the ListTableModel, which also uses a lot of memory, I have looked at that - I had forgotten to mention that.
    "I have seen approaches where you try to only read a specific number of records. Then as you scroll additional records are read as needed. I can't point you to any specific solution though."
    Using an approach of reading the data as you scroll, sounds great, but also sounds like unnecessary work for the program to do, just like this Object/Vector story. In RPG, if you are working with subfiles (like a JTable), you will display 10 records at a time, and if the user hits the Page Down button you will display the next 10, that is how I'm understanding it.
    "I rarely use DefaultTableModel, creating your own model from AbstractTableModel is a lot more flexible when it comes to how you organise your storage, and it's pretty simple once you get the hang of it."
    This is the dream, I just need to design one that works as I need it.
    "You'd do a select count(*) on your query first to get the total rows expected. Of course one of the problems is that the databased table may change after you've retrieved the length or the items."
    Unfortunately, this is not an option for me, it wont work for what I need.
    I'm going to give the ResultSetTableModel a go - which I think it is actually similar to the ListTableModel - and I will get back to you.

  • Turning a resultset into an array of objects.

    First I will give some background on the situation...
    I have a table in which has many lines of data. Each line of data has a boolean (for a jcheckbox) we will call that "A" and then a bunch of other attributes that are related...we will call those B, C, and D. On a later screen there will be a reduced table in which has only the lines from the original table that were selected. This is why the whole row in the table has to be an object.
    So I have a query like this:
    ResultSet rs = stmt.executeQuery("SELECT A, B, C, D FROM tableName WHERE A= '1'");and then I would like to use:
    String ObjectRef;
                Boolean A;
                String B;
                String C;
                String D;
                while (rs.next()) {
                     A = rs.getString("A");
                     B = rs.getString("B");
                     C = rs.getString("C");
                    D = rs.getString("D");At this point I need to create an ArrayList or an Array of objects....each object having A, B, C, and D. how do I do that in this while condition?
    Or if someone knows a better way of goign about this please let me know. The main objective is to populate this table with objects containing each of of the above attributes. I tried to keep the scenario as simple as possible, so if it was confusing or I need to explain more, just ask.
    Thanks in advance.

    Atreides wrote:
    At this point I need to create an ArrayList or an Array of objects....each object having A, B, C, and D. how do I do that in this while condition?Create the list before you start the while loop. Then, inside the while loop, after extracting A..D, do something like this:
    MyClass mine = new MyClass(A, B, C, D); // or a no-arg c'tor and then a bunch of setters.
    list.add(mine);

  • Does anyboy know how to turn a resultset into a crosstab?

    I'm trying to convert a single return query data into a format that can be deployed as a crosstab. Does anydoby know how to do that?
    Thanks.

    The point was, you could easily have just posted a link to the other thread (like I did) rather than repeating the question so as to avoid ticking people off who might answer one of them only to find out that the other had already been answered, thus wasting their time.

  • Insert a mysql resultset to a jTable

    Hi! I have a database which i can connect to and get information from, but i can't figure out how to insert my resultset into my jTable from two different classes, I found an good exaple on the web but i dont know how to split up the code. I work with the GUI editor in NEtbeans 6.8 since i'm most familiar with it.
    I have bound an jButton (that lies in Class A) that will call an method in Class B which will update the jTable.
    The action event code
    //Creates object "b" from the class ClassB
    ClassB b = new ClassB();
            try {
            //Call method showall in ClassB
            b.showall();
            } catch (ClassNotFoundException ex) {
    System.out.println("Class not found);
    {code}
    And here is the method "showall"
    {code}
            String sql = "my sql query";
            ResultSet rs = dc.query(sql);
            Object[] rows;
            while (rs.next()) {
             //add the values to the temporary row
            rows = new Object[]{rs.getInt(0), rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4)};
            // add the temp row to the table
            // Startup is the name of my mainclass wich i have the jTable in (named "table")
          Startup.table.setValueAt(rows, 1, 1);
    {code}
    This is the example i found
    {code}
    class MySQLTable
      private static Connection con = null;
      private static String URL = "jdbc:mysql://localhost:3306";
      private static String driver = "com.mysql.jdbc.Driver";
      private static String user = "root";
      private static String pass = "";
       * Main aplication entry point
       * @param args
       * @throws SQLException
      public static void main(String[] args) throws SQLException
        // a MySQL statement
        Statement stmt;
        // a MySQL query
        String query;
        // the results from a MySQL query
        ResultSet rs;
        // 2 dimension array to hold table contents
        // it holds temp values for now
        Object rowData[][] = {{"Row1-Column1", "Row1-Column2", "Row1-Column3"}};
        // array to hold column names
        Object columnNames[] = {"ID", "User", "Password"};
        // create a table model and table based on it
        DefaultTableModel mTableModel = new DefaultTableModel(rowData, columnNames);
        JTable table = new JTable(mTableModel);
        // try and connect to the database
        try {
          Class.forName(driver).newInstance();
          con = DriverManager.getConnection(URL, user,pass);
        } catch (Exception e) {
          System.err.println("Exception: " + e.getMessage());
        // run the desired query
        query = "SELECT ID, User, Password FROM users.normal";
        // make a statement with the server
        stmt = con.createStatement();
        // execute the query and return the result
        rs = stmt.executeQuery(query);
        // create the gui
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JScrollPane scrollPane = new JScrollPane(table);
        frame.add(scrollPane, BorderLayout.CENTER);
        frame.setSize(300, 150);
        frame.setVisible(true);
        // remove the temp row
        mTableModel.removeRow(0);
        // create a temporary object array to hold the result for each row
        Object[] rows;
        // for each row returned
        while (rs.next()) {
          // add the values to the temporary row
          rows = new Object[]{rs.getString(1), rs.getString(2), rs.getString(3)};
          // add the temp row to the table
          mTableModel.addRow(rows);
      private MySQLTable()
    {code}
    I would appreciate some help with this :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I am now close to my goal, no errors when i run my application but nothing happens to the jTable
    Here is the code for the method
        public void gettableinfo() throws ClassNotFoundException, SQLException{
            String sql = "sql query";
            ResultSet rs = DatabaseConnection.query(sql);
            Object[] rows;
            Startup.mTableModel.removeRow(0);
            while (rs.next()) {
            //add the values to the temporary row
            System.out.println(rs.getRow());
            rows = new Object[]{rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5)};
            // add the temp row to the table
            Startup.mTableModel.addRow(rows);
        }rs.getrow(); finds 12 rows, as i have in my database. but it dosent add the result to the table
    the code for the jTable:
    static Object rowData[][] = {{"Row1-Column1", "Row1-Column2", "Row1-Column3","Row1-Column4","Row1-Column5"}};
        // array to hold column names
      static Object columnNames[] = {"ID", "Name", "Info", "Type", "Material"};
      public static DefaultTableModel mTableModel = new DefaultTableModel(rowData, columnNames);since i'm using the netbeans GUI editor it makes it a little more complicated. I've set the Jtable as public static and the "table = new JTable(mTableModel);" as followed in the example. It still dont work.
    Any ideas?

  • Turning an icon into a button in a table

    Currently, I access a database in my program, and if I find an 'X' in a specific column, I place an icon in that field. What I would like to do is have that icon act as a button, that will pop up a screen with further information about the table line item. I am new at Java, and not sure what to do next.
    Here is the code for my table model:
    class sciTableModel extends javax.swing.table.DefaultTableModel
         public sciTableModel()
              super();
         public sciTableModel(java.util.Vector data, java.util.Vector columnNames)
              super(data, columnNames);
    and here is the code for my renderer
    class IconRenderer extends DefaultTableCellRenderer
         public Component getTableCellRendererComponent(JTable table,
         Object value, boolean isSelected, boolean hasFocus, int row, int column)
              ImageIcon iconl = new ImageIcon("info.gif");
              String headerText = (String)value;
              // System.out.println(headerText);
              JLabel headerComponent =
              ((JLabel)super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column));
              headerComponent.setHorizontalAlignment(SwingConstants.CENTER);
              if (headerText != null)
                   headerComponent.setIcon(iconl);
                   headerComponent.setText("");
              else
                   headerComponent.setIcon(null);
                   headerComponent.setText(null);
              return headerComponent;
    In the public class I set the renderer, and in the actionevent that runs the database access I use the tablemodel.
    Any help on how I can turn this icon into a button would be appreciated.

    In A JTable, the render has the job of drawing one or more cells, but it's a rubber stamp -- it doesn't
    respond to events like a true component. What you describe isn't the job of an cell editor either,
    since, obviously, nothing is being edited. That leaves JTable itself: I suggest you write a mouse
    listener for your JTable and respond appropriately when the right cell is clicked:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            JTable table = new JTable(20, 5);
            table.addMouseListener(new MouseAdapter(){
                public void mousePressed(MouseEvent evt) {
                    JTable t = (JTable) evt.getSource();
                    Point point = evt.getPoint();
                    int col = t.columnAtPoint(point);
                    int row = t.rowAtPoint(point);
                    if (col != -1 && row != -1) {
                        int modelCol = t.convertColumnIndexToModel(col);
                        System.out.println("clicked on model cell (" + row + "," + modelCol + ")");
            JFrame f = new JFrame("Test");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(table));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }As the code demonstrates, don't forget to translate from view columns to model columns.
    By the way, why are you subclassing the default table model? You aren't changing any behavior...

  • How do I turn an image into a transparency?

    Hi,
    There's a question I've seen asked dozens or hundreds of times, and I thought I found an answer a few years ago. I've since forgotten how to do it:
    Turn an image into a transparency.
    Now, the obvious solution is to set the layer to "multiply." Yes, this is the effect I want. However, I want the layer to be transparent instead.
    Another solution is to draw an image on a transparent layer. This works great, but only applies if I create the image from scratch. I want to convert an existing image.
    Another solution is multiple steps:
    1) Copy image
    2) Click "edit in quick mask mode."
    3) Paste image
    4) Exit quick mask mode.
    5) Invert selection.
    6) Ctrl+backspace to fill selection with black, on a blank transparent layer.
    Result? The image is now transparent! However, this converts the image to greyscale! Great for linework and text, terrible for photos or art!
    In an older version of Photoshop 7, I believe I got the following to work:
    A) Follow the previous steps 1-6, creating a layer with transparency
    B) Copy the original picture to a layer above the transparency
    C) Group the layer with the transparency layer below. (Note, grouping doesn't work the same any more.)
    D) The top layer provides the colors, but the bottom layer provides the transparency.
    E) It is too light, so you take the top layer, and maximize "saturation" 100%.
    F) Merge the two layers. It retains the transparency of the bottom layer, with the hue of the top layer.
    This no longer works, because I don't know how grouping layers works anymore.
    So, I need white pixels to be transparent. Black pixels to have zero transparency. Red pixels to have zero transparency. Etc.
    Meanwhile, grey pixels are solid black, but partly transparent. Pink pixels are solid red, but partly transparent.
    All pixels are 100% saturated, and the "lightness" is determined by how transparent they are.
    So, an analogy would be printing a photo on a transparency. I need to convert an image to a transparency.
    If the image/layer were overlaid on white, it would look exactly like the original photo.
    Does anyone know how to accomplish this? Mathematically, it's easy. But I don't know about any filter, process, or method to make the conversion using CS5.
    Thanks,
    Ben

    Hello!
    I hope that I understand what you need.
    (One could just put the image on a layer, and lower its opacity, but you seem to be looking for an effect in wich the tranparency is not the same for all pixels.)
    Try this:
    1) Turn your image image as a layer (double-click it if it is a background layer) [In order to add a mask]
    2) Select all, Copy (CTRL+a, CTRL+C)
    3) add a layer mask (click the rectangle with a circle in the bottom of the layers panel) [to be able to change transparency]
    4) target the mask [so that you can past an image in it] ALT+click the mask, paste the image.
    5) Invert the colors of the mask (CTRL+I) [in order for the white to be transparent and the black opaque].
    You now have a layer whose transparency is based on the lightness of the pixels.
    Hope that's what you are after!
    Pierre

  • Turn a script into an .exe file?

    Hi,
    How can I turn a JavaScript into an .exe file (on Windows)? The
    advantage is that if the script uses only ScriptUI features, it will
    never need to launch InDesign. Additionally, it is possible to package
    it that way with a special icon that appears if it is placed on the
    desktop, and when it runs the icon appears in the taskbar.
    An example of what I'd look to achieve is the hyphenchecker script,
    written by the late Teus de Jong. There is one Windows-only version
    available on his website (which is still being maintained, probably by
    his son) which is an .exe file -- precisely what I'm trying to do.
    Thanks,
    Ariel

    straight form javascript i don't think there is a way.
    however you can use, i think, Visual Basic (not vbScript!!) as a wrapper for js (using doScript)?

  • Mail turns PDF attachment into jepg

    I use distiller and acrobat to create PDFs from Quark documents; for the last few days, attaching a new PDF to an email in Mail has turned the PDF into a jpeg which PC users can't open. The problem has just cleared itself (without me knowingly doing anything) but it has happened before and I guess may happen again. Any idea of the cause and solution?

    What I should have said is Apple should not make the Image Size adjustment an available option when a PDF file is attached to a message.
    Yes, this is the answer. Using the term seemed to happen - it either happens or it doesn't but Mail will not and cannot change the file type or the file extension for an attached file without user intervention. Using the Image Size adjustment for a single page PDF file which appears inline or viewed in place within the body of the message does change the file type or file extension for the file from .pdf to .jpg since the Image Size adjustment is intended and can only be used for picture or image file attachments, not with PDF files.

  • Need to turn this PLSQL into a procedure

    Hi All,
    I have the following PLSQL which declares a cursor, then loops using the cursor variable. I'm new to creating procedures and packages and i'm having trouble turning this PLSQL into one of those. When i put my PLSQL code in a procedure it doesn't like the DECLARE statement or the CURSOR section. I'm not sure how to tweak it to get the syntax correct for a procedure. Can someone point me in the right direction?
    Here is the PLSQL:
    DECLARE
    /* Output variables to hold the result of the query: */
    groupid assignment_group.id%TYPE;
    /* Cursor declaration: */
    CURSOR Asset_Rank_HistoryCursor IS
    select distinct id from assignment_group;
    BEGIN
    OPEN Asset_Rank_HistoryCursor;
    LOOP
    /* Retrieve each row of the result of the above query into PL/SQL variables: */
    FETCH Asset_Rank_HistoryCursor INTO groupid;
    /* If there are no more rows to fetch, exit the loop: */
    EXIT WHEN Asset_Rank_HistoryCursor%NOTFOUND;
    /* Insert the the new rows */
    insert into ASSET_RANK_GROUPED (asset_id , dt, rank, score, ASSIGNMENT_GROUP_ID)
    select asset_id, max_dt, rownum, score, groupid from (
    SELECT <big nasty select statement>
    END LOOP;
    /* Free cursor used by the query. */
    CLOSE Asset_Rank_HistoryCursor;
    END;
    How do i change my DECLARE and CURSOR statement so the procedure will create. Do i need to break it out into a function?

    I figured it out... just had to play w/ the syntax. Had to make sure the BEGIN statement was AFTER the CURSOR declaration and had to make sure any variables are declared up top, didn't need a DECLARE section in procedure. I just put the groupid variable right after IS at the top of procedure creation statement.

  • I made a picture collage in pages from the pictures in iPhoto.  You used to be able to print and then say save as a jpeg to iPhoto and that option is gone.  How do you turn your document into a jpeg now.

    I made a picture collage in pages from the pictures in iPhoto.  You used to be able to print and then say save as a jpeg to iPhoto and that option is gone.  How do you turn your document into a jpeg now?

    If you chose print, you can save as PDF. If you open the saved PDF in preview, you can save as JPEG, GIF, PNG. FYI you can crop in preview.
    Another option is you could use command + shift + 4 to do a screen shot of a specific part of of the screen.

  • What peripherals do you need to turn your iPhone into a conference room speakerphone?

    What peripherals do you need to turn your iPhone into a conference room speakerphone system?
    If you buy a separate conference mic and a speaker, can they somehow work together off the iPhone headphone jack like a huge set of group earphones?  What if you want to connect 2 mics and a speaker?
    Do you have to be very careful that they can all be attached somehow at the same time?
    Are there reasonably priced conference room speakerphone peripherals the work well together that you would recommend?
    Steve

    Why don't you contact Apple and find out?  Certainly if you can find your way around the internet to have been able to find this forum, you can certainly find the number for AppleCare.

  • Turning PDF Documents into Word Documents

    Can I use my Adobe Creative Suite 6 to turn PDF documents into Word Documents?

    Acrobat comes with most versions of Creative Suite and it is capable of converting PDFs to Word documents. The quality of the results depend on a number of things. If the PDF was originally generated from a Word source and it's well tagged, you will get much better results. More complicated layouts will generally have worse results and there will be considerable cleanup in Word needed. Exporting to text is sometimes better.
    For the future, there is a better forum for this type of question: http://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs?view=discus sions

  • Turn Word documents into PDfs

    Is there any way to use Automator to create a command so that I can turn Word documents into PDFs in one easy step?
    Thanks, Ken

    Hi "jhaystead",
    Apologies for making an incorrect suggestion. "Batch Conversion" is a feature in Acrobat 9 and above.
    I'd suggest you use the "Open All" sequence > Double-click it to EDIT > For "2. Run Command On:" choose "Selected Folder" and BROWSE to the input folder. Similarly for "3. Select Output Location", you can choose "Same Folder as Original(s)", click OK and then "Run Sequence".
    This would invoke the PDFMaker for conversion of Word documents to PDF and save the output PDF(s) at the folder mentioned, instead of printing and prompting to save the output each time Adobe PDF Printer is called.
    Plus, could you please check if the Adobe PDF toolbar/menu options are there in Word and working fine?
    When you said,
    "The only way I can get PDFs produced is to manually open each word document, then save it as a PDF. I haven't had any luck with multiple PDF creation." Were you printing the Word documents to Adobe PDF Printer or using the PDFMaker options?
    Thanks!

  • Can I turn greenscreen video into video with transparent background (instead of default black backgr

    Can I turn greenscreen video into video with transparent background to  overlay on another video in another program.  probably export as avi.     I know I can in after effects  but comfortable with premiere.   basically want to turn the greenscreen from a black to transparent background  ppro cs6     windows
    [ email address removed by forum host ]

    Harm is correct. It would be better to edit in the program where you keyed out the green. However, if you really must ...
    DPX is one file per frame. While you may not be able to open it from Windows, it is only because Windwos has not been told to open them in Photoshop.
    The whole point of the DPX file is to have a visually lossless storage of your frames that is designed to be used between applications (just what you want to do): http://en.wikipedia.org/wiki/Digital_Picture_Exchange
    However, if you prefer to use another option that you are more comfortable with, you can use PNG.
    Or...
    If you insist on a single video, use the Animation codec for Quicktime.
    In any case, you need a picture format or video CODEC that can store an Alpha Channel.
    Or.....
    Export the video with the black and use a Luma key in the next application.
    Or ...
    Export the video with the black, and then export a video of just the alpha channel as a blabk and white image where black is transparent when used as a track matte, and then in the next application use the video of the alpha channel as a track matte.
    Since you haven't said what the other application is or why you want to use it, we are having a little trouble offering a specific solution.

Maybe you are looking for

  • Why can't I use face time on iPad 2 with 3g iOS 6.0.1

    why can't I use face time on ipad2 with 3g and ios 6.0.1

  • Time scale on 3D graph

    Hi, I'm having major problems converting the axis on my 3D curve from seconds into proper time. I've tried everything but nothing seems to work. I've attached a very shortened version of my code. Attachments: 3D_graph_for_NI.vi ‏29 KB

  • Try catch implementation in dynamic query

    I am fetching values by dynamic selection  (select a,b,..from (var)...) . Eveytime if I am selecting garbage value of var it will throw dump . Can u tell me how we implement try catch method / exception handling method so that I can avoid dump in dyn

  • MySQL Connection too slow

    Please anyone with expirience in applets accessing MySQL Server! I made a test with a loop code executing queries and got the following conclusion: In media a query takes more than 2 seconds. I used PrepareStatement for better performance but it does

  • Ipod not appearing in Itunes

    Ever since I downloaded the new Itunes my ipod has not worked. I have attempted to do everything to get it back to working order. When I check in the device manager it appears as Apple ipod USB device but when i look in my computer it appears as a re