?? messageframe.java~1~
字號:
package simpleusers;import javax.swing.*;import java.awt.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class MessageFrame extends JFrame { JScrollPane jScrollPane1 = new JScrollPane(); JTextArea jTextArea1 = new JTextArea(); String msg; public MessageFrame(String msg) { try { this.msg=msg; jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.setTitle("用戶管理系統-信息顯示"); this.getContentPane().setLayout(null); jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); jScrollPane1.setBounds(new Rectangle(30, 24, 266, 270)); jTextArea1.setFont(new java.awt.Font("Dialog", 0, 16)); jTextArea1.setForeground(Color.red); jTextArea1.setText(this.msg); this.getContentPane().add(jScrollPane1, null); jScrollPane1.getViewport().add(jTextArea1, null); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -