/**
* Constructor from owner, GraphicsConfiguration and content.
*/
public Splash(Window owner, GraphicsConfiguration gc, final JComponent content) {
super(owner, gc);
getContentPane().setLayout(new BorderLayout());
content.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));
getContentPane().add(content, BorderLayout.CENTER);
content.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
// when the content pane is clicked, hide it
setVisible(false);
}
});
validate();
pack();
}
Splash.java 文件源码
java
阅读 54
收藏 0
点赞 0
评论 0
项目:gate-core
作者:
评论列表
文章目录