[Pixelle-commit] SF.net SVN: pixelle:[185] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleFrame.
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-14 21:44:51
|
Revision: 185
http://pixelle.svn.sourceforge.net/pixelle/?rev=185&view=rev
Author: dbrosius
Date: 2008-11-14 21:44:47 +0000 (Fri, 14 Nov 2008)
Log Message:
-----------
use EventQueue.invokeLater, rather than SwingUtilities
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-11-14 17:17:15 UTC (rev 184)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-11-14 21:44:47 UTC (rev 185)
@@ -21,6 +21,7 @@
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
+import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
@@ -38,7 +39,6 @@
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
-import javax.swing.SwingUtilities;
import com.mebigfatguy.pixelle.actions.CloseFileAction;
import com.mebigfatguy.pixelle.actions.NewFileAction;
@@ -235,7 +235,7 @@
try {
image = new PixelleImage(ImageIO.read(f));
imageFile = f;
- SwingUtilities.invokeLater(new Runnable() {
+ EventQueue.invokeLater(new Runnable() {
public void run() {
Container cp = getContentPane();
cp.removeAll();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|