Need Help putting a JTable in a JFrame

the problem iam having is trying to display the contents of a JTable into a JFrame, after pushing a JButton on the JFrame. I cant figure out how to do this. This is what i have for the ActionListener of the JButton:
display = new JButton("Display Table");
display.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e){
String file = null, line;
String[][] data = new String[2155][7]; //A 2-dimensional array to store cells' data.
String[] tmp = new String[7];
String[] columnNames = new String[7];
BufferedReader br = null;
DefaultTableModel dm = new DefaultTableModel();
dm = (DefaultTableModel) table.getModel();
dm.setRowCount(0);
dm.setColumnCount(0);
try{
br = new BufferedReader(new FileReader("testDetails.csv"));
line = br.readLine(); //read the column headers
//Set the column headers.
columnNames = line.split(",");
line = br.readLine(); //start reading into the records.
//Create data for the table.
int row = 0;
while(line != null){
tmp = line.split(",");
for (int col = 0; col < columnNames.length; ++col){
data[row][col] = tmp[col];
row++;
line = br.readLine();
}//end of WHILE-statement.
}//END of TRY-statement.
catch(Exception er) { System.out.println(er); }
// Configure the model with the data and column headers.
dm.setDataVector(data, columnNames);
// Create the table.
table = new ram1Table();
// Connect the model to the table.
table.setModel(dm);
// Create a scroll pane for the table.
scrollpane = new JScrollPane(table); //scrollpane contains the table.
// Make the table visible.
field.add(scrollpane);
Whatever help i get will be greatly appreaciated.

1) Swing related questions should be posted in the Swing forum.
2) Use the "code" formatting tags so the posted code is readable
3) Get the program working first without using a JButton and ActionListener
4) Whenever you add a component to a visible GUI you need to use revalidate() on the parent container. Of course the GUI won't automatically resize itself to show the new component so you may also need to resize the frame itself.

Similar Messages

  • I need help putting my printer together hp photosmart cn218a b210a how do u find a book on it

    i need help putting it together i had to take it apart there was dog food jammed in it the mice

    Here is a link for the manual.
    http://h10032.www1.hp.com/ctg/Manual/c02456532.pdf
    Here is another link for a video on putting the cartridges in.
    http://www.youtube.com/watch?v=gbZkq01F7do
    ""Click on the WHITE STAR if you would like to say THANKS""
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Need Help Putting Together a rMBP so I Have Everything I Need...

    Hello-
    I am having trouble getting the right kind of help from "Chat Now" on apple.com and calling in to get my questions/needs taken care of so that when I get the rMBP I will be sure I wil have what I need to go right online and teach the online courses. I even went to the local apple store and woked with a couple sames guys there, but they were not clear in a couple situations on what I would need with the different options the rMBP gives. so I am truning to the great apple forum for additional help.  this might be too much to ask even for tis forum, but if I can learn a little at a time, maybe I can gradually gain the knowledge I need to have a complete and functioning home office for my personal computing needs and my needs as an online teacher at a university back East. My technical knowledge is not the best, so as far as the rMBP goes, a big problem for me is that I do not have the knowledge to make sure I order everything I need with the changes a new rMBP will bring to my current setup (which is just a basic MBP using a wireless router and a USB cable for the printer that I just connect when I need to print). I realizee my current set up on my desk is not the most advanced, but I would need a pro to come to my office and help me get the best set-up for what I am curently using. It seems that the agents I chat with and/or talk to on the phone are aslo lacking in knowledge to help me put together a rMBP that will be ready to fully use and have with the order all that I need so that I do not have to order additional items in a mad rush to be ready for the courses I am teaching online. I have read several articles about the rMBP so that I cold have some knowledge about what I will need but as I said my techie knowledge is lacking. I am looking at the 15" rMBP with all of the full upgrades that the configure option allows one to get. I am not clear if I do run into trouble with my wi fi and have to use my ethernet cable what I will need to do this. I also have programs that are older that I am guesing I will need to install using a DVD player. I would like to hook up the printer I have or a new Canon printer and use it wirelessly, but for now I will most likely be using it with a USB cable. I am not clear on the thunderbolt technology and if I should get any of these cables for any of the connections. I also would like to get a great speaker system and will need to hook that up, but I am not clear on the best way to do this. I have been wanting an iMac, but I am not sure what is a good slection to get and how to connect it to the rMBP or one of the other 2 older MBPs I currently have.
    If somebody could list for me what I would need to have a complete rMBP that will allow me to do these hookups and connections and explain what would be the best way to complete the various connections so that I have all that I will need to get up and running, I would really appreciate it. Because I do not have any USB 3.0 cables or cables for various additional connections, I would need help/suggestions in this area. I realize this is hard to do not seeing my office, but since I will be starting new with the purchase of the new rMBP and hopefully an iMac (and a new Canon printer and new set of great sounding speakers) getting some advice on what I should order for the various connections would be a hugh help. Part of the problem is with the rMBP and not having used one of these in the past. I know some of the differences with this machine like the lack of an internal SuperDrive and the new ports, but I do not know what cables I will need that will utilize the newer technology this machine and an imac will bring to my office.
    Any suggestions are greatly appreciated, even if you do not give me specific answers, but an idea, for example, of what I might need to connect the speaker system (knowing the best way the new speaker system shold be connected to the rMBP and/or the iMac. I am not even clear if I do want to use the iMac with the rMBP for teaching with a larger display what I will need to connect the imac to the rMBP. is this done by an HDMI cable and if so is there a specific type or example you could mention that is on apple.com?

    There are many differences with the new rMBP. There are ports that I am not sure what I would use them for.  Even the ethernet cable I use now to get the internet will not work with the rMBP.  I thought there would be some additional help on here.  as far as configuring the rMBP there are just a few options but the differences between an older MBP and the new rMBP is great.  No need to reply I will turn off email notifications. I gave as much information as I did because in the past I was told to give more information.

  • I need help putting Classical Music CDs into iTunes

    I need help - this question has lots of subquestions, sorry.
    I have found just a few discussions that deal with this but I am still confused. Forgive me if I get wordy and misuse technical terms - I am trying to learn this thing...
    I'm an iPod newbie and haven't a clue on the best way to organize my many, many classical CDs that I'd like to put onto my iPod Classic 160G. I'd also like to do this with as little fussing around as possible since there are lots of CDs I've got to deal with.
    If each CD is a separate entry [album?] in the playlist and titled with composer name first [ex Bach, Brandenburg Concertos, Titov conductor] I'll have several playlist entries with the same titles, but different contents. No problem really.
    But, should I separate it further, by having each concerto [say] be a separate entry in the playlist - without having to download the CD again. [I've just practiced on a few CDs but I imagine it being a problem if I had to download each CD several times - once for each work] Does it make sense to leave gaps between movements? [I'm not finding a way to remove gaps, though I have seen that suggested somewhere]
    And when I come to play the pieces, if I start playing a work in a playlist, will the iPod keep going from one movement to the next as it makes its way through the playlist - or will it stop at each movement and wait for me to tell it what to do next?
    Advanced Settings - are these the best? I'll be listening to music on an airplane using noise cancelling headphones and at destination attaching iPod to portable speakers to listen to music in hotel rooms.
    General: Keep iTunes Music folder organized - unchecked? [not sure what this means or does or doesn't do]
    Copy files to iTunes Music folder when adding to library - checked?
    Importing: AAC encoder? High quality -128 kbps?
    Thanks for all your help - I know this is a multiple set of questions and perhaps should have been broken up...
    Mrs H
    Message was edited by: Mrs H to fix typos
    Message was edited by: Mrs H

    Thank you so much for your help. You have sorted out a lot of problems for me. I've tried to go through what you wrote, add some more info and I have asked a few more questions below-
    I re-ripped at 256. I too have the 160GB classic so it's good to know that it will take 10,000 tracks as lossless - now I have to re-rip again! I actually hadn't anticipated using the iPod with anything other than our high quality noise canceling airplane headphones, our cheap, portable travel speakers for hotel rooms and our Cambridge sound speakers for our cabin. It's that last set of speakers that makes me think I should follow you advice and go with lossless.
    QUESTION #1 - When I re-rip and do an automatic sync, will the tracks at 256 automatically be replaced by the bigger lossless ones with the same name or should I delete everything from the iPod and begin anew?
    "I create a playlist for each work, using a systematic naming convention..." What I did on my test was create a playlist for each composer breaking it down - ex- Bach:concertos, Bach:sonatas, etc. I have the Album column highlighted and it appears as if the movements stay together in the correct order. I fear that the task might be too large to create a playlist for each work, though that certainly is appealing.
    QUESTION #2 If the Album column is highlighted and the movements are in the correct order in iTunes in the playlist, will they stay that way in the iPod?
    "I tend to use just surnames for composers for example, or at least "surname, firstname"." I finally found in settings on the iPod the way to change sort by composer to last name, first name. In iTunes, the composer column which is imported from the internet search for info on the CDs gives composer with first name first and I can't find a place in iTunes to reverse this. Typing it or erasing the first name will be a huge chore.
    QUESTION #3 Is there a place in iTunes to change the order of the composers' name in the composer column?
    "For compilations etc I still create one for the whole CD or box set"
    I figured this out on my own before you corroborated my idea - I think I'm getting the hang of this...
    "The option iTunes has to "organise your music" is a good one"
    QUESTION #4 - are you referring to the preferences > advanced check box "Keep iTunes Music Folder Organized" ? If not, what are you referring to?
    "I have my library in its own dedicated disk. Wherever you put it, its important to then never change it or doing anything else with it: leave it for iTunes."
    QUESTION #5 "dedicated disk"? as in hard drive? I have been using SuperDuper to back up my Mac to an external HD; I plan to put a copy of the iTunes folder onto yet another HD where I keep copies of all our photos as well.
    "never change it"? I noticed a misspelling "Haendel" from the on-line CD/track info - no problem in fixing that - right? Since you later say you do change info, what is it you are never changing?
    QUESTION #6 - "Disk N of M capability" - what? Where do I find this option? And when you say "for multiple CD albums, don't include the cd number in the album name." Where? when you put the CD into a playlist entry? or just in the list of music in the album column - do you change the listing?
    ONE FINAL QUESTION - when I turn on the iPod when it's not attached to headphones or speakers, and I'm just looking at the screen to see settings or how the syncing worked, the iPod appears to begin playing something as soon as I turn it on. THIS IS A STUPID QUESTION, but I can't find the answer, how to I get it to stop playing without turning the iPod itself off???
    "I hope that helps a little. " A little?? It helps a lot - and I'll award those points as soon as I get it all resolved.
    Thanks again,
    Mrs H

  • Need help putting photos on my iPad

    Trying to put scanned photos on my iPad. I have tried iTunes but under devices there is no photos to select. Need help.

    Photos doesn't appear on the left-hand sidebar under Devices, it appears on the right-hand side in a similar way as for selecting and syncing music, apps etc
    If you are on iTunes 11 on your computer then you may want to re-enable the left-hand sidebar via View > Show Sidebar (option-command-S on a Mac, control-S on a PC), which might make it easier to navigate and my instructions may make more sense.
    To sync photos, connect and select your iPad on the left-hand side of your computer's iTunes (if you've enabled the sidebar), and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page. You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - synced photos can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.
    If you haven't enabled the sidebar, then from your library click 'iPad' at the top right of the screen and you should get a series of buttons along the top of the screen, including one for Photos

  • Need help putting movie into project!!

    I have a .wmv format video and I need to put it in iDVD to burn onto dvd, but it won't let it on there and it won't show up in the media tab. Please help me!! Is there some way I can put it on there or is there some way to convert the video so it works with iDVD??

    I use Flip4Mac to open and edit .wmv files in QT, iMovie or iDVD.
    http://www.flip4mac.com/wmv.htm
    Best-
    Mike

  • Need Help, put together information, summary to print

    Hello,
    I need help.
    I want to make a e-learning for school children of the 5th class.
    I have a lot of excersises like a fill-in-text or drag and drop and so on. Now my question is, can I put the information the children puts in together like a summary at the end of the lesson, so the children can print it like a worksheet at the end?

    Happy to provide more detail, but on what, exactly?
    Do you need more detail on how to create the PDF? If so, that's a bit beyond the scope of what we usually do here in the Captivate forums. There are many different ways to create a PDF.
    As for linking the PDF, I already advised. But you may need more detail here. When you insert a Click Box or a Button object in Captivate, you assign an action that occurs when the user clicks the object. The assignment occurs in the properties panel on the right. The typical action is "Go to next slide", but it's a drop-down you may change. I suggested changing it to assign "Open URL or File". Once you do that, you will see a field where you may type the URL or the file name.
    Cheers... Rick

  • Need help putting Photoshop CS6 on new device (without the CD)

    So I just recently purchased a new Windows Surface Pro 3 which I've been looking forward to using Photoshop CS6 on. I bought PS CS6 through Journeyed.com a couple years ago and have already registered it to my old laptop. Unfortunately, I misplaced the CD, but I have the box with the product code. I thought I could just do like I did before--download the free trial of CS6 and put in my serial number. Since Adobe now offers "Photoshop CC" instead of CS6, I guess that's what throws it off and stops my serial number from working (i get "invalid code"). I even had to double check what my serial code was through Adobe and my serial number was there, already registered.
    I've already tried downloading the free trial of CS6 from other websites but it's been complicated. One of them didn't even work and gave me an error message, and the other was .dmg file so I had to download an app just to unzip the file. I'm just really confused and need help with this. I even tried to put the program files from my laptop onto an external hard drive and put them onto my surface pro, but that got confusing too. 
    Thanks,
    Gaby

    You can download CS6 software so you can use your code
    Download CS6 products from adobe site

  • Need help .. JTable problem!!!!!

    Is there any way to provide drag n drop feature within Jtable cells ....
    What I want to do is that ... I shud be able to drag a JTable cell to another JTable cell and the values of those two cell should interchange ....
    Is this even possible ??? Please help me as I m new to Java
    Thanx alot....

    Plus I have one more problem the column headers arnt appearing ..... So please help me ..... I need two things to be done ....
    1) Populate the tables using vectors, so that only that no of rows appear which are in table of my database ..
    2) Column headers shud show up...
    Here's my code ...
    * Drag.java
    package test;
    import javax.swing.*;
    import java.awt.Dimension;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    public class Drag extends javax.swing.JFrame {
         private String url = "jdbc:odbc:FAMS";
        private Connection con;
        private Statement stmt;
        private Map<String, Color> colormap = new HashMap<String, Color>();
        public void populate()
        try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            } catch(java.lang.ClassNotFoundException e) {
                System.err.print("ClassNotFoundException: ");
                System.err.println(e.getMessage());
               String query = "SELECT * FROM SubAllot";
            /* First clear the JTable */
            clearTable();
            /* get a handle for the JTable */
            javax.swing.table.TableModel model = table.getModel();
            int r = 0;
            try {
                /* connect to the database */
                con = DriverManager.getConnection(url, "", "");
                stmt = con.createStatement();
                /* run the Query getting the results into rs */
                   ResultSet rs = stmt.executeQuery(query);
                   while ((rs.next()) ) {
                        /* for each row get the fields
                           note the use of Object - necessary
                           to put the values into the JTable */
                       Object nm = rs.getObject(1);
                       Object sup = rs.getObject(2);
                       Object pri = rs.getObject(3);
                       Object sal = rs.getObject(4);
                       Object tot = rs.getObject(5);
                       model.setValueAt(nm, r, 0);
                       model.setValueAt(sup, r, 1);
                       model.setValueAt(pri, r, 2);
                       model.setValueAt(sal, r, 3);
                       model.setValueAt(tot, r, 4);
                       r++;
                stmt.close();
                con.close();
            } catch(SQLException ex) {
                System.err.println("SQLException: " + ex.getMessage());
           private void clearTable(){
            int numRows = table.getRowCount();
            int numCols = table.getColumnCount();
            javax.swing.table.TableModel model = table.getModel();
            for (int i=0; i < numRows; i++) {
                for (int j=0; j < numCols; j++) {
                    model.setValueAt(null, i, j);
              private void writeTable(){
             /* First clear the table */
             emptyTable();
             Statement insertRow;// = con.prepareStatement(
             String baseString = "INSERT INTO SubAllot " +
                                        "VALUES ('";
             String insertString;
            int numRows = table.getRowCount();
            javax.swing.table.TableModel model = table.getModel();
           /* Integer sup, sal, tot;
            Double pri;
            Object o;
            try {
                /* connect to the database */
                con = DriverManager.getConnection(url, "", "");
                 for (int r=0; r < numRows; r++) {
                      if (model.getValueAt(r, 0) != null){
                           insertString = baseString + model.getValueAt(r, 0)+"','";
                           insertString = insertString + model.getValueAt(r, 1)+"','";
                           insertString = insertString + model.getValueAt(r, 2)+"','";
                           insertString = insertString + model.getValueAt(r, 3)+"','";
                           insertString = insertString + model.getValueAt(r, 4)+"');";
                           System.out.println(insertString);
                          insertRow = con.createStatement();
                           insertRow.executeUpdate(insertString);
                           System.out.println("Writing Row " + r);
                insertRow.close();
                con.close();
            } catch(SQLException ex) {
                System.err.println("SQLException: " + ex.getMessage());
           // clearTable();
           private void emptyTable(){
             /* Define the SQL Query to get all data from the database table */
            String query = "DELETE * FROM SubAllot";
            try {
                /* connect to the database */
                con = DriverManager.getConnection(url, "", "");
                stmt = con.createStatement();
                /* run the Query */
                   stmt.executeUpdate(query);
                stmt.close();
                con.close();
            } catch(SQLException ex) {
                System.err.println("SQLException: " + ex.getMessage());
               abstract class StringTransferHandler extends TransferHandler {
            public int dropAction;
            protected abstract String exportString(final JComponent c);
            protected abstract void importString(final JComponent c, final String str);
            @Override
            protected Transferable createTransferable(final JComponent c) {
                return new StringSelection(exportString(c));
            @Override
            public int getSourceActions(final JComponent c) {
                return MOVE;
            @Override
            public boolean importData(final JComponent c, final Transferable t) {
                if (canImport(c, t.getTransferDataFlavors())) {
                    try {
                        String str = (String) t.getTransferData(DataFlavor.stringFlavor);
                        importString(c, str);
                        return true;
                    } catch (UnsupportedFlavorException ufe) {
                    } catch (IOException ioe) {
                return false;
            @Override
            public boolean canImport(final JComponent c, final DataFlavor[] flavors) {
                for (int ndx = 0; ndx < flavors.length; ndx++) {
                    if (DataFlavor.stringFlavor.equals(flavors[ndx])) {
                        return true;
                return false;
        class TableTransferHandler extends StringTransferHandler {
            private int dragRow;
            private int[] dragColumns;
            private BufferedImage[] image;
            private int row;
            private int[] columns;
            public JTable target;
            private Map<String, Color> colormap;
            private TableTransferHandler(final Map<String, Color> colormap) {
                this.colormap = colormap;
            @Override
            protected Transferable createTransferable(final JComponent c) {
                JTable table = (JTable) c;
                dragRow = table.getSelectedRow();
                dragColumns = table.getSelectedColumns();
                createDragImage(table);
                return new StringSelection(exportString(c));
            protected String exportString(final JComponent c) {
                JTable table = (JTable) c;
                row = table.getSelectedRow();
                columns = table.getSelectedColumns();
                StringBuffer buff = new StringBuffer();
                colormap.clear();
                for (int j = 0; j < columns.length; j++) {
                    Object val = table.getValueAt(row, columns[j]);
                    buff.append(val == null ? "" : val.toString());
                    if (j != columns.length - 1) {
                        buff.append(",");
                    colormap.put(row+","+columns[j], Color.LIGHT_GRAY);
                table.repaint();
                return buff.toString();
            protected void importString(final JComponent c, final String str) {
                target = (JTable) c;
                DefaultTableModel model = (DefaultTableModel) target.getModel();
                String[] values = str.split("\n");
                int colCount = target.getSelectedColumn();
                int max = target.getColumnCount();
                for (int ndx = 0; ndx < values.length; ndx++) {
                    String[] data = values[ndx].split(",");
                    for (int i = 0; i < data.length; i++) {
                        String string = data;
    if(colCount < max){
    String val = (String) model.getValueAt(target.getSelectedRow(), colCount);
    model.setValueAt(string, target.getSelectedRow(), colCount);
    model.setValueAt(val, dragRow, dragColumns[i]);
    colCount++;
    public BufferedImage[] getDragImage() {
    return image;
    private void createDragImage(final JTable table) {
    if (dragColumns != null) {
    try {
    image = new BufferedImage[dragColumns.length];
    for (int i = 0; i < dragColumns.length; i++) {
    Rectangle cellBounds = table.getCellRect(dragRow, i, true);
    TableCellRenderer r = table.getCellRenderer(dragRow, i);
    DefaultTableModel m = (DefaultTableModel) table.getModel();
    JComponent lbl = (JComponent) r.getTableCellRendererComponent(table,
    table.getValueAt(dragRow, dragColumns[i]), false, false, dragRow, i);
    lbl.setBounds(cellBounds);
    BufferedImage img = new BufferedImage(lbl.getWidth(), lbl.getHeight(),
    BufferedImage.TYPE_INT_ARGB_PRE);
    Graphics2D graphics = img.createGraphics();
    graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f));
    lbl.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    lbl.paint(graphics);
    graphics.dispose();
    image[i] = img;
    } catch (RuntimeException re) {
    class TableDropTarget extends DropTarget {
    private Insets autoscrollInsets = new Insets(20, 20, 20, 20);
    private Rectangle rect2D = new Rectangle();
    private TableTransferHandler handler;
    public TableDropTarget(final TableTransferHandler h) {
    super();
    this.handler = h;
    @Override
    public void dragOver(final DropTargetDragEvent dtde) {
    handler.dropAction = dtde.getDropAction();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    Point location = dtde.getLocation();
    int row = table.rowAtPoint(location);
    int column = table.columnAtPoint(location);
    table.changeSelection(row, column, false, false);
    paintImage(table, location);
    autoscroll(table, location);
    super.dragOver(dtde);
    public void dragExit(final DropTargetDragEvent dtde) {
    clearImage((JTable) dtde.getDropTargetContext().getComponent());
    super.dragExit(dtde);
    @Override
    public void drop(final DropTargetDropEvent dtde) {
    Transferable data = dtde.getTransferable();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    clearImage(table);
    handler.importData(table, data);
    super.drop(dtde);
    private final void paintImage(final JTable table, final Point location) {
    Point pt = new Point(location);
    BufferedImage[] image = handler.getDragImage();
    if (image != null) {
    table.paintImmediately(rect2D.getBounds());
    rect2D.setLocation(pt.x - 15, pt.y - 15);
    int wRect2D = 0;
    int hRect2D = 0;
    for (int i = 0; i < image.length; i++) {
    table.getGraphics().drawImage(image[i], pt.x - 15, pt.y - 15, table);
    pt.x += image[i].getWidth();
    if (hRect2D < image[i].getHeight()) {
    hRect2D = image[i].getHeight();
    wRect2D += image[i].getWidth();
    rect2D.setSize(wRect2D, hRect2D);
    private final void clearImage(final JTable table) {
    table.paintImmediately(rect2D.getBounds());
    private Insets getAutoscrollInsets() {
    return autoscrollInsets;
    private void autoscroll(final JTable table, final Point cursorLocation) {
    Insets insets = getAutoscrollInsets();
    Rectangle outer = table.getVisibleRect();
    Rectangle inner = new Rectangle(outer.x + insets.left,
    outer.y + insets.top,
    outer.width - (insets.left + insets.right),
    outer.height - (insets.top + insets.bottom));
    if (!inner.contains(cursorLocation)) {
    Rectangle scrollRect = new Rectangle(cursorLocation.x - insets.left,
    cursorLocation.y - insets.top,
    insets.left + insets.right,
    insets.top + insets.bottom);
    table.scrollRectToVisible(scrollRect);
    /** Creates new form Drag */
    public Drag() {
    initComponents();
    populate();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jScrollPane1 = new javax.swing.JScrollPane();
    table = new javax.swing.JTable();
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    table.setModel(new javax.swing.table.DefaultTableModel(
    new Object [][] {
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null},
    {null, null, null, null, null}
    new String [] {
    "Title 1", "Title 2", "Title 3", "Title 4", "Title 5"
    Class[] types = new Class [] {
    java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
    public Class getColumnClass(int columnIndex) {
    return types [columnIndex];
    jScrollPane1.setViewportView(table);
    table.getTableHeader().setReorderingAllowed(false);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.setCellSelectionEnabled(true);
    table.setRowHeight(23);
    table.setDragEnabled(true);
    TableTransferHandler th = new TableTransferHandler(colormap);
    table.setTransferHandler(th);
    table.setDropTarget(new TableDropTarget(th));
    table.setTableHeader(null);
    jButton1.setText("UPDATE");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(18, 18, 18)
    .addComponent(jButton1)
    .addContainerGap(15, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 348, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGroup(layout.createSequentialGroup()
    .addGap(80, 80, 80)
    .addComponent(jButton1)))
    .addContainerGap(14, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    writeTable(); // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Drag().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable table;
    // End of variables declaration
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

  • I need help putting my appet on the web. I keep getting an error. Thanks

    This is my code. It works as a .jar but i need it to run from the web. I posted the code and my errors. Please help if possible. I know the coding is quite messy but there are reasons for the mess. Please let me know what I'm doing wrong.
    This is the main class
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class testGUI2 extends JApplet
    testGUI2 t;
         //ALL OF THE QUESTIONS
         public testGUI2()
         {createGUI();
              /*try {
                          SwingUtilities.invokeAndWait(new Runnable() {
                              public void run() {
                                  createGUI();
                      } catch (Exception e) {
                          System.err.println("createGUI didn't complete successfully");
         }// end constructor main
         public  void createGUI()
              gameFrame g = new gameFrame();
              g.setOpaque(true);
              setContentPane(g);
              //JFrame testframe = new JFrame();
              //testframe.add(g);
              //testframe.setSize(500,500);
              //testframe.setVisible(true);
         public static void main(String[] args)
              testGUI2 t = new testGUI2();
              t.setSize(700,700);
         }//end main
    }//end class

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class gameFrame extends JPanel{
         private gameFrame gframe;
         private JLabel title, opLabel,scoreLabel,numberLabel;
         private JButton helpButton,nextButton,playButton,newgameButton,startButton;
         private JRadioButton choiceOne, choiceTwo, choiceThree;
         testGUI2 t;
         private ButtonGroup bgroup;
         private int choicenumber;
         private int score;
         private int i;
         ButtonHandler handle = new ButtonHandler();
         String[] choice1 = new String [20];
         String[] choice2 = new String [20];
         String[] choice3 = new String [20];
         int [] answernum = new int[20];
         String[] audio = new String[20];
         public gameFrame()
              super( new FlowLayout());
         choice1[1]="Hey Steve";
         choice2[1]= "I figured that u needed this";
         choice3[1]= "To test your site";
         answernum[1]=1;
         //audio[1]= "C:/Users/Matt/Desktop/tests/gamesounds/chimes.wav";
         choice1[2]="So here it is";
         choice2[2]= "Im running out of test lyrics";
         choice3[2]= "So im just gonna put lines i think of from songs";
         answernum[2]=2;
         choice1[3]="Here goes";
         choice2[3]= "love electricity";
         choice3[3]= "shockwave central power on the motherboard, yes";
         answernum[3]=3;
         choice1[4]="push up overload legendary heavy glow";
         choice2[4]= "never again will i be dishonored";
         choice3[4]= "and never again will i be reminded";
         answernum[4]=1;
              choice1[5]="were living within the world of the jaded";
              choice2[5]= "they killed inspiration";
              choice3[5]= "its my obligation to never again";
              answernum[5]=2;
              choice1[6]="40 40 dollar to the man that wanna go";
              choice2[6]= "20 20 to the sister when u take it";
              choice3[6]= " at the grocery sto";
              answernum[6]=3;
              choice1[7]="this is as far as i probably need to go";
              choice2[7]= "any further and im past my test zone";
              choice3[7]= "terminate test here i think";
              answernum[7]=1;
              choice1[8]="what";
              choice2[8]= "who";
              choice3[8]= "why";
              answernum[8]=2;
              choice1[9]="what";
              choice2[9]= "who";
              choice3[9]= "why";
              answernum[9]=1;
              choice1[10]="what";
              choice2[10]= "who";
              choice3[10]= "why";
              answernum[10]=3;
              choice1[11]="what";
              choice2[11]= "who";
              choice3[11]= "why";
              answernum[11]=2;
                   i=1;
                   Icon start = new ImageIcon("gameimages/start.gif");
                   Icon replay = new ImageIcon("gameimages/replay.gif");
    Icon help = new ImageIcon("gameimages/althelp.gif");
    Icon next = new ImageIcon("gameimages/altnext.gif");
    Icon play = new ImageIcon("gameimages/altplay.gif");
    startButton=new JButton(start);
    startButton.addActionListener(handle);
    startButton.setBorder(BorderFactory.createLineBorder(Color.black));
    numberLabel= new JLabel("Question #:"+Integer.toString(i));
    numberLabel.setFont(new Font("Times New Roman",Font.PLAIN,20));
    numberLabel.setForeground(Color.white);
    title=new JLabel("Lyrical Expert?",JLabel.CENTER);
    title.setFont(new Font("Times New Roman",Font.BOLD,48));
    title.setForeground(Color.white);
    playButton=new JButton(play);//puttin image in
    playButton.setBackground(Color.BLACK);
    playButton.setSize(100,50);
    playButton.setBorder(BorderFactory.createLineBorder(Color.gray));
    newgameButton= new JButton(replay);
    newgameButton.setVisible(false);
    newgameButton.setBorder(BorderFactory.createLineBorder(Color.gray));
    newgameButton.addActionListener(handle);
    scoreLabel= new JLabel("Score:");
    scoreLabel.setFont(new Font("Times New Roman",Font.PLAIN,20));
    scoreLabel.setForeground(Color.white);
    scoreLabel.setBackground(Color.BLACK);
    opLabel= new JLabel("0");
    opLabel.setFont(new Font("Times New Roman",Font.PLAIN,20));
    opLabel.setForeground(Color.white);
    opLabel.setBackground(Color.BLACK);
    nextButton=new JButton(next);//puttin image in
    nextButton.addActionListener(handle);
    nextButton.setBackground(Color.BLACK);
    nextButton.setSize(100,34);
    nextButton.setBorder(BorderFactory.createLineBorder(Color.gray));
    helpButton= new JButton(help);//puttin image in
    helpButton.setSize(78,75);
    helpButton.setBackground(Color.BLACK);
    helpButton.setBorder(BorderFactory.createLineBorder(Color.black));
    helpButton.addActionListener(handle);
    bgroup=new ButtonGroup();
    choiceOne= new JRadioButton("?");
    choiceTwo= new JRadioButton("?");
    choiceThree= new JRadioButton("?");
    choiceOne.setFont(new Font("Times New Roman",Font.PLAIN,20));
    choiceOne.setForeground(Color.white);
    choiceOne.setBackground(Color.BLACK);
    choiceTwo.setFont(new Font("Times New Roman",Font.PLAIN,20));
    choiceTwo.setForeground(Color.white);
    choiceTwo.setBackground(Color.BLACK);
    choiceThree.setFont(new Font("Times New Roman",Font.PLAIN,20));
    choiceThree.setForeground(Color.white);
    choiceThree.setBackground(Color.BLACK);
    choiceOne.addActionListener(handle);
    choiceTwo.addActionListener(handle);
    choiceThree.addActionListener(handle);
    bgroup.add(choiceOne);
    bgroup.add(choiceTwo);
    bgroup.add(choiceThree);
    choiceOne.setText(choice1[1]);
    choiceTwo.setText(choice2[1]);
    choiceThree.setText(choice3[1]);
    //changeLayout();
                   //gframe = new gameFrame();
                   GroupLayout layout = new GroupLayout(this);
                   this.setLayout(layout);
                   this.setBackground(Color.BLACK);
                   //layout.setAutoCreateGaps(true);
                   //layout.setAutoCreateContainerGaps(true);
                   layout.setVerticalGroup(
                        layout.createSequentialGroup()
                             .addComponent(title)
                                  .addGap(10)
                                  .addComponent(startButton)
                                  .addComponent(playButton)
                                  .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                                       .addGroup(layout.createSequentialGroup()
                                            .addComponent(choiceOne)
                                            .addComponent(choiceTwo)
                                            .addComponent(choiceThree))
                                            .addGap(50)
                                       .addComponent(nextButton))
                             //.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,50,50)
                             .addComponent(newgameButton)
                             .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                             .addComponent(helpButton)
                             .addGap(120)
                             .addComponent(numberLabel)
                             .addGap(120)
                             .addComponent(scoreLabel)
                             .addComponent(opLabel)));
                   layout.setHorizontalGroup(
                        layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                             .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                             .addComponent(title)
                             .addGap(10)
                             .addComponent(startButton)
                             .addComponent(playButton))
                             .addGroup(layout.createSequentialGroup()
                                  .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                                       .addComponent(choiceOne)
                                       .addComponent(choiceTwo)
                                       .addComponent(choiceThree))
                                       .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED,100,100)
                                  .addComponent(nextButton))
                             .addComponent(newgameButton)
                                  .addGroup(layout.createSequentialGroup()
                                       .addComponent(helpButton)
                                       .addGap(120)
                                       .addComponent(numberLabel)
                                       .addGap(120)
                                       .addComponent(scoreLabel)
                                       .addComponent(opLabel))));
              startButton.setVisible(true);
              nextButton.setVisible(false);
              playButton.setVisible(false);
              numberLabel.setVisible(false);
              scoreLabel.setVisible(false);
              opLabel.setVisible(false);
              choiceOne.setVisible(false);
              choiceTwo.setVisible(false);
              choiceThree.setVisible(false);
              }Edited by: Scubastevie on Jun 21, 2010 1:21 PM

  • NEED HELP PUTTING MULTIPLE PAGES TOGETHER IN 1 PDF

    HOW DO I PUT 10 PAGES TOGETHER TO OPEN IN 1 PDF?

    Thanks Janelle - I do not have that ability with the Epson RX580. Epson just answered my tech support question with this answer:
    I am sorry you are experiencing difficulties with your EPSON Stylus Photo RX580. Unfortunately this feature is not available with Mac OS X. You will need a third-party software that will help you with this, such as Poster Print for Mac or Tiler. Please note though that Epson does not support these applications.
    So I guess my question becomes what software can I use to print my images on multiple pages. As I do large photo transfers I need to be able to do this with my mac in an efficient way and not try to cut portions of image into seperate print jobs that would be too time consuming. HAve you had any experience with other software. If not I guess the next question  what printer would you recommend that would do this with my MAC. I have included a pic of one of my larger transfers on a cupboard. To do this I needed the image to be tiled on 8 different sheet of 8.5x11 so this is a feature I need through either software or a printer that is easy to use and easily accessible. Thanks Krista
    I am inl

  • ..I Need Help Putting Music On My iPod..

    ok.. For Some Reason.. All Of A Sudden When I Connect My iPod To My Computer To Put Songs On It.. A Message Comes Up Sayin..
    "Songs On The iPod "my name iPod" Cannot Be Synced Because All Of The Playlists For Syncing No Longer Exist"..
    I Have NOOOO Idea What That Means But Its Took All The Songs Off My iPod.. But There Still On iTunes But Wont Go On The iPod Cussa That Reason ^^..
    Help Please

    You get this problem when the option 'Sync Music - Selected playlists' is being used to sync your iPod and then the playlist it has been updating from is deleted. Most people use this setting when the iPod is smaller than the iTunes library. If your library is larger than the capacity of your iPod, iTunes by default makes a new playlist called something along the lines of "Owner's iPod". If you for any reason delete it, you will not be able to sync your iPod.
    Open iTunes and create a playlist to update your iPod from, call it -iPod to make it the first playlist in Sources. You can make this a normal playlist and drag whatever you want to it or you can make it a random Smart playlist. If you are making a smart playlist limit it to just less than the size of your iPod (for example 3700MB for a 4G iPod Nano). Now connect your iPod and when it appears in the Source list click on the iPod icon to bring up the preference tabs in the main pane. Go to the Music tab and choose Sync Music and the Selected playlists radio button. Choose the playlist you just made from the selection and click Apply. You can also sync from any existing playlists by choosing the same setting, you just need to make sure that the size of the playlists don't exceed the capacity of your iPod:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    To make a random playlist go to File>New Smart Playlist.
    Uncheck "Match the following rule"
    Check "Limit to" put "3700" in the number box, choose "MB" from the first list box, choose "Random" from the next list box. Check "Live Updating"
    When you want to change the selection in the playlist just delete everything in it and it will add a new selection

  • Need Help Putting a Flash Widget into an Image Being Exported into HTML

    Hi, I'm making a banner for the top of my band's MySpace. I only got into making layouts and such because we didn't want to spend the money on hiring a professional, so I'm kind of new to this and I don't know if anyone can help but what I'm trying to do is put a flash widget (for Twitter) into an image on Photoshop which I will then export into html. Can I do this on Photoshop or do I need to do it on another program. Any help would be appreciated, thanks!

    No, this requires you to learn HTML and create the proper embedding code and page layout.
    Mylenium

  • I need help putting together different sized video/photo

    I just got back from a trip to Yellowstone National Park.  I want to put three different pieces of media - GOPRO HD video shot at 1280 x 960, NIKON jpegs at 3872 x 2592, and SDV (Sony DCR-TRV33) shot at 16:9 resolution (can't figure out pixel size.)  I have Compressor (of course) and also MPEG Streamclip.
    First of all I need to convert the GOPRO HD (compressed at h.264) and digitize the SDV.  What format would be best for editing and integrating the three pieces of media - Apple Pro Res, DV/DCVPRO, ...
    1280 x 960 is 4:3 (too late to change the SDV to 4:3) so what would be the best compromise?
    Thanks for the help,
    William

    So you recommend digitizing (log and capture) the SDV in FCP as a ProRes (422?)  Also convert the h.264 (GOPRO) to ProRes.  Trim the jpegs in Photoshop (is there a simple batch program that can do this?)
    When you say to leave the GOPRO in it 1280x960 frame size so it can be re-framed in a Sequence - how does that work?
    I'd just use ProRes 422 for both types of video. You could probably get along with ProRes LT for the SD, but I like to keep things simple.
    Create your timeline by dropping a "SDV" clip in and answering "yes" to the auto-conform question that will appear. This should give you a 16:9 aspect ratio SD timeline. Now, when you drop in a GoPro clip it will scale down and try to fit in.
    If you double click it into Viewer and go to the Motion tab, you can hit the Reset button (the one with the red X) and you will have a 1280x960 clip again. It will seem as if you're looking at it through a hole in a template; you can "steer" it or resize it just as you usually do with a still. You can do a zoom in or out on the video, or pan from side to side.
    Use this to sharpen your story visually. Have fun with it.

  • Need help with advanced JTable

    The application I am converting to Java has a string grid (table) with special behavior that I need to be able to bring to the Java version. It let's users filter the column data (that I know how to do) using a locked first row (just below the column header) that always stays in place and that shows what filter is applied to each column (by showing a combo box).
    I usually write server apps and have only been trying to grasp Swing for about a week, and I find myself stuck :(
    Is this at all possible in Java? If not, can I make the header respond to mouse events and show a popup menu for each column? If so how?
    Please help!

    I have made an attempt as follows (to show where I am stuck).
    I have two TableModels that contain rows and data;
    a) the grid data that's coming from our EJB session facade
    b) the filter settings (a String[] with initially empty strings) which show what filter is used for each column.
    The two table models are shown in two tables that share a common TableColumnModel so that whenever i move or resize a column both tables are updated.
    The filter table shows it's header and the row of empty cells. The Table Model I've used for it is ripped from the Sorted Table example from Sun, so that I can capture mouse events, set the sort order for each column and notify the grid table that it needs to update accordingly.
    I attempted to use the filter table as a header view in a JScrollPane, which would keep it in place all the time while the user would be able to scroll and resize the grid table.
    This is where I fail - I can't even get it to show up in the header. And if I only put the two tables on a JPanel it seems impossible to get them to stick together when the pane is resized (aside from the fact that I no longer can capture the mouse events).
    I'd be happy to send someone the code fragments if you think you have a solution to this - that will allow users to resize, edit and move columns in a table where you initially have no clue as to how many columns it will contain.
    Please please continue to help me :)

Maybe you are looking for

  • Import script (SQL to FDM) - ConnectionRead error

    Hi, I have written an import script in FDM to load data from a SQL view. This script works fine when loading approx 5,000 rows, however, fails when trying to load 20k+ rows The error message I am receiving is: Detail: [Microsoft][ODBC SQL Server Driv

  • How can I get rid of -200492 error in Delphi?

    I am using Delphi for my developement. Earlyer, old Ni-DAQ and a MIO-16-E1 served as input device. Now the new one, M6221 works only with NI-DAQmx. So i had to convert to C routines into pascal. Anyway i wrote the following code: status := DAQmxCreat

  • How can change or control tempo in Logic8 with incoming MTC signal

    Hi Logic users! I need help about MTC synchronisation. How can I change tempo /follow tempo/ with incoming MTC signal in Logic 8. Many musician and producer use Cubase and we need frequently use their tempo map. We use Soundscape HDR /there is our ma

  • RUN DLL C:\program files\quick time\QTsystem\quicktime.cpl

    my itunes and quicktime stopped working one day it was working fine but now it just get error reports every time i run itunes. i try to open quicktime but it never loads. quicktime is in my launch bar and when i right click on it i got to "quick time

  • Javascript calling Java value

    Hi, I've got a slight problem on my JSP page. I have a value thru a value, request.getParameter("adcomments");I'm trying to call it via javascript in an input value like the following: <input name="activate" type="radio" value="3" onClick="document.g