图书馆程序java代码_图书馆 - java代码库 - 云代码

[java]代码库package com.HPioneer.view;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;

import javax.swing.GroupLayout;

import javax.swing.GroupLayout.Alignment;

import java.awt.Color;

import javax.swing.JLabel;

import javax.swing.ImageIcon;

import javax.swing.LayoutStyle.ComponentPlacement;

import java.awt.Font;

public class HPioneer1234InterFrm extends JInternalFrame {

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

HPioneer1234InterFrm frame = new HPioneer1234InterFrm();

frame.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

}

}

});

}

/**

* Create the frame.

*/

public HPioneer1234InterFrm() {

getContentPane().setBackground(new Color(255, 255, 224));

getContentPane().setForeground(new Color(255, 255, 224));

JLabel lblNewLabel = new JLabel("");

lblNewLabel.setIcon(new ImageIcon(HPioneer1234InterFrm.class.getResource("/images/HPioneer.jpg")));

JLabel lblNewLabel_1 = new JLabel("HPioneer ");

lblNewLabel_1.setFont(new Font("Estrangelo Edessa", Font.PLAIN, 15));

JLabel lblNewLabel_2 = new JLabel("涓�鐩村湪杩介��");

GroupLayout groupLayout = new GroupLayout(getContentPane());

groupLayout.setHorizontalGroup(

groupLayout.createParallelGroup(Alignment.LEADING)

.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 478, GroupLayout.PREFERRED_SIZE)

.addGroup(groupLayout.createSequentialGroup()

.addGap(131)

.addComponent(lblNewLabel_1)

.addGap(69)

.addComponent(lblNewLabel_2))

);

groupLayout.setVerticalGroup(

groupLayout.createParallelGroup(Alignment.LEADING)

.addGroup(groupLayout.createSequentialGroup()

.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 276, GroupLayout.PREFERRED_SIZE)

.addPreferredGap(ComponentPlacement.RELATED)

.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)

.addComponent(lblNewLabel_1)

.addComponent(lblNewLabel_2))

.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

);

getContentPane().setLayout(groupLayout);

setIconifiable(true);

setClosable(true);

setTitle("鍏充簬HPioneer");

setBounds(100, 100, 489, 339);

}

}

694748ed64b9390909c0d88230893790.png


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部