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:
Derek DeMoro
2006-08-29 15:30:42 +00:00
committed by derek
parent 207f9637d5
commit a5666d21e8
2 changed files with 18 additions and 14 deletions

View File

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

View File

@ -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) {