GithubHelp home page GithubHelp logo

mr-mihu / elementui2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gufengchangdao/elementui2

0.0 0.0 0.0 19.59 MB

ElementUI的第二代,使用jdk17并且整合了多个优秀项目

Java 99.63% HTML 0.37%

elementui2's Introduction

ElementUI2

一代地址:ElementUI

项目网址:ElementUI2

图标下载:icon2

飞书文档:ElementUI2

描述

该项目是一代的升级版本,主要有以下特点

  • 该项目使用jdk17。(主要是我想用了(・ิω・ิ))
  • 该项目整合其他优秀项目和框架,汲取其经验。我自知自己经验不足,自己的代码可能会存在不少不足之处,所以把开源的高质量项目拿来学习并整合(删减、优化、升级)到自己项目中去。
  • 与JIDE开源代码整合,对JIDE源代码删改和优化
  • 利用整合后的类优化element样式的组件,项目内原代码进行了删改,并由于内容的增加重新进行了排版

参考的项目(包括一代里的)

  • radiance 很棒的框架,我把SVG转图标类的功能从里面提取了出来,并加以改进,减少图标代码量,修复缩放问题。
  • java-swing-tips 对组件的开发提供了许多思路,让人恍然大悟,原来还可以这么写。并且每个包都是一个示例,不存在依赖关系,容易看懂。提供组件设计思路。
  • jide-oss JIDE的公开层,较为完善的框架,存在许多我不懂的地方,看懂项目、筛选有用代码、修复bug,还有代码优化花了我不少时间,算是把该项目由组件库升级为了一个小框架。
  • Swing-Components 提供了许多组件的实现思路,在解决很多组件功能扩展的问题上提供了很大的帮助,Stack Overflow也经常引用上面的例子

开发指南

代码中使用ElementUI

一般你的应用启动类这样写:

EventQueue.invokeLater(() -> {
   // 检测swing组件更新的线程违规操作,仅开发时启用
   RepaintManager.setCurrentManager(new ThreadCheckingRepaintManager());
   // 创建计时源并启动
   SwingTimerTimingSource ts = new SwingTimerTimingSource();
   Animator.setDefaultTimingSource(ts);
   ts.init();
   //安装 LookAndFeel
   // FlatLightLaf.setup();
   // 注册jide组件和默认组件的UI,应该在安装 LookAndFeel 后执行
   LookAndFeelFactory.installJideExtension();

   //启动程序
   // ...
});

截图预览

ElementUI组件

JIDE的开源组件

src\test\resources\img\1.png src\test\resources\img\1.png src\test\resources\img\1.png

elementui2's People

Contributors

gufengchangdao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.