trylookandfeel.java
来自「简单的奖学金评定系统」· Java 代码 · 共 37 行
JAVA
37 行
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
public class TryLookAndFeel extends JFrame
{
private static TryLookAndFeel f;
public TryLookAndFeel()
{
setJMenuBar(new JMenuDemo());
//setForeground(Color.blue);
//setBackground(Color.magenta);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle("奖学金评定系统");
setSize(500, 500);
setVisible(true);//自己写
}
public static void main(String args[])
{
try
{
//UIManager.setLookAndFeel("com.sun.java.swing.plaf,windows.WindowsLookAndFeel");
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e)
{
}
f=new TryLookAndFeel();
f.show();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?