?? sort.java
字號:
package client;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
import com.swtdesigner.SwingResourceManager;
import javax.swing.ImageIcon;
public class Sort extends JFrame {
/**
* Launch the application
* @param args
*/
ImageIcon img=new ImageIcon("E:\\image\\gf.jpg");
// public static void main(String args[]) {
// try {
// Sort frame = new Sort();
// frame.setVisible(true);
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
/**
* Create the frame
*/
public Sort() {
super();
setIconImage(SwingResourceManager.getImage(Sort.class, "/LOGO.jpg"));
getContentPane().setLayout(null);
setBounds(170, 80, 831, 643);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
setTitle("借閱排行");
final JLabel label = new JLabel(img);
label.setBounds(0, 0, 838, 643);
getContentPane().add(label);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -