📄 图片_show.java~22~
字号:
package 图片;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import com.zdsoft.gui.*;import com.zdsoft.datacenter.ASDatacenter;import com.zdsoft.datastore.ASDatastore;import javax.swing.*;import java.awt.*;import java.awt.event.*;import ZQ.*;public class 图片_show extends ASPanel{ Icon a = new ImageIcon("湖南师范大学.GIF"); Icon b = new ImageIcon("华南理工大学.GIF"); Icon c = new ImageIcon("上海外语学院.GIF"); Icon d = new ImageIcon("四川大学.GIF"); Icon z = new ImageIcon("武汉大学美女.GIF"); Icon f = new ImageIcon("美女.gif"); Icon g = new ImageIcon("美女1.GIF"); Icon h = new ImageIcon("美女2.GIF"); Icon i = new ImageIcon("美女3.GIF"); Icon j = new ImageIcon("美女4.GIF"); Icon k = new ImageIcon("美女5.GIF"); Icon l = new ImageIcon("美女6.GIF"); Icon m = new ImageIcon("美女7.GIF"); Icon n = new ImageIcon("美女8.GIF"); Icon u = new ImageIcon("美女9.GIF"); Icon v = new ImageIcon("美女10.GIF"); Icon w = new ImageIcon("美女11.GIF"); Icon x = new ImageIcon("美女12.GIF"); Icon y = new ImageIcon("美女13.GIF"); JPanel jPanel1 = new JPanel(); JPanel jPanel2 = new JPanel(); JPanel jPanel3 = new JPanel(); JLabel jLabel1 = new JLabel(); JScrollPane jScrollPane1 = new JScrollPane(); JSplitPane jSplitPane1 = new JSplitPane(); JPanel jPanel4 = new JPanel(); JPanel jPanel5 = new JPanel(); FlowLayout flowLayout1 = new FlowLayout(); JButton jButton1 = new JButton(); JLabel tp1 = new JLabel(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JButton jButton4 = new JButton(); JButton jButton5 = new JButton(); JButton jButton6 = new JButton(); JButton jButton7 = new JButton(); JButton jButton8 = new JButton(); JButton jButton9 = new JButton(); JButton jButton10 = new JButton(); JButton jButton11 = new JButton(); JButton jButton12 = new JButton(); JButton jButton13 = new JButton(); JButton jButton15 = new JButton(); JButton jButton16 = new JButton(); JButton jButton17 = new JButton(); JButton jButton18 = new JButton(); JButton jButton19 = new JButton(); JButton jButton14 = new JButton(); public 图片_show() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.setPreferredSize(new Dimension(600, 600)); jLabel1.setFont(new java.awt.Font("Serif", 0, 11)); jLabel1.setText("版权由李江兵所有"); jScrollPane1.setPreferredSize(new Dimension(600, 580)); jPanel4.setPreferredSize(new Dimension(100, 270)); jPanel4.setLayout(flowLayout1); jPanel5.setPreferredSize(new Dimension(400, 400)); jButton1.setFont(new java.awt.Font("Serif", 0, 12)); jButton1.setForeground(Color.magenta); jButton1.setMaximumSize(new Dimension(65, 27)); jButton1.setPreferredSize(new Dimension(70, 27)); jButton1.setText("图片1"); jButton1.addActionListener(new 图片_show_jButton1_actionAdapter(this)); tp1.setText(""); jButton2.setFont(new java.awt.Font("Serif", 0, 12)); jButton2.setForeground(Color.magenta); jButton2.setMaximumSize(new Dimension(59, 27)); jButton2.setMinimumSize(new Dimension(59, 27)); jButton2.setPreferredSize(new Dimension(70, 27)); jButton2.setText("图片2"); jButton2.addActionListener(new 图片_show_jButton2_actionAdapter(this)); jButton3.setFont(new java.awt.Font("Serif", 0, 12)); jButton3.setForeground(Color.magenta); jButton3.setMaximumSize(new Dimension(59, 27)); jButton3.setMinimumSize(new Dimension(59, 27)); jButton3.setPreferredSize(new Dimension(70, 27)); jButton3.setText("图片3"); jButton3.addActionListener(new 图片_show_jButton3_actionAdapter(this)); jButton4.setFont(new java.awt.Font("Serif", 0, 12)); jButton4.setForeground(Color.magenta); jButton4.setMaximumSize(new Dimension(59, 27)); jButton4.setMinimumSize(new Dimension(59, 27)); jButton4.setPreferredSize(new Dimension(70, 27)); jButton4.setText("图片4"); jButton4.addActionListener(new 图片_show_jButton4_actionAdapter(this)); jButton5.setFont(new java.awt.Font("Serif", 0, 12)); jButton5.setForeground(Color.magenta); jButton5.setMaximumSize(new Dimension(59, 27)); jButton5.setMinimumSize(new Dimension(59, 27)); jButton5.setPreferredSize(new Dimension(70, 27)); jButton5.setText("图片6"); jButton5.addActionListener(new 图片_show_jButton5_actionAdapter(this)); jButton6.setFont(new java.awt.Font("Serif", 0, 12)); jButton6.setForeground(Color.magenta); jButton6.setMaximumSize(new Dimension(59, 27)); jButton6.setMinimumSize(new Dimension(59, 27)); jButton6.setPreferredSize(new Dimension(70, 27)); jButton6.setText("图片7"); jButton6.addActionListener(new 图片_show_jButton6_actionAdapter(this)); jButton7.setFont(new java.awt.Font("Serif", 0, 12)); jButton7.setForeground(Color.magenta); jButton7.setMaximumSize(new Dimension(59, 27)); jButton7.setMinimumSize(new Dimension(59, 27)); jButton7.setPreferredSize(new Dimension(70, 27)); jButton7.setText("图片9"); jButton7.addActionListener(new 图片_show_jButton7_actionAdapter(this)); jButton8.setFont(new java.awt.Font("Serif", 0, 12)); jButton8.setForeground(Color.magenta); jButton8.setMaximumSize(new Dimension(59, 27)); jButton8.setMinimumSize(new Dimension(59, 27)); jButton8.setPreferredSize(new Dimension(70, 27)); jButton8.setText("图片11"); jButton8.addActionListener(new 图片_show_jButton8_actionAdapter(this)); jButton9.setFont(new java.awt.Font("Serif", 0, 12)); jButton9.setForeground(Color.magenta); jButton9.setMaximumSize(new Dimension(59, 27)); jButton9.setMinimumSize(new Dimension(59, 27)); jButton9.setPreferredSize(new Dimension(70, 27)); jButton9.setText("图片13"); jButton9.addActionListener(new 图片_show_jButton9_actionAdapter(this)); jButton10.setFont(new java.awt.Font("Serif", 0, 12)); jButton10.setForeground(Color.magenta); jButton10.setMaximumSize(new Dimension(59, 27)); jButton10.setMinimumSize(new Dimension(59, 27)); jButton10.setPreferredSize(new Dimension(70, 27)); jButton10.setText("图片14"); jButton10.addActionListener(new 图片_show_jButton10_actionAdapter(this)); jButton11.setFont(new java.awt.Font("Serif", 0, 12)); jButton11.setForeground(Color.magenta); jButton11.setMaximumSize(new Dimension(59, 27)); jButton11.setMinimumSize(new Dimension(59, 27)); jButton11.setPreferredSize(new Dimension(70, 27)); jButton11.setText("图片15"); jButton11.addActionListener(new 图片_show_jButton11_actionAdapter(this)); jButton12.setFont(new java.awt.Font("Serif", 0, 12)); jButton12.setForeground(Color.magenta); jButton12.setMaximumSize(new Dimension(59, 27)); jButton12.setMinimumSize(new Dimension(59, 27)); jButton12.setPreferredSize(new Dimension(70, 27)); jButton12.setText("图片16"); jButton12.addActionListener(new 图片_show_jButton12_actionAdapter(this)); jButton13.setFont(new java.awt.Font("Serif", 0, 12)); jButton13.setForeground(Color.magenta); jButton13.setMaximumSize(new Dimension(59, 27)); jButton13.setMinimumSize(new Dimension(59, 27)); jButton13.setPreferredSize(new Dimension(70, 27)); jButton13.setText("图片18"); jButton13.addActionListener(new 图片_show_jButton13_actionAdapter(this)); jButton15.setFont(new java.awt.Font("Serif", 0, 12)); jButton15.setForeground(Color.magenta); jButton15.setMaximumSize(new Dimension(59, 27)); jButton15.setMinimumSize(new Dimension(59, 27)); jButton15.setPreferredSize(new Dimension(70, 27)); jButton15.setText("图片17"); jButton15.addActionListener(new 图片_show_jButton15_actionAdapter(this)); jButton16.setFont(new java.awt.Font("Serif", 0, 12)); jButton16.setForeground(Color.magenta); jButton16.setMaximumSize(new Dimension(59, 27)); jButton16.setMinimumSize(new Dimension(59, 27)); jButton16.setPreferredSize(new Dimension(70, 27)); jButton16.setText("图片12"); jButton16.addActionListener(new 图片_show_jButton16_actionAdapter(this)); jButton17.setFont(new java.awt.Font("Serif", 0, 12)); jButton17.setForeground(Color.magenta); jButton17.setMaximumSize(new Dimension(59, 27)); jButton17.setMinimumSize(new Dimension(59, 27)); jButton17.setPreferredSize(new Dimension(70, 27)); jButton17.setText("图片8"); jButton17.addActionListener(new 图片_show_jButton17_actionAdapter(this)); jButton18.setFont(new java.awt.Font("Serif", 0, 12)); jButton18.setForeground(Color.magenta); jButton18.setMaximumSize(new Dimension(59, 27)); jButton18.setMinimumSize(new Dimension(59, 27)); jButton18.setPreferredSize(new Dimension(70, 27)); jButton18.setText("图片5"); jButton18.addActionListener(new 图片_show_jButton18_actionAdapter(this)); jButton19.setFont(new java.awt.Font("Serif", 0, 12)); jButton19.setForeground(Color.magenta); jButton19.setMaximumSize(new Dimension(59, 27)); jButton19.setMinimumSize(new Dimension(59, 27)); jButton19.setPreferredSize(new Dimension(70, 27)); jButton19.setText("图片10"); jButton19.addActionListener(new 图片_show_jButton19_actionAdapter(this)); jButton14.setFont(new java.awt.Font("Serif", 0, 12)); jButton14.setForeground(Color.magenta); jButton14.setMaximumSize(new Dimension(65, 27)); jButton14.setMinimumSize(new Dimension(65, 27)); jButton14.setPreferredSize(new Dimension(70, 27)); jButton14.setText("图片19"); jButton14.addActionListener(new 图片_show_jButton14_actionAdapter(this)); this.add(jPanel1, BorderLayout.CENTER); jPanel1.add(jScrollPane1, null); jScrollPane1.getViewport().add(jSplitPane1, null); jSplitPane1.add(jPanel4, JSplitPane.LEFT); jPanel4.add(jButton1, null); jPanel4.add(jButton2, null); jPanel4.add(jButton3, null); jPanel4.add(jButton4, null); jPanel4.add(jButton18, null); jPanel4.add(jButton5, null); jPanel4.add(jButton6, null); jPanel4.add(jButton17, null); jPanel4.add(jButton7, null); jPanel4.add(jButton19, null); jPanel4.add(jButton8, null); jPanel4.add(jButton16, null); jPanel4.add(jButton9, null); jPanel4.add(jButton10, null); jPanel4.add(jButton11, null); jPanel4.add(jButton12, null); jPanel4.add(jButton15, null); jPanel4.add(jButton14, null); jPanel4.add(jButton13, null); jSplitPane1.add(jPanel5, JSplitPane.RIGHT); jPanel5.add(tp1, null); this.add(jPanel2, BorderLayout.SOUTH); jPanel2.add(jLabel1, null); this.add(jPanel3, BorderLayout.NORTH); } void jButton1_actionPerformed(ActionEvent e) { tp1.setIcon(a); } void jButton4_actionPerformed(ActionEvent e) { tp1.setIcon(b); } void jButton18_actionPerformed(ActionEvent e) { tp1.setIcon(c); } void jButton5_actionPerformed(ActionEvent e) { tp1.setIcon(d); } void jButton6_actionPerformed(ActionEvent e) { tp1.setIcon(w); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -