We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
`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(); } }
}`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`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 {
// container.setLayout(new BorderLayout());
container.add(new JPanel().add(tab));
}`
The text was updated successfully, but these errors were encountered: