mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-633 Copy Image capture and send functionality is broken on Linux
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7937 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -55,13 +55,6 @@ import org.jivesoftware.sparkimpl.plugin.filetransfer.transfer.ui.ReceiveMessage
|
|||||||
import org.jivesoftware.sparkimpl.plugin.filetransfer.transfer.ui.SendMessage;
|
import org.jivesoftware.sparkimpl.plugin.filetransfer.transfer.ui.SendMessage;
|
||||||
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
|
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
|
||||||
import javax.swing.*;
|
|
||||||
import javax.swing.text.BadLocationException;
|
|
||||||
import javax.swing.text.Style;
|
|
||||||
import javax.swing.text.StyleConstants;
|
|
||||||
import javax.swing.text.StyledDocument;
|
|
||||||
|
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
import java.awt.GraphicsDevice;
|
import java.awt.GraphicsDevice;
|
||||||
@ -91,6 +84,19 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
|
import javax.swing.JFileChooser;
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.JMenu;
|
||||||
|
import javax.swing.JMenuItem;
|
||||||
|
import javax.swing.JOptionPane;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
import javax.swing.text.BadLocationException;
|
||||||
|
import javax.swing.text.Style;
|
||||||
|
import javax.swing.text.StyleConstants;
|
||||||
|
import javax.swing.text.StyledDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Responsible for the handling of File Transfer within Spark. You would use the SparkManager
|
* Responsible for the handling of File Transfer within Spark. You would use the SparkManager
|
||||||
* for sending of images, files, multiple files and adding your own transfer listeners for plugin work.
|
* for sending of images, files, multiple files and adding your own transfer listeners for plugin work.
|
||||||
@ -498,8 +504,6 @@ public class SparkTransferManager {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (bufferedImage != null) {
|
|
||||||
|
|
||||||
frame.setUndecorated(true);
|
frame.setUndecorated(true);
|
||||||
frame.setSize(bufferedImage.getWidth(null), bufferedImage.getHeight());
|
frame.setSize(bufferedImage.getWidth(null), bufferedImage.getHeight());
|
||||||
frame.getContentPane().add(mainPanel);
|
frame.getContentPane().add(mainPanel);
|
||||||
@ -513,7 +517,7 @@ public class SparkTransferManager {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Full-screen mode will be simulated
|
// Full-screen mode will be simulated
|
||||||
}
|
frame.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user