📄 aboutauthorframe.java
字号:
package com.topking.rt.ui;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.IOException;
import javax.swing.ImageIcon;
/*
* AboutAuthorFrame.java
*
* Created on 2009年2月12日, 上午11:04
*/
/**
*
* @author lzkj
*/
public class AboutAuthorFrame extends javax.swing.JFrame{
/** Creates new form AboutAuthorFrame */
public AboutAuthorFrame() {
setTitle("About Author");
setResizable(false);
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
l_image = new javax.swing.JLabel(new ImageIcon(this.getClass().getClassLoader().getResource("com/topking/rt/ui/images/tdcq.gif")));
l_page = new javax.swing.JLabel();
bt_ok = new javax.swing.JButton();
bt_ok.setVisible(false);
l_page.addMouseListener(new MouseAdapter(){
public void mouseEntered(MouseEvent e){
l_page.setForeground(Color.red);
l_page.setFont(herfFont);
l_page.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
public void mousePressed(MouseEvent e){
l_page.setForeground(Color.red);
l_page.setFont(herfFont);
l_page.setCursor(herfCursor);
Runtime rt = Runtime.getRuntime();
try {
rt.exec("explorer http://jacky68147527.javaeye.com");
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
public void mouseExited(MouseEvent e){
l_page.setForeground(Color.black);
l_page.setFont(normalFont);
l_page.setCursor(defaultCursor);
}
});
// setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
l_page.setText("Page:http://jacky68147527.javaeye.com");
bt_ok.setText("OK");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(l_image, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(bt_ok, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(l_page, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(l_image, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(44, Short.MAX_VALUE)
.addComponent(l_page)
.addGap(42, 42, 42)
.addComponent(bt_ok))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new AboutAuthorFrame().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton bt_ok;
private javax.swing.JLabel l_image;
private javax.swing.JLabel l_page;
private Font herfFont = new Font("Courier New",0,12);
private Font normalFont = new Font("宋体",0,12);
private Cursor defaultCursor = new Cursor(Cursor.DEFAULT_CURSOR);
private Cursor herfCursor = new Cursor(Cursor.HAND_CURSOR);
// End of variables declaration
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -