相册java源码_电子相册java源码

41528d3028836879cd698677c3999917.gif电子相册java源码

import java.awt.*; import java.awt.FlowLayout; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.util.ArrayList; import javax.imageio.ImageIO; import javax.swing.tree.TreeNode; import javax.swing.tree.TreePath; import javax.swing.tree.DefaultMutableTreeNode; public class ImageShow00{ public static void main(String[] arge){ try {//美化界面像windows UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e){} JFrame frame = new ImageShowFrame (); frame.setVisible(true); //frame.setLayout(null); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } } class ImageShowFrame extends JFrame{ DefaultMutableTreeNode selectNode; JScrollPane p1,p2; JPanel jp = new JPanel(); JLabel jpg,l1; File dangqian_File; JSplitPane admin; JPanel adminJSPJpanel,ppp; JLabel jl; ArrayList list; private JFileChooser chooser; JFileChooser fileChooser = new JFileChooser(); private JLabel label; /*按钮图标*/ private ImageIcon shang= new ImageIcon(“image/shang.jpg“); private ImageIcon open= new ImageIcon(“image/open.png“); private ImageIcon help= new ImageIcon(“image/help.jpg“); private ImageIcon up= new ImageIcon(“image/up.png“); private ImageIcon next= new ImageIcon(“image/next.png“); private ImageIcon move= new ImageIcon(“image/move.png“); private ImageIcon de= new ImageIcon(“image/de.png“); private ImageIcon cope= new ImageIcon(“image/cope.jpg“); private ImageIcon sx= new ImageIcon(“image/sx.png“); private ImageIcon change= new ImageIcon(“image/change.jpg“); private ImageIcon allchange= new ImageIcon(“image/allchange.jpg“); private ImageIcon huan= new ImageIcon(“image/play.png“); private ImageIcon biger= new ImageIcon(“image/big.png“); private ImageIcon smaller= new ImageIcon(“image/small.png“); static int index,index2; static int clicktimesofbigbutton; static double flag2 = 1.0; static boolean flag3 = false; static boolean flag4 = false; static boolean huanFlag; static String currentFilePath; static File currentDirectory; public ImageShowFrame(){ Image logo = null; final String msn= “这个系统用于浏览jpg,jpeg,gif和png图片“+“\n“ +“可以实现基本的看图功能,分别有:“+“\n“ +“上一张,下一张,放大,缩小,删除“+“\n“ +“复制,移动,图片属性,幻灯片“+“\n“ +“重命名和批量重命名“; try { //美化左上角图标 File sourceLogo = new File(“image/win.png“); logo = ImageIO.read(sourceLogo); } catch(IOException e) { } setIconImage(logo); setTitle(“JAVA自制图像浏览器--09版“); setSize(1000,650); label=new JLabel(); label.setHorizontalAlignment(JLabel.CENTER);//水平设置 label.setVerticalAlig

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值