File tree Expand file tree Collapse file tree 2 files changed +86
-0
lines changed Expand file tree Collapse file tree 2 files changed +86
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .vpcs .boot ;
2
+ import java .awt .event .KeyEvent ;
3
+ import java .awt .event .KeyListener ;
4
+ import java .awt .event .MouseEvent ;
5
+ import java .awt .event .MouseListener ;
6
+ import javax .swing .JApplet ;
7
+
8
+ public class App extends JApplet implements MouseListener , KeyListener {
9
+ private static final long serialVersionUID = 1L ;
10
+ public void init (){
11
+ }
12
+
13
+ @ Override
14
+ public void keyPressed (KeyEvent arg0 ) {
15
+ }
16
+ @ Override
17
+ public void keyReleased (KeyEvent arg0 ) {
18
+
19
+ }
20
+ @ Override
21
+ public void keyTyped (KeyEvent arg0 ) {
22
+
23
+ }
24
+ @ Override
25
+ public void mouseClicked (MouseEvent e ) {
26
+
27
+ }
28
+ @ Override
29
+ public void mouseEntered (MouseEvent e ) {
30
+
31
+ }
32
+ @ Override
33
+ public void mouseExited (MouseEvent e ) {
34
+
35
+ }
36
+ @ Override
37
+ public void mousePressed (MouseEvent e ) {
38
+
39
+ }
40
+ @ Override
41
+ public void mouseReleased (MouseEvent e ) {
42
+
43
+ }
44
+ }
Original file line number Diff line number Diff line change
1
+ package org .vpcs .boot ;
2
+ import java .awt .event .WindowAdapter ;
3
+ import java .awt .event .WindowEvent ;
4
+ import javax .swing .JFrame ;
5
+ public class Application {
6
+ public static App NE ;
7
+ @ SuppressWarnings ({"deprecation" , "resource" , "unused" })
8
+ public static void main (String args []) throws Exception {
9
+ NE = new App ();
10
+ JFrame frame = new JFrame ("VPCS ¿ªÔ´ÔËά¼Ü¹¹" );
11
+ //frame.setIconImage(NE.logo.getImage());
12
+ frame .setLayout (null );
13
+ frame .setSize (1340 ,770 +40 );
14
+ frame .resize (1340 , 770 +40 );
15
+ frame .setResizable (false );
16
+ frame .add (NE );
17
+ NE .setBounds (0 , 0 , 1340 , 770 +50 );
18
+ NE .init ();
19
+ NE .start ();
20
+ frame .setVisible (true );
21
+ frame .show ();
22
+ frame .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
23
+ frame .addWindowListener (new WindowAdapter () {
24
+ public void windowClosing (WindowEvent windowevent ) {
25
+ try {
26
+ System .out .println ("pre closing...3" );
27
+ NE .stop ();
28
+ frame .removeAll ();
29
+ System .out .println ("closed" );
30
+ } catch (Exception e ) {
31
+ System .out .println ("close error" );
32
+ NE = null ;
33
+ e .printStackTrace ();
34
+ }
35
+ frame .removeAll ();
36
+ frame .disable ();
37
+ System .gc ();
38
+ System .exit (0 );
39
+ }
40
+ });
41
+ }
42
+ }
You can’t perform that action at this time.
0 commit comments