⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabbedpaneframe.java

📁 这是我们写的考试系统!!java编写的!!不是很大!!希望有用
💻 JAVA
字号:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;



public class TabbedPaneFrame{
	
	public static void main(String[] args){
		
		JFrame frame=new JFrame("TabbedPaneFrame");
		JTabbedPane tabby=new JTabbedPane();
		
		
		
		JPanel controls=new JPanel();
		controls.add(new JLabel("Servic"));
		JList list= new JList(
				new String[]{"Web server","FTP server"});
		list.setBorder(BorderFactory.createEtchedBorder());
		
		
		controls.add(list);
		controls.add(new JButton("Strat"));
		
		String filename="3.jpg";
		
		JLabel image=new JLabel(new ImageIcon(filename));
		
		JComponent picture=new JScrollPane(image);
		tabby.addTab("Controls",controls);
		tabby.addTab("Picture",picture);
		
		frame.getContentPane().add(tabby);
		frame.setSize(200,200);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);	
		
				
	}
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -