Author: remi
Date: 2008-08-27 10:48:33 +0200 (Wed, 27 Aug 2008)
New Revision: 1601
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
Log:
Fixed : icons glitch when the application is launched
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
===================================================================
--- software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
2008-08-27 08:37:57 UTC (rev 1600)
+++ software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
2008-08-27 08:48:33 UTC (rev 1601)
@@ -14,6 +14,7 @@
import javax.swing.*;
import javax.swing.border.BevelBorder;
+import com.tuxisalive.api.TuxAPIMisc;
import com.tuxisalive.attitunes.*;
import com.tuxisalive.attitunes.format.*;
import com.tuxisalive.attitunes.block.ATTBlock;
@@ -23,8 +24,6 @@
import java.io.*;
-//import javax.swing.JOptionPane;
-
/**
*
* @author R�mi Jocaille
@@ -77,15 +76,18 @@
public MainFrame()
{
super();
+ this.setVisible(false);
this.setResizable(false);
this.setIconImage(new
ImageIcon(getClass().getResource("/icone.png")).getImage());
this.setTitle(ATTMessages.getString("MainFrame.1"));
//$NON-NLS-1$
initGUI();
this.setSize(WINDOW_WIDTH, WINDOW_HEIGHT_WBP);
this.setResizable(false);
- this.setVisible(false);
this.pack();
+ TuxAPIMisc.sleep(0.15);
this.setVisible(true);
+ attBlockViewer.loadAttitune(ATTConfig.ATT_TEMPLATE_PATH);
//$NON-NLS-1$
+ attBlockViewer.setAttituneIsTemplate(true);
}
/*
@@ -413,8 +415,8 @@
fileChooser.addChoosableFileFilter(new
AttituneFileFilter());
/* Load the template file */
-
attBlockViewer.loadAttitune(ATTConfig.ATT_TEMPLATE_PATH); //$NON-NLS-1$
- attBlockViewer.setAttituneIsTemplate(true);
+
//attBlockViewer.loadAttitune(ATTConfig.ATT_TEMPLATE_PATH); //$NON-NLS-1$
+ //attBlockViewer.setAttituneIsTemplate(true);
/* Splash message under developpement */
/*JOptionPane.showMessageDialog(this,
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn