1 package de.webman.wminstaller.screens; 2 3 import javax.swing.*; 4 import java.awt.*; 5 import java.io.*; 6 7 import de.webman.wminstaller.app.*; 8 9 15 public class ScreenWelcome extends InstallerScreen 16 { 17 18 19 public ScreenWelcome( Installer wmi, int bt) { 20 21 super( wmi, bt); 22 23 JEditorPane ep = new JEditorPane(); 24 ep.setEditable(false); 25 File f = new File( wmi.getDataDir(), getDataName() + ".html"); 26 try { 27 ep.setPage(f.toString()); 28 } 29 catch ( IOException e) { 30 ep.setText("Could not load file."); 31 System.out.println("Could not load file: " + f); 32 } 33 JScrollPane sp = new JScrollPane(ep); 34 35 addScreen( "Beginn der Konfiguration", sp); 36 } 37 38 public boolean storeValues() { 39 40 return true; 41 } 42 43 public void onEnter() { 44 } 45 } 46 | Popular Tags |