• Java TCP Swing聊天程序


     
     
    业余写着玩的,好多功能没实现,有兴趣的可以拿去玩玩。图片大了还上不了,额。
    下载地址 http://download.csdn.net/download/onlyxiahui/9347191 

    账号 10001~10100等 
    密码都是123 

    客户端的入口:com.oim.app.AppStartup 
    服务端的入口:com.oim.ui.MainFrame
     
    标签: <无>
     

    代码片段(8)[全屏查看所有代码]

    1. [图片] 1.png    

    2. [图片] 2.png    

    3. [图片] 3.png    

    4. [图片] 4.jpg    

    5. [图片] 5.jpg    

    6. [图片] 6.png    

    7. [图片] 7.png    

    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);
    //          }
            }
        }
    }
  • 相关阅读:
    HBase Java API 创建表时一直卡住
    HBase Shell常用的命令
    Three.js中自定义控制几何体的点和面的属性
    Three.js中使用材质覆盖属性
    2021.7.28 发布 gcc-11.2
    解决a 标签在ie8下面不下载问题
    sourceTree拉取代码报错:remote: HTTP Basic: Access denied
    javaScript网页版调用百度地图API (支持HTTPS,兼容IE6+)
    js 时间戳与时间的相互转换
    HTB-Pathfinder
  • 原文地址:https://www.cnblogs.com/imsoft/p/5093693.html
Copyright © 2020-2023  润新知