[Java] 图书馆 →→→→→进入此内容的聊天室

来自 , 2019-12-06, 写在 Java, 查看 109 次.
URL http://www.code666.cn/view/0c8ce551
  1. package com.HPioneer.view;
  2.  
  3. import java.awt.EventQueue;
  4.  
  5. import javax.swing.JInternalFrame;
  6. import javax.swing.GroupLayout;
  7. import javax.swing.GroupLayout.Alignment;
  8. import java.awt.Color;
  9. import javax.swing.JLabel;
  10. import javax.swing.ImageIcon;
  11. import javax.swing.LayoutStyle.ComponentPlacement;
  12. import java.awt.Font;
  13.  
  14. public class HPioneer1234InterFrm extends JInternalFrame {
  15.  
  16.         /**
  17.          * Launch the application.
  18.          */
  19.         public static void main(String[] args) {
  20.                 EventQueue.invokeLater(new Runnable() {
  21.                         public void run() {
  22.                                 try {
  23.                                         HPioneer1234InterFrm frame = new HPioneer1234InterFrm();
  24.                                         frame.setVisible(true);
  25.                                 } catch (Exception e) {
  26.                                         e.printStackTrace();
  27.                                 }
  28.                         }
  29.                 });
  30.         }
  31.  
  32.         /**
  33.          * Create the frame.
  34.          */
  35.         public HPioneer1234InterFrm() {
  36.                 getContentPane().setBackground(new Color(255, 255, 224));
  37.                 getContentPane().setForeground(new Color(255, 255, 224));
  38.                
  39.                 JLabel lblNewLabel = new JLabel("");
  40.                 lblNewLabel.setIcon(new ImageIcon(HPioneer1234InterFrm.class.getResource("/images/HPioneer.jpg")));
  41.                
  42.                 JLabel lblNewLabel_1 = new JLabel("HPioneer     ");
  43.                 lblNewLabel_1.setFont(new Font("Estrangelo Edessa", Font.PLAIN, 15));
  44.                
  45.                 JLabel lblNewLabel_2 = new JLabel("涓�鐩村湪杩介��");
  46.                 GroupLayout groupLayout = new GroupLayout(getContentPane());
  47.                 groupLayout.setHorizontalGroup(
  48.                         groupLayout.createParallelGroup(Alignment.LEADING)
  49.                                 .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 478, GroupLayout.PREFERRED_SIZE)
  50.                                 .addGroup(groupLayout.createSequentialGroup()
  51.                                         .addGap(131)
  52.                                         .addComponent(lblNewLabel_1)
  53.                                         .addGap(69)
  54.                                         .addComponent(lblNewLabel_2))
  55.                 );
  56.                 groupLayout.setVerticalGroup(
  57.                         groupLayout.createParallelGroup(Alignment.LEADING)
  58.                                 .addGroup(groupLayout.createSequentialGroup()
  59.                                         .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 276, GroupLayout.PREFERRED_SIZE)
  60.                                         .addPreferredGap(ComponentPlacement.RELATED)
  61.                                         .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
  62.                                                 .addComponent(lblNewLabel_1)
  63.                                                 .addComponent(lblNewLabel_2))
  64.                                         .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  65.                 );
  66.                 getContentPane().setLayout(groupLayout);
  67.                 setIconifiable(true);
  68.                 setClosable(true);
  69.                 setTitle("鍏充簬HPioneer");
  70.                 setBounds(100, 100, 489, 339);
  71.  
  72.         }
  73. }
  74.  

回复 "图书馆"

这儿你可以回复上面这条便签

captcha