mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Minor alert UI enh.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5083 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -37,14 +37,6 @@ import org.jivesoftware.spark.util.log.Log;
|
|||||||
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
|
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
|
||||||
import org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin;
|
import org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin;
|
||||||
|
|
||||||
import javax.swing.AbstractAction;
|
|
||||||
import javax.swing.JComponent;
|
|
||||||
import javax.swing.JPanel;
|
|
||||||
import javax.swing.JTabbedPane;
|
|
||||||
import javax.swing.KeyStroke;
|
|
||||||
import javax.swing.SwingUtilities;
|
|
||||||
import javax.swing.UIManager;
|
|
||||||
|
|
||||||
import java.awt.CardLayout;
|
import java.awt.CardLayout;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
@ -59,6 +51,14 @@ import java.util.List;
|
|||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
|
||||||
|
import javax.swing.AbstractAction;
|
||||||
|
import javax.swing.JComponent;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JTabbedPane;
|
||||||
|
import javax.swing.KeyStroke;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
import javax.swing.UIManager;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The inner Container for Spark. The Workspace is the container for all plugins into the Spark
|
* The inner Container for Spark. The Workspace is the container for all plugins into the Spark
|
||||||
@ -267,6 +267,8 @@ public class Workspace extends JPanel implements PacketListener {
|
|||||||
Timer timer = new Timer();
|
Timer timer = new Timer();
|
||||||
|
|
||||||
timer.schedule(new TimerTask() {
|
timer.schedule(new TimerTask() {
|
||||||
|
public void run() {
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
final Iterator offlineMessage = offlineMessages.iterator();
|
final Iterator offlineMessage = offlineMessages.iterator();
|
||||||
while (offlineMessage.hasNext()) {
|
while (offlineMessage.hasNext()) {
|
||||||
@ -274,6 +276,8 @@ public class Workspace extends JPanel implements PacketListener {
|
|||||||
handleOfflineMessage(offline);
|
handleOfflineMessage(offline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}, timeToRun);
|
}, timeToRun);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -110,7 +110,7 @@ public class InvitationUI extends JPanel implements ActionListener {
|
|||||||
declineButton.addActionListener(this);
|
declineButton.addActionListener(this);
|
||||||
|
|
||||||
setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.lightGray));
|
setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.lightGray));
|
||||||
setBackground(Color.white);
|
setBackground(new Color(195, 217, 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
public void actionPerformed(ActionEvent actionEvent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user