📄 firstpic.java
字号:
package soft1;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import com.borland.jbcl.layout.PaneLayout;
import com.borland.jbcl.layout.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import soft1Method.*;
public class FirstPic extends JFrame {
JButton jButton1 = new JButton();
PaneLayout paneLayout1 = new PaneLayout();
MiddleLoc midd=new MiddleLoc();
Icon img2= new ImageIcon("src/Pic/LandPic.GIF");
public FirstPic() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
setSize(new Dimension(588,259));
getContentPane().setLayout(paneLayout1);
jButton1.addActionListener(new FirstPic_jButton1_actionAdapter(this));
jButton1.setIcon(img2);
this.getContentPane().add(jButton1,
new PaneConstraints("jButton1", "jButton1",
PaneConstraints.ROOT, 1.0F));
this.setUndecorated(true);
}
public static void main(String[] args) {
FirstPic firstpic = new FirstPic();
}
public void jButton1_actionPerformed(ActionEvent e) {
Login frame = new Login();
midd.setLocation1(frame);
this.setVisible(false);
}
}
class FirstPic_jButton1_actionAdapter implements ActionListener {
private FirstPic adaptee;
FirstPic_jButton1_actionAdapter(FirstPic adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -