Update of /cvsroot/tail/TailS/src/java/net/sf/tails/swing/help
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv1697/src/java/net/sf/tails/swing/help
Modified Files:
HelpFrame.java
Log Message:
colocando icon...
Index: HelpFrame.java
===================================================================
RCS file: /cvsroot/tail/TailS/src/java/net/sf/tails/swing/help/HelpFrame.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** HelpFrame.java 31 Oct 2007 21:37:03 -0000 1.5
--- HelpFrame.java 5 Nov 2007 17:19:39 -0000 1.6
***************
*** 9,14 ****
--- 9,16 ----
import java.awt.Toolkit;
import java.net.URL;
+ import java.util.ResourceBundle;
import javax.swing.GroupLayout;
+ import javax.swing.ImageIcon;
import javax.swing.JEditorPane;
import javax.swing.JScrollPane;
***************
*** 21,24 ****
--- 23,27 ----
public class HelpFrame extends javax.swing.JFrame {
+ private static final ResourceBundle iconBundle = ResourceBundle.getBundle("net.sf.tails.i18n.icons");
private JEditorPane jEditorPane1;
private JScrollPane jScrollPane1;
***************
*** 36,39 ****
--- 39,43 ----
//File file = new File(bundle.getString("HELP_FILE"));
//jEditorPane1.setPage("file:////"+file.getAbsolutePath());
+ this.setIconImage(new ImageIcon(iconBundle.getString("TAILS_ICON")).getImage());
jEditorPane1.setPage(new URL("http://tail.cvs.sourceforge.net/*checkout*/tail/TailS/Data/Help/TailSHelp.html?revision=1.1#Runner"));
}catch(Exception e){
|