⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainframe_aboutboxpanel1.java

📁 java写的模仿windows上的挖雷的游戏
💻 JAVA
字号:
//package mine;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.Border;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import java.awt.Color;

public class MainFrame_AboutBoxPanel1 extends JPanel 
{
  Border border = BorderFactory.createEtchedBorder();
  GridBagLayout mainLayout = new GridBagLayout();
  JLabel companyLabel = new JLabel();
  JLabel copyrightLabel = new JLabel();
  JLabel authorLabel = new JLabel();
  JLabel titleLabel = new JLabel();

  public MainFrame_AboutBoxPanel1()
  {
    try
    {
      jbInit();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }

  }

  private void jbInit() throws Exception
  {
    
    this.setLayout(mainLayout);
    this.setBorder(border);
    this.setBackground(new Color(171, 197, 212));
    titleLabel.setText("Title  :  Mine Test");
    authorLabel.setText("Author : hrh");
    copyrightLabel.setText("Copyright  (C)  2002,JUNE");
    companyLabel.setText("Company  :  Schoollink Service Ltd. Co.");
    this.add(titleLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 15, 0, 15), 0, 0));
    this.add(authorLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
    this.add(copyrightLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
    this.add(companyLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 15, 5, 15), 0, 0));
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -