📄 defaule_show.java~25~
字号:
package main_frame;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.BorderLayout;
/**
* <p>Title:勿忘软件,lzquan </p>
*
* <p>Description:勿忘软件 </p>
*
* <p>Copyright: 泉水依然 Copyright (c) 2007-03-20</p>
*
* <p>Company: 泉水依然</p>
*
* @author :李政权,湖南农业大学科学技术师范学院04计算机教育班.
*
* QQ:25241418
*/
public class defaule_show extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JPanel jPanel1 = new JPanel();
JButton jButton1 = new JButton();
BorderLayout borderLayout1 = new BorderLayout();
JLabel jLabel1 = new JLabel();
public defaule_show() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setSize(500,300);
getContentPane().setLayout(xYLayout1);
jLabel1.setText("jLabel1");
this.getContentPane().add(jPanel1, new XYConstraints( 0, 0, 500, 260));
jPanel1.add(jButton1, java.awt.BorderLayout.NORTH);
jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);
jButton1.setText("jButton1");
jPanel1.setBackground(new Color(236, 233, 255));
jPanel1.setLayout(borderLayout1);
jLabel1.setIcon(new ImageIcon("Teacher.jpg"));
}
public JPanel getDefaultShow(){
return this.jPanel1;
}
public static void main(String[] args) {
defaule_show defaule_show = new defaule_show();
defaule_show.setSize(500,300);
defaule_show.setLocationRelativeTo(null);
defaule_show.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -