mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-15 20:12:04 +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:
parent
e68209dd3d
commit
f4b6fa0e9a
1 changed files with 1 additions and 53 deletions
|
@ -58,10 +58,6 @@ import org.jivesoftware.smack.filter.*;
|
|||
import javax.swing.*;
|
||||
import java.net.*;
|
||||
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.*;
|
||||
|
||||
/**
|
||||
|
@ -590,55 +586,7 @@ public class XMPPConnection {
|
|||
allPane.add(new JScrollPane(interpretedText1));
|
||||
tabbedPane.add("Interpreted Packets", new JScrollPane(interpretedText2));
|
||||
|
||||
JPanel cPane = new JPanel();
|
||||
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.getContentPane().add(tabbedPane);
|
||||
|
||||
debugFrame.setSize(550, 400);
|
||||
debugFrame.setVisible(true);
|
||||
|
|
Loading…
Reference in a new issue