📄 图片库_show.java~33~
字号:
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 c = new ImageIcon("上海外语学院.GIF"); JPanel jPanel1 = new JPanel(); JPanel jPanel2 = new JPanel(); JPanel jPanel3 = new JPanel(); JSplitPane jSplitPane1 = new JSplitPane(); JPanel jPanel4 = new JPanel(); JPanel jPanel5 = new JPanel(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JButton jButton9 = new JButton(); JButton jButton10 = new JButton(); JButton jButton11 = new JButton(); JButton jButton12 = new JButton(); JButton jButton13 = new JButton(); JButton jButton14 = new JButton(); JButton jButton15 = new JButton(); JButton jButton16 = new JButton(); JButton jButton17 = new JButton(); JButton jButton18 = new JButton(); JButton jButton19 = new JButton(); JButton jButton20 = new JButton(); JButton jButton21 = new JButton(); JButton jButton22 = new JButton(); JButton jButton23 = new JButton(); JButton jButton24 = new JButton(); JButton jButton25 = new JButton(); JButton jButton26 = new JButton(); JButton jButton27 = new JButton(); JButton jButton28 = new JButton(); JButton jButton29 = new JButton(); JButton jButton30 = new JButton(); FlowLayout flowLayout1 = new FlowLayout(); JScrollPane jScrollPane1 = new JScrollPane(); JLabel tp1 = new JLabel(); public 图片库_show() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { jPanel3.setPreferredSize(new Dimension(0, 0)); jPanel2.setPreferredSize(new Dimension(0, 0)); jPanel1.setPreferredSize(new Dimension(700, 700)); jPanel4.setDebugGraphicsOptions(0); jPanel4.setMinimumSize(new Dimension(60, 675)); jPanel4.setPreferredSize(new Dimension(0, 35)); jPanel4.setLayout(flowLayout1); jPanel5.setPreferredSize(new Dimension(780, 680)); this.setPreferredSize(new Dimension(800, 800)); jButton1.setText("jButton1"); jButton2.setText("jButton2"); jButton3.setText("jButton3"); jButton9.setFont(new java.awt.Font("Serif", 0, 12)); jButton9.setForeground(Color.magenta); jButton9.setMaximumSize(new Dimension(71, 27)); jButton9.setMinimumSize(new Dimension(71, 27)); jButton9.setPreferredSize(new Dimension(71, 27)); jButton9.setText("图片14"); jButton10.setFont(new java.awt.Font("Serif", 0, 12)); jButton10.setForeground(Color.magenta); jButton10.setMaximumSize(new Dimension(71, 27)); jButton10.setMinimumSize(new Dimension(71, 27)); jButton10.setPreferredSize(new Dimension(71, 27)); jButton10.setText("图片15"); jButton11.setFont(new java.awt.Font("Serif", 0, 12)); jButton11.setForeground(Color.magenta); jButton11.setMaximumSize(new Dimension(71, 27)); jButton11.setMinimumSize(new Dimension(71, 27)); jButton11.setPreferredSize(new Dimension(71, 27)); jButton11.setText("图片15"); jButton12.setFont(new java.awt.Font("Serif", 0, 12)); jButton12.setForeground(Color.magenta); jButton12.setMaximumSize(new Dimension(71, 27)); jButton12.setMinimumSize(new Dimension(71, 27)); jButton12.setPreferredSize(new Dimension(71, 27)); jButton12.setText("图片16"); jButton13.setFont(new java.awt.Font("Serif", 0, 12)); jButton13.setForeground(Color.magenta); jButton13.setMaximumSize(new Dimension(71, 27)); jButton13.setMinimumSize(new Dimension(71, 27)); jButton13.setPreferredSize(new Dimension(71, 27)); jButton13.setText("图片17"); jButton14.setFont(new java.awt.Font("Serif", 0, 12)); jButton14.setForeground(Color.magenta); jButton14.setMaximumSize(new Dimension(71, 27)); jButton14.setMinimumSize(new Dimension(71, 27)); jButton14.setPreferredSize(new Dimension(71, 27)); jButton14.setText("图片18"); jButton15.setFont(new java.awt.Font("Serif", 0, 12)); jButton15.setForeground(Color.magenta); jButton15.setMaximumSize(new Dimension(71, 27)); jButton15.setMinimumSize(new Dimension(71, 27)); jButton15.setPreferredSize(new Dimension(71, 27)); jButton15.setText("图片19"); jButton16.setFont(new java.awt.Font("Serif", 0, 12)); jButton16.setForeground(Color.magenta); jButton16.setMaximumSize(new Dimension(71, 27)); jButton16.setMinimumSize(new Dimension(71, 27)); jButton16.setPreferredSize(new Dimension(71, 27)); jButton16.setText("图片20"); jButton17.setFont(new java.awt.Font("Serif", 0, 12)); jButton17.setForeground(Color.magenta); jButton17.setMaximumSize(new Dimension(71, 27)); jButton17.setMinimumSize(new Dimension(71, 27)); jButton17.setPreferredSize(new Dimension(71, 27)); jButton17.setText("图片21"); jButton17.addActionListener(new 图片库_show_jButton17_actionAdapter(this)); jButton18.setFont(new java.awt.Font("Serif", 0, 12)); jButton18.setForeground(Color.magenta); jButton18.setText("图片1"); jButton19.setFont(new java.awt.Font("Serif", 0, 12)); jButton19.setForeground(Color.magenta); jButton19.setText("图片2"); jButton20.setFont(new java.awt.Font("Serif", 0, 12)); jButton20.setForeground(Color.magenta); jButton20.setText("图片3"); jButton21.setFont(new java.awt.Font("Serif", 0, 12)); jButton21.setForeground(Color.magenta); jButton21.setText("图片4"); jButton22.setFont(new java.awt.Font("Serif", 0, 12)); jButton22.setForeground(Color.magenta); jButton22.setText("图片5"); jButton23.setFont(new java.awt.Font("Serif", 0, 12)); jButton23.setForeground(Color.magenta); jButton23.setText("图片6"); jButton24.setFont(new java.awt.Font("Serif", 0, 12)); jButton24.setForeground(Color.magenta); jButton24.setText("图片7"); jButton25.setFont(new java.awt.Font("Serif", 0, 12)); jButton25.setForeground(Color.magenta); jButton25.setText("图片8"); jButton26.setFont(new java.awt.Font("Serif", 0, 12)); jButton26.setForeground(Color.magenta); jButton26.setText("图片9"); jButton27.setFont(new java.awt.Font("Serif", 0, 12)); jButton27.setForeground(Color.magenta); jButton27.setText("图片10"); jButton28.setFont(new java.awt.Font("Serif", 0, 12)); jButton28.setForeground(Color.magenta); jButton28.setText("图片11"); jButton29.setFont(new java.awt.Font("Serif", 0, 12)); jButton29.setForeground(Color.magenta); jButton29.setText("图片12"); jButton30.setFont(new java.awt.Font("Serif", 0, 12)); jButton30.setForeground(Color.magenta); jButton30.setText("图片13"); tp1.setText("jLabel1"); jPanel4.add(jButton18, null); jPanel4.add(jButton19, null); jPanel4.add(jButton20, null); jPanel4.add(jButton21, null); jPanel4.add(jButton22, null); jPanel4.add(jButton23, null); jPanel4.add(jButton24, null); jPanel4.add(jButton25, null); jPanel4.add(jButton26, null); jPanel4.add(jButton27, null); jPanel4.add(jButton28, null); jPanel4.add(jButton29, null); jPanel4.add(jButton30, null); this.add(jPanel1, BorderLayout.CENTER); jPanel1.add(jSplitPane1, null); jSplitPane1.add(jPanel4, JSplitPane.LEFT); jPanel4.add(jButton9, null); jPanel4.add(jButton10, null); jPanel4.add(jButton11, null); jPanel4.add(jButton12, null); jPanel4.add(jButton13, null); jPanel4.add(jButton14, null); jPanel4.add(jButton15, null); jPanel4.add(jButton16, null); jPanel4.add(jButton17, null); jSplitPane1.add(jPanel5, JSplitPane.RIGHT); jPanel5.add(jScrollPane1, null); jScrollPane1.getViewport().add(tp1, null); this.add(jPanel2, BorderLayout.SOUTH); this.add(jPanel3, BorderLayout.NORTH); } void jButton17_actionPerformed(ActionEvent e) { tp1.setIcon(c); }}class 图片库_show_jButton17_actionAdapter implements java.awt.event.ActionListener { 图片库_show adaptee; 图片库_show_jButton17_actionAdapter(图片库_show adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton17_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -