import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JSplitPane; public class fenye1 extends JFrame{ JLabel jl;
JList js;
JSplitPane jp; public static void main(String[] args) {
// TODO Auto-generated method stub
fenye1 f1=new fenye1();
} public fenye1()
{
String [] a={"软件开发","软件测试","数据挖掘"};
jl=new JLabel(new ImageIcon("image/23.jpg"));
jl.setBackground(Color.pink);
jl.setOpaque(true);
js=new JList(a);
jp=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,js,jl);
jp.setOneTouchExpandable(true);
this.add(jp); this.setTitle("担心ss");
this.setSize(,);
this.setLocation(, );
this.setResizable(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true); } }

最新文章

  1. 【算法】(查找你附近的人) GeoHash核心原理解析及代码实现
  2. Spring MVC学习笔记——返回JSON对象
  3. 【集合框架】JDK1.8源码分析之LinkedList(七)
  4. canvas刮刮乐
  5. Jboss中不能正常的解析EL表达式
  6. 判断文件结束,feof……
  7. hihocoder 1237 Farthest Point
  8. c# 数据库缓存依赖
  9. 怎样在Win10下安装ubuntu双系统
  10. 主机和VMware中的Linux如实现共享文件夹
  11. js获取数组中最大值和最小值
  12. Windows Server 2016-系统安装软硬件要求
  13. ES6 模块
  14. 初级PM要做什么
  15. HTTP Status 405 - HTTP method POST is not supported by this URL
  16. intel FPGA使用
  17. ubuntu 无法挂载U盘
  18. Spring面试,IoC和AOP的理解
  19. XAMPP下apache部署网站,多个虚拟机(空间)配置
  20. Java的8种包装类:Wrapper Class

热门文章

  1. 17南宁区域赛 J - Rearrangement 【规律】
  2. iOS 什么是函数式编程
  3. Python学习进程(5)Python语法
  4. vscode常用快捷键及常用设置
  5. [POI2008]砖块Klo
  6. shell的符号总结
  7. USB引脚及定义
  8. C#中的转义字符verbatim string
  9. adb 解说
  10. Spring boot 更改端口的几种方式