Examples related to interrupts & Burst in 6534

Hye friends, I want some examples if anybody have, But i have only 6534 card and no external device to trigger, so keep in mind that i want such examples which totally depends on 6534 only no external timers, counters etc. So the vi should contain code purely for 6534. I will generate the trigger from any hardware or manually by shorting them to Vcc to test.
1.) Continuous pattern input start & stop trigger
2.) Continuous pattern output start & stop trigger
3.) Finite output start & stop trigger
4.) Continuous Burst mode input.
5.) Continuous Burst mode output.
If anybody have please inform me. Its not available in the labview examples or on ni website.

Vishal,
I performed a search on our website and I found a few of the examples you were looking for.
#1: http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B123AE0CBBED111EE034080020E74861&p_​node=DZ52321&p_source=external
#2: Modify #1.
#3: It doesn't make theoretical sense to start and stop trigger a FINITE generation, but there are many examples of generation using a start trigger
#4: Can be modified easily to do continuous http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B123AE0CBBED111EE034080020E74861&p_​node=DZ52321&p_source=external
#5: Can be modified easily to do continuous http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B45EACE3E8C556A4E034080020E74861&p_​node=DZ52320&p_source=external
To find
these examples I went to http://www.ni.com/devzone/dev_exchange/ex_search.h​tm and typed 653x. I did not specify a software or hardware type.
Hope this helps.

Similar Messages

  • [svn:osmf:] 16068: Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).

    Revision: 16068
    Revision: 16068
    Author:   [email protected]
    Date:     2010-05-12 11:17:11 -0700 (Wed, 12 May 2010)
    Log Message:
    Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).
    Also added -noswf option as we are not compiling the example into a swf for the asdocs.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayerSprite.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Webdynpro ABAP Examples Related to MM/SD/PP etc Module

    Hi
    Can I get some webdynpro ABAP examples based on MM/SD/PP etc Module.
    Please give me any link.
    Thanks
    Amresh

    hi,
    Refer this liinks for all webdynpro ABAP related stuff:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/referencesandLinks
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos

  • Functional specification examples related to enhancement in sap sd

    Hi All,
    Can you please provide me the functional spec related to any scenario in SAP SD.
    Thanks

    Dear Friend...
    As a functional consultant , we may often come across certain situations from clients to modify / create or design a new requirement or a report or a new funcitionality with your existing System in place...
    Say for eg : you may have a requirement from your client to include a new report in your system which enable the user to see the sales detail of a particular customer who avail certain discounts in a particular period of time.. then you may have to create a report with inputs like
    1) Customer
    2) Discount Conditon type
    3) Date
    where as the output will be having all the desired details like the
    1) Sales orders for that customer
    2) Its value
    3) The customer address etc etc
    (This example is just to give you a scenario)
    Hence .. YOu have to develop a report which is not already available in Standard SAP. You have to contact your abaper to explain this requirement and to design this report,who will be desinging the report.
    So FUNCTIONAL REQUIREMENT SPECIFICATION is a document which contains all the requirement details, input details, the table and their field names, Output details ,the table and their field names, the constraints which needs to be checked while executing the report, input constraints, output constraints, Error handling methods and also the process flow...
    The Functional consultants will prepare the funciton requirement specification (Also called as FRS) and submit to the ABAPer .ABAPer will design the report / requirement or new funcitionality on the basis of the document.
    Hope this is fruitful...
    Also go through this links...
    [Functional requirement specfication|http://www.pmolink.com/articles/Using%20ARIS%20for%20Functional%20Specifications%20_2_.pdf]
    [Function requirement for Enhancements|http://www.sap-img.com/general/what-are-functional-specification-in-sap.htm]
    Kindly reward if you find this useful...
    Thanks,
    Safeer Rahman

  • I am looking for labview examples related to ECG

    Hi, everyone!
    I need your help.
    I am looking for labviews examples, which are related
    to ECG for my thesis .
    I wait for your answer.
    thanks in advance

    Burcu;
    I am not sure what type of examples are you looking, so this is a start:
    Searching at the LabVIEW Discussion forum I found:
    Example
    calculate heart rate from ECG
    how to design a suitable vi to acquire ECG waveform?
    Doing a search with Google:
    LabView Exercise to model and analysis ECG/EKG data
    EE 206 MINI-PROJECT I CARDIAC MONITOR VI
    Searching an NI.com:
    PC-Based ECG Monitoring and Analysis Using BioBench (LabVIEW VIs at bottom - not sure if link is dead)
    Regards;
    Enrique Vargas
    www.visecurity.com
    www.vartortech.com

  • Examples related to XML and XSLT

    Hello friends,
    In relation to XML and XSLT
    1. As I can transform an XML file using XSLT.
    2. I view the XML file using XSLT
    3. XSL and XSLT files are equal...?
    Thanks for the support

    http://docs.oracle.com/javaee/1.4/tutorial/doc/JAXPXSLT6.html

  • Notes on examples related using of Field symbols

    Hi,
    I want some notes having examples of field symbols.
    Thanks & regards,
    Chetan

    I still don't follow what you are referring as Field Symbols.  If you talking about using Form variables dynamically in a query then check this thread 
    Variables in query ??
    Suda

  • Bursting with EBIZ12 and Listner Process

    Hi All,
    We are using BI Publisher with R12 Instance. We are using bursting to break the BIG XML file for the Employee data
    by manager and sending it to multiple desitnations and it is moving fine.
    We need to acheive the following also along with the bursting of the file :
    a) Store Individual File XML data into file system & corresponding Manager name and ID in table for retreival later.
    i ) Where can we plug this code ? Will the Listener Hook Provides have handle to each file XML data ?
    ii) How can we register the Listener hook with Standard Concurrent Program ( as we using the standard Bursting program in 5.6.3)?
    Any other approaches / pointers will be helpful.
    Regards,
    Abhishek

    a) Yes, listeners would work.
    i ) yes and no, the bursting engine prune's the doc and the xml disappears after the next delivery.
    ii) see below. super easy. you need to implement the bursting interface and java concurrent program.
    Here's an example homeslice of the *[Burst Designer| http://web.me.com/beth.wiggins/ike/bipublisher/BurstDesignerDist/launch.html]* creates a tree using the listeners:
    package bipublisher.burst.listener;
    import java.awt.Desktop;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.net.URI;
    import java.net.URISyntaxException;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.Vector;
    import java.util.logging.Level;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.SwingUtilities;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import javax.swing.tree.TreePath;
    import oracle.apps.xdo.batch.BurstingListener;
    import oracle.apps.xdo.batch.DocumentProcessor;
    import oracle.apps.xdo.common.log.Logger;
    import oracle.apps.xdo.common.log.XDOLogImpl;
    * @author ike
    public class BurstDesignerListener implements BurstingListener, Runnable {
        private javax.swing.JTextArea logTextArea;
        private JTree tree;
        private String burstControlFileLocation = "";
        private String testFileLocation = "";
        String tempdir = System.getProperty("java.io.tmpdir");
        private DefaultTreeModel model;
        private Properties properties;
        DefaultMutableTreeNode top = new DefaultMutableTreeNode();
        DefaultMutableTreeNode request = null;
        DefaultMutableTreeNode delivery = null;
        DefaultMutableTreeNode attachmentsDtm = null;
        static Logger logger;
        public BurstDesignerListener() {
            super();
        public void run() {
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            try {
                redirectXdoLogStreams(out);
                model = (DefaultTreeModel) tree.getModel();
                top = (DefaultMutableTreeNode) model.getRoot();
                DocumentProcessor dp = new DocumentProcessor(burstControlFileLocation, testFileLocation, tempdir);
                dp.setConfig(properties);
                dp.registerListener(this);
                dp.process();
            } catch (Exception e) {
                Logger.log(e);
            } finally {
                try {
                    out.flush();
                    out.close();
                //logTextArea.append(bao.toString());
                } catch (IOException ex) {
                    java.util.logging.Logger.getLogger(BurstDesignerListener.class.getName()).log(Level.SEVERE, null, ex);
        public void beforeProcess() {
            logger.log("LISTENER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Start of Bursting Process", 1);
            tree.setEnabled(false);
        public void beforeProcessRequest(int requestIndex) {
            logger.log("LISTENER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Start of Process Request ID" + requestIndex, 1);
            request = new DefaultMutableTreeNode("Request ID: " + requestIndex);
            top.add(request);
        public void beforeProcessDocument(int requestIndex, int documentIndex) {
            logger.log("LISTENER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Start of Process Document", 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Request Index " + requestIndex, 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Document Index " + documentIndex, 1);
        public void beforeDocumentDelivery(int requestIndex, int documentIndex, String deliveryId) {
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ========Start of Delivery", 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Request Index " + requestIndex, 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Document Index " + documentIndex, 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: DeliveryId " + deliveryId, 1);
            delivery = new DefaultMutableTreeNode("Delivery ID: " + deliveryId);
            request.add(delivery);
        public void afterProcess() {
            logger.log("LISTENER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::End of Bursting Process\r\n", 1);
            expandAll(tree, true);
            tree.setEnabled(true);
        public void afterProcessRequest(int requestIndex) {
            logger.log("LISTENER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::End of Process Request ID" + requestIndex + "\r\n", 1);
        //logTextArea.append("End of Process Request ID" + requestIndex + "\r\n");
        public void afterProcessDocument(int requestIndex, int documentIndex, Vector documentOutputs) {
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ========End of Process Document", 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Outputs :" + documentOutputs, 1);
        public void afterDocumentDelivery(int requestIndex, int documentIndex, String deliveryId, Object deliveryObject, Vector attachments) {
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ========End of Delivery", 1);
            logger.log("LISTENER::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Attachments : " + attachments, 1);
            Vector<String> attachments2 = attachments;
            for (String str : attachments2) {
                attachmentsDtm = new DefaultMutableTreeNode(str);
                delivery.add(attachmentsDtm);
        public String getTempdir() {
            return tempdir;
        public void setTempdir(String tempdir) {
            this.tempdir = tempdir;
        public String getBurstControlFileLocation() {
            return burstControlFileLocation;
        public void setBurstControlFileLocation(String burstControlFileDir) {
            this.burstControlFileLocation = burstControlFileDir;
        public String getTestFileLocation() {
            return testFileLocation;
        public void setTestFileLocation(String testFileDir) {
            this.testFileLocation = testFileDir;
        public JTextArea getTextArea() {
            return logTextArea;
        public void setTextArea(JTextArea textArea) {
            this.logTextArea = textArea;
        public JTree getTree() {
            return tree;
        public void setTree(JTree tree) {
            this.tree = tree;
        public void expandAll(JTree tree, boolean expand) {
            TreeNode root = (TreeNode) tree.getModel().getRoot();
            // Traverse tree from root
            expandAll(tree, new TreePath(root), expand);
        private void expandAll(JTree tree, TreePath parent, boolean expand) {
            // Traverse children
            TreeNode node = (TreeNode) parent.getLastPathComponent();
            if (node.getChildCount() >= 0) {
                for (Enumeration e = node.children(); e.hasMoreElements();) {
                    TreeNode n = (TreeNode) e.nextElement();
                    TreePath path = parent.pathByAddingChild(n);
                    expandAll(tree, path, expand);
            // Expansion or collapse must be done bottom-up
            if (expand) {
                tree.expandPath(parent);
            } else {
                tree.collapsePath(parent);
        public Properties getProperties() {
            return properties;
        public void setProperties(Properties properties) {
            this.properties = properties;
        private void updateTextArea(final String text) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    logTextArea.append(text);
        private void redirectXdoLogStreams(ByteArrayOutputStream out) {
            out = new ByteArrayOutputStream() {
                @Override
                public void write(int b) {
                    updateTextArea(String.valueOf((char) b));
                @Override
                public void write(byte[] b, int off, int len) {
                    updateTextArea(new String(b, off, len));
                @Override
                public void write(byte[] b) throws IOException {
                    write(b, 0, b.length);
            //System.setOut(new PrintStream(out, true));
            //System.setErr(new PrintStream(out, true));
            XDOLogImpl fileLog = new XDOLogImpl();
            // bao = new ByteArrayOutputStream();
            fileLog.setDestination(out);
            Logger.setLog(fileLog);
            Logger.setLevel(Logger.STATEMENT);
        public void displayDocument() {
            if (Desktop.isDesktopSupported()) {
                Desktop desktop = Desktop.getDesktop();
                // Now enable buttons for actions that are supported.
                URI uri = null;
                try {
                    uri = new URI("file:///Users/ike/Desktop/corporate_examples/SALES.pdf");
                    desktop.browse(uri);
                } catch (IOException ioe) {
                    ioe.printStackTrace();
                } catch (URISyntaxException use) {
                    use.printStackTrace();
        private void updateTextArea(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
        public void run() {
        logTextArea.append(text);
        private void redirectSystemStreams() {
        OutputStream out = new OutputStream() {
        @Override
        public void write(int b) throws IOException {
        updateTextArea(String.valueOf((char) b));
        @Override
        public void write(byte[] b, int off, int len) throws IOException {
        updateTextArea(new String(b, off, len));
        @Override
        public void write(byte[] b) throws IOException {
        write(b, 0, b.length);
        System.setOut(new PrintStream(out, true));
        System.setErr(new PrintStream(out, true));
    Hope that helps!  If it does please give me the points!
    If your looking to test bursting I have an application that can help you design the bursting control file and run it. Keep in mind it still in beta. You'll be able to get your test scenerios much faster if you use my tool. It's free, so why not!
    Click here: *[Burst Designer| http://web.me.com/beth.wiggins/ike/bipublisher/BurstDesignerDist/launch.html | A free tool to design Burst Control Files - by Ike Wiggins]*
    if you want to see what you can do with the bursting designer look at the video: *[Burst Designer Video| http://web.me.com/beth.wiggins/ike/bipublisher/BurstingDesignerDemoComputer.m4v]*
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Example is not opened from detailed help window

    I tried to open an example related the "Case Structure" in the "Detailed Help" window but it didn't work (I clicked on the "Open example" in the "Detailed Help" window.  Of course I  could open the examples database under "Help" but it will take time to find a specific example.  Thanks.

    Have you checked the list of services? This question has been asked before. When LabVIEW gets installed there's like a thousand services that also get installed. I don't recall which service is needed in order to open the examples. Most start with "National Instruments". In earlier versions it was the NI Service Locator that was needed. Another thing to check is to see if the service are being blocked by your firewall. That's another common reason.

  • Where is the previous version of javafx related forum?

    Hi All,
    Before the preview release of JavaFX, i found one example related with chart. I could not find the link now in the new JavaFX forum. can any one help me to find the URL?
    Thanks,
    Thamizharasu S

    http://forums.java.net/jive/forum.jspa?forumID=122&start=0

  • Usb interrupt timeout event handling

    Hi all,
    I am new to labview, I am doing PIC and PC USB data transfer. I am wondering is there any way I can handle the timeout event generated by "VISA wait on Event" VI, so that when there is no coming data within certain time, it would continue proccess other code rather than generate a error. I am thinking of why VISA USB intterupt has a timeout. Interrupt can only be trigger whenever it is requested, any method to link a USB interrupt event to EVENT Structure rather than polling, which makes more sense to me.
    Thanks & Regards
    Solved!
    Go to Solution.

    Yeah, sorry for being so cryptic.
    I indeed meant the USB nuggets linked to in my signature.  I assumed once I had mentioned it they would be found.......  Sorry.
    You should find an example of using Interrupt functions in there.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • Yet Another ADS related query

    Hi,
    I understand there are lots of examples related to Active Data Service over the internet. But my query is a bit specific.
    If I want to include a (Real) data source instead of faking it through Threads, what would be inside the following methods.
    void startActiveData(Collection<Object> rowKeys,int startChangeCount){}
    void stopActiveData(Collection<Object> rowKeys){}
    Any sample (runnable) code would be much much appreciated.
    Thanks in advance!

    Timo Hahn wrote:
    Well, me be you don't get answers as you don't give enough information to work on. Your question is a bit ambiguous, and you did not even give your jdev version.
    TimoOk, let me put my query in another way.
    I just want a sample code to be written inside the following two methods.
    void startActiveData(Collection<Object> rowKeys,int startChangeCount){}
    void stopActiveData(Collection<Object> rowKeys){}
    wrt to this link http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/adv_ads.htm#CIHDIGID where these methods are not implemented. (they have commented out like "// Not needed. We do not need to connect to a (real) active data scource."). Can I have a sample method implementation with "real" datasource?...
    vinod_t_krishnan wrote:
    will this be helpful
    http://www.orastudy.com/oradoc/selfstu/fusion/doc.1111/e15524/uc_async_dynamic.htm
    http://prsync.com/oracle/building-a-real-time-twitter-client-with-oracle-adf-18495/
    Thanks for the links but i've already gone through them, but doesn't cater to my need.
    Regards!
    Sorry forgot to add I'm using jdev 11gR2.
    Edited by: adf_user on Aug 26, 2011 3:50 AM

  • @relative

    What is the function @RELATIVE used for?
    Thanks in advance.

    Hi Arkangel,
    From tech reference ,
    @RELATIVE
    Returns all members at the specified generation or level that are above or below the specified member in the database outline.
    Syntax
    @RELATIVE (mbrName, genLevNum | genLevName)
    mbrName : Any valid single member name or member combination, or a function that returns a single member or member combination.
    genLevNum: An integer value that defines the number of a generation or level. A positive integer defines a generation number. A value of 0 or a negative integer defines a level number.
    genLevName: Generation or level name specification.
    Description
    This function returns all members at the specified generation or level that are above or below the specified member in the database outline.
    Analytic Services sorts the generated list of members in ascending order. Using Sample Basic as an example, @RELATIVE(200,0), returns 200-10, 200-20, 200-30, 200-40 (in that order). This order is important to consider when you use the @RELATIVE member set function with certain forecasting and statistical functions.
    Example
    In the Sample Basic database:
    @RELATIVE(Qtr1,3)
    @RELATIVE(Qtr1,0)
    both return the three members that are at generation 3 (or level 0) and that are below Qtr1 in the Sample Basic outline: Jan, Feb, and Mar (in that order).
    @RELATIVE(Profit,-1)
    returns the two members that are at level 1 and that are below Profit: Margin and Total Expenses (in that order).
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Simple MVC desktop example wanted

    Hi,
    I've been looking and can't find a good example of MVC in a desktop application. I don't mean MVC as it is used in component development (I've seen some examples relating to Swing and Buttonmodels, for instance), but more business-object level. I'm not a Java or Swing expert, but I have been programming for a while and and am pretty comfortable writing non-UI Java classes and simple Swing apps. But I want to know how to do this right.
    Here's the simplest example I can think of to explain my confusion:
    Suppose I have a class called Customer with fields FirstName and LastName. Suppose further I want to create a desktop GUI that allows the customer to edit that model in two separate windows in such a way that changes in one edit window are immediately reflected in the other, and I want clean separation of presentation and logic.
    The example doesn't have to be in Swing, but it shouldn't require a server.
    Thanks for any help you can give on this - and, if this isn't the right place to post this query, I'd appreciate a pointer to a more appropriate forum.

    There are many ways but here is a simple example of how I do it.
    ******************************* CustomerModel.java
    import java.beans.PropertyChangeSupport;
    import java.beans.PropertyChangeListener;
    public class CustomerModel
        /** Change Support Object */
        private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
        /** bound property names */
        public static final String FIRST_NAME_CHANGED = "firstname";
        public static final String LAST_NAME_CHANGED = "lastname";
        /** First Name Element */
        private String firstName;
        /** Last Name Element */
        private String lastName;
        /** Blank Constructor */
        public CustomerModel()
            super();
         * Sets the first name element.  If value changed a notification is
         * sent to all listeners of this property
         * @param newFirstName String
        public void setFirstName(String newFirstName)
            String oldFirstName = this.firstName;
            this.firstName = newFirstName;
            propertyChangeSupport.firePropertyChange(FIRST_NAME_CHANGED, oldFirstName, newFirstName);
         * @return String
        public String getFristName()
            return firstName;
         * Sets the last name element.  If value changed a notification is
         * sent to all listeners of this property
         * @param newFirstName String
        public void setLastName(String newLastName)
            String oldLastName = this.lastName;
            this.lastName = newLastName;
            propertyChangeSupport.firePropertyChange(LAST_NAME_CHANGED, oldLastName, newLastName);
         * @return String
        public String getLastName()
            return lastName;
        /** Passthrough method for property change listener */
        public void addPropertyChangeListener(String str, PropertyChangeListener pcl)
            propertyChangeSupport.addPropertyChangeListener(str, pcl);       
        /** Passthrough method for property change listener */
        public void removePropertyChangeListener(String str, PropertyChangeListener pcl)
            propertyChangeSupport.removePropertyChangeListener(str, pcl);
    }******************************* CustomerFrame.java
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    import java.beans.PropertyChangeListener;
    import java.beans.PropertyChangeEvent;
    public class CustomerFrame extends JFrame implements ActionListener, PropertyChangeListener
        /** Customer to view/control */
        private CustomerModel customer;
        private JLabel firstNameLabel = new JLabel("First Name: ");
        private JTextField firstNameEdit = new JTextField();
        private JLabel lastNameLabel = new JLabel("Last Name: ");
        private JTextField lastNameEdit = new JTextField();
        private JButton updateButton = new JButton("Update");
         * Constructor that takes a model
         * @param customer CustomerModel
        public CustomerFrame(CustomerModel customer)
           // setup this frame
           this.setName("Customer Editor");
           this.setTitle("Customer Editor");
           this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
           this.getContentPane().setLayout(new GridLayout(3, 2));
           this.getContentPane().add(firstNameLabel);
           this.getContentPane().add(firstNameEdit);
           this.getContentPane().add(lastNameLabel);
           this.getContentPane().add(lastNameEdit);
           this.getContentPane().add(updateButton);
           // reference the customer locally
           this.customer = customer;
           // register change listeners
           this.customer.addPropertyChangeListener(CustomerModel.FIRST_NAME_CHANGED, this);
           this.customer.addPropertyChangeListener(CustomerModel.LAST_NAME_CHANGED, this);
           // setup the initial value with values from the model
           firstNameEdit.setText(customer.getFristName());
           lastNameEdit.setText(customer.getLastName());
           // cause the update button to do something
           updateButton.addActionListener(this);
           // now display everything
           this.pack();
           this.setVisible(true);
         * Update the model when update button is clicked
         * @param e ActionEvent
        public void actionPerformed(ActionEvent e)
            customer.setFirstName(firstNameEdit.getText());
            customer.setLastName(lastNameEdit.getText());
            System.out.println("Update Clicked " + e);
         * Update the view when the model has changed
         * @param evt PropertyChangeEvent
        public void propertyChange(PropertyChangeEvent evt)
            if (evt.getPropertyName().equals(CustomerModel.FIRST_NAME_CHANGED))
                firstNameEdit.setText((String)evt.getNewValue());
            else if (evt.getPropertyName().equals(CustomerModel.LAST_NAME_CHANGED))
                lastNameEdit.setText((String)evt.getNewValue());
    }******************************* MainFrame.java
    import javax.swing.JFrame;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JButton;
    public class MainFrame extends JFrame implements ActionListener
        /** Single customer model to send to all spawned frames */
        private CustomerModel model = new CustomerModel();
        /** Button to click to spawn new frames */
        private JButton newEditorButton = new JButton("New Editor");
        /** Blank Constructor */
        public MainFrame() {
            super();
        /** Create and display the GUI */
        public void createAndDisplayGUI()
            this.setName("MVC Spawner");
            this.setTitle("MVC Spawner");
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.newEditorButton.addActionListener(this);
            this.getContentPane().add(newEditorButton);
            this.pack();
            this.setVisible(true);
        /** Do something when the button is clicked */
        public void actionPerformed(ActionEvent e)
            new CustomerFrame(model);
         * Creates the main frame to spawn customer edit frames from.
         * @param args String[] ignored
        public static void main(String[] args) {
            MainFrame mainframe = new MainFrame();
            mainframe.createAndDisplayGUI();
    }

  • Source of PDF SDK examples and documentation.

    I am creating PDF documents from scratch using the Adobe PDF SDK using the "Acrobat and PDF Library API Reference" but find it's lack of examples and detail frustrating.  Is there any addition documentation or third-party books that would be helpful?

    It appears most of the examples relate to creating plugins rather generating new PDF as I am doing.  For example I also wish the use the PDEPatternCreate library function.  A text search of the V8 and V9 SDK reveals only a few references in header files.  No actual examples on how to construct the raw CosObjP which I assume must be based on the format from the PDF language specification.  I can't see any practical examples on how to create such objects.  I always find example code is a great learning tool because you can see functions and structures used in context with each other and thus more easily understand how they fit together.

Maybe you are looking for

  • How to track number of calls to particular DN

    I need to compile information relating to the number of calls our operator handles in a given day, but am unsure how to do this. We are on CM V8.0.3.20000-2, using Fidelus console for the operator phone. Our old system ran reports that would give us

  • Is MBP 13" 2.66 strong enough for FCE?

    I am making the switch from PC to Mac. I need a laptop for basic editing with both audio & video. I am more concerned with video editing, as my work has tons of audio PC's decked out. I should preface I work in radio, so my audio edits are mainly :10

  • Multiple PGI against a sinlge Delivery document

    Hi Gurus, Can we have multiple PGI's against a single delivery documents? If yes please provide me the step to do the config. Thanks. Laxmi.

  • Transfering image's content to JavaFX

    This is my first time ;) so Hello ALL! 1. The project concept - a 2D system representing a buildings top view. An image that represents the building http://img30.imageshack.us/img30/2852/p00.jpg Rooms, stairs, some other elements are objects - exampl

  • New feature: quick settings?

    Hi Xperia people! I was just wondering... as I see in the changelog for the new update 4.4.4 – Quick settings – customise your settings to access what you need quickest What is the difference now? I can't seem to find where is the "new thing". Any he