Java TCP Swing聊天程序
业余写着玩的,好多功能没实现,有兴趣的可以拿去玩玩。图片大了还上不了,额。
下载地址 http://download.csdn.net/download/onlyxiahui/9347191
账号 10001~10100等
密码都是123
客户端的入口:com.oim.app.AppStartup
服务端的入口:com.oim.ui.MainFrame
下载地址 http://download.csdn.net/download/onlyxiahui/9347191
账号 10001~10100等
密码都是123
客户端的入口:com.oim.app.AppStartup
服务端的入口:com.oim.ui.MainFrame
标签: <无>
代码片段(8)[全屏查看所有代码]
8. [代码][Java]代码
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
public class AppStartup implements Runnable { AppContext appContext = new AppContext(); public static void main(String[] args) { try { UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel"); // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception ex) { java.util.logging.Logger.getLogger(AppStartup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } java.awt.EventQueue.invokeLater(new AppStartup()); } @Override public void run() { long time = System.currentTimeMillis(); LoginView loginView = appContext.getSingleView(LoginView.class); loginView.setVisible(true); System.out.println(System.currentTimeMillis() - time); appContext.start(); new initApp().start(); } class initApp extends Thread { @Override public void run() { long time = System.currentTimeMillis(); initTheme(); appContext.getSingleView(MainView.class); appContext.getSingleView(TrayView.class); appContext.getSingleView(FindView.class); appContext.getSingleView(AddView.class); System.out.println(System.currentTimeMillis() - time); } void initTheme() { Theme theme = (Theme) ConfigManage.get(Theme.config_file_path, Theme.class); Image imaeg = new ImageIcon(theme.getWindowBackgroundImage()).getImage(); BufferedImage bi = new BufferedImage(imaeg.getWidth(null), imaeg.getHeight(null), BufferedImage.TYPE_INT_RGB); Graphics2D biContext = bi.createGraphics(); biContext.drawImage(imaeg, 0, 0, null); bi = OnlyImageUtil.applyGaussianFilter(bi, null, theme.getGaussian()); UIBox.put("key_window_background_image", bi);// // for (OnlyBorderFrame ourFrame : UIBox.frameSet) {// ourFrame.setBackgroundImage(bi);// }// for (OnlyBorderDialog ourFrame : UIBox.dialogSet) {// ourFrame.setBackgroundImage(bi);// } } }} |
作 者:imsoft
Email:imsofter#163.com
出处:http://www.cnblogs.com/imsoft/
本文版权归作者和博客园共有,欢迎转载、交流,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接。如果觉得本文对您有益,欢迎点赞、欢迎探讨。本博客来源于互联网的资源,若侵犯到您的权利,请联系博主予以删除。







浙公网安备 33010602011771号