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);