package appstu; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; import java.util.Scanner; import appstu.util.CommonaJdbc; import appstu.view.JF_login; public class AppStu { boolean packFrame = false; public static void main(String[] args) { try { new Thread() { private FileInputStream fis; private Scanner scanner; private JF_login jf_login; @Override public void run() { try { initAndRecLog(); // 初始化并记录日志 System.out.println("系统正在启动中......"); System.out.println("系统启动正常......"); System.out.println("进入登录窗体......"); fis = new FileInputStream("APPStu.log"); scanner = new Scanner(fis); while (scanner.hasNextLine()) { String str = scanner.nextLine(); str = "启动信息:" + str; Thread.sleep(400); } scanner.close(); fis.close(); jf_login.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } // 初始化系统,并记录日志 private void initAndRecLog() throws FileNotFoundException { FileOutputStream fop = new FileOutputStream("APPStu.log"); PrintStream ps = new PrintStream(fop); System.setOut(ps); CommonaJdbc Jdbc = new CommonaJdbc(); if (CommonaJdbc.conection != null) { jf_login = new JF_login(); } } }.start(); } catch (Exception e) { e.printStackTrace(); } } }
最近下载更多
hapilong LV5
2023年12月11日
sunshine9920 LV12
2023年10月21日
wanjql11 LV2
2023年10月17日
fesfefe LV13
2023年10月6日
206364706 LV1
2023年9月3日
iloveyou66 LV2
2023年9月2日
Hermes LV2
2023年7月12日
mayong1234 LV6
2023年6月15日
无名的我 LV1
2023年6月14日
caomin LV4
2023年5月24日