beautyeye
beautyeye copied to clipboard
有时候会出现透明怎么处理
`package main;
import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;
import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.UIManager;
import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;
public class UI extends JFrame {
public UI() {
super("web service client");
initUI();
}
public void initUI() {
this.setBounds(300, 300, 500, 400);
layoutUI();
this.setVisible(true);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
}
private void layoutUI() {
// 对象实例化
JTabbedPane tab = new JTabbedPane(JTabbedPane.TOP);
// 容器
Container container = this.getContentPane();
// 对象化面板
JPanel p1 = new JPanel();
JPanel p2 = new JPanel();
JPanel p3 = new JPanel();
JPanel p4 = new JPanel();
tab.add(p1, "邮编查询");
tab.add(p2, "汉译英");
tab.add(p3, "Inserte");
tab.add(p4, "Delete");
// container.setLayout(new BorderLayout()); container.add(new JPanel().add(tab));
}
public static void main(String[] args) {
try {
BeautyEyeLNFHelper.launchBeautyEyeLNF();
UIManager.put("RootPane.setupButtonVisible", false);
UI ui = new UI();
} catch (Exception e) {
e.printStackTrace();
}
}
}`