1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

backed out my rev 1.20 changes so we're back with the 1.19 version of this

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1960 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
loki 2003-06-17 18:14:20 +00:00
parent e68209dd3d
commit f4b6fa0e9a

View file

@ -58,10 +58,6 @@ import org.jivesoftware.smack.filter.*;
import javax.swing.*; import javax.swing.*;
import java.net.*; import java.net.*;
import java.io.*; import java.io.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Clipboard;
import java.awt.*; import java.awt.*;
/** /**
@ -590,55 +586,7 @@ public class XMPPConnection {
allPane.add(new JScrollPane(interpretedText1)); allPane.add(new JScrollPane(interpretedText1));
tabbedPane.add("Interpreted Packets", new JScrollPane(interpretedText2)); tabbedPane.add("Interpreted Packets", new JScrollPane(interpretedText2));
JPanel cPane = new JPanel(); debugFrame.getContentPane().add(tabbedPane);
cPane.setLayout(new BoxLayout(cPane, BoxLayout.Y_AXIS));
cPane.add(tabbedPane);
JPanel buttonPane = new JPanel();
Dimension rigidSpaceDim = new Dimension(15, 1);
buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS));
JButton jb = new JButton("client->clipboard");
jb.addActionListener(new ActionListener() {
public void actionPerformed (ActionEvent ae) {
Clipboard clipboard
= debugFrame.getToolkit().getSystemClipboard();
StringSelection ss = new StringSelection(sentText1.getText());
clipboard.setContents(ss, ss);
}
});
buttonPane.add(jb);
jb = new JButton("server->clipboard");
jb.addActionListener(new ActionListener() {
public void actionPerformed (ActionEvent ae) {
Clipboard clipboard
= debugFrame.getToolkit().getSystemClipboard();
StringSelection ss
= new StringSelection(receivedText1.getText());
clipboard.setContents(ss, ss);
}
});
buttonPane.add(Box.createRigidArea(rigidSpaceDim));
buttonPane.add(jb);
jb = new JButton("interpreted->clipboard");
jb.addActionListener(new ActionListener() {
public void actionPerformed (ActionEvent ae) {
Clipboard clipboard
= debugFrame.getToolkit().getSystemClipboard();
StringSelection ss
= new StringSelection(interpretedText1.getText());
clipboard.setContents(ss, ss);
}
});
buttonPane.add(Box.createRigidArea(rigidSpaceDim));
buttonPane.add(jb);
cPane.add(buttonPane);
debugFrame.getContentPane().add(cPane);
debugFrame.pack();
debugFrame.setSize(550, 400); debugFrame.setSize(550, 400);
debugFrame.setVisible(true); debugFrame.setVisible(true);