企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
主界面 Index.html ~~~ package cy.view; import java.awt.*; import javax.swing.*; public class Index extends JWindow { JProgressBar jpb;//绘制进度条 JLabel jl1; int width,height; public static void main(String[] args) { Index index=new Index(); } public Index() { jl1=new JLabel(new ImageIcon("image/index.gif")); jpb=new JProgressBar(); jpb.setStringPainted(true); jpb.setIndeterminate(false); jpb.setBorderPainted(false); jpb.setBackground(Color.darkGray); this.add(jl1,BorderLayout.NORTH); this.add(jpb,BorderLayout.SOUTH); this.setSize(400,263); width=Toolkit.getDefaultToolkit().getScreenSize().width; height=Toolkit.getDefaultToolkit().getScreenSize().height; this.setLocation(width/2-200,height/2-150); this.setVisible(true); } } ~~~ ![](https://box.kancloud.cn/50aff700649759501b5568074b6d3939_462x288.png)