You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
872 B
29 lines
872 B
package com.fr.design.ui; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
import com.fr.design.jxbrowser.JxUIPane; |
|
|
|
import javax.swing.*; |
|
import java.awt.*; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-03-07 |
|
*/ |
|
public class FineUIDemo { |
|
|
|
public static void main(String... args) { |
|
final JFrame frame = new JFrame(); |
|
frame.setSize(1200, 800); |
|
JPanel contentPane = (JPanel) frame.getContentPane(); |
|
// 是否需要开启调试窗口 |
|
DesignerEnvManager.getEnvManager().setOpenDebug(true); |
|
|
|
final JxUIPane<ModernUIPaneTest.Model> pane = new JxUIPane.Builder<ModernUIPaneTest.Model>() |
|
.withComponent(StartComponent.KEY).build(); |
|
contentPane.add(pane, BorderLayout.CENTER); |
|
frame.setVisible(true); |
|
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
|
} |
|
}
|
|
|