Package edu.stanford.genetics.treeview

Examples of edu.stanford.genetics.treeview.LogBuffer


    txtField.setText(TreeViewApp.globalConfigName());
    txtField.setEditable(false);
    JButton testButton = new JButton("Test!");
    testButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        LogBuffer lb = LogBuffer.getSingleton();
        boolean origStatus = lb.getLog();
        lb.setLog(true);
        lb.addObserver(GlobalPrefInfo.this);
        app.getGlobalConfig().getNode("Test").setAttribute("Hello", "Hello", "");
        app.getGlobalConfig().getNode("Test").setAttribute("Hello", "World", "");
        app.getGlobalConfig().store();
       
        lb.deleteObserver(GlobalPrefInfo.this);
        lb.setLog(origStatus);
      }
    });
    msgPanel.add(new JLabel("Global preferences are stored in "));
    msgPanel.add(txtField);
    msgPanel.add(testButton);
View Full Code Here

TOP

Related Classes of edu.stanford.genetics.treeview.LogBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.