📄 图片_show.java~13~
字号:
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"); 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(); 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.setPreferredSize(new Dimension(59, 27)); jButton1.setText("确定"); jButton1.addActionListener(new 图片_show_jButton1_actionAdapter(this)); tp1.setText(""); this.add(jPanel1, BorderLayout.CENTER); jPanel1.add(jScrollPane1, null); jScrollPane1.getViewport().add(jSplitPane1, null); jSplitPane1.add(jPanel4, JSplitPane.LEFT); jPanel4.add(jButton1, 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); }}class 图片_show_jButton1_actionAdapter implements java.awt.event.ActionListener { 图片_show adaptee; 图片_show_jButton1_actionAdapter(图片_show adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -