Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有时候会出现透明怎么处理 #15

Open
minggen opened this issue Apr 13, 2018 · 0 comments
Open

有时候会出现透明怎么处理 #15

minggen opened this issue Apr 13, 2018 · 0 comments

Comments

@minggen
Copy link

minggen commented Apr 13, 2018

`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();
	}
    
}

}`

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant