📄 main.java
字号:
/*
* Created on 25-jun-2004
* Copyright (C) 2004 B. Lamot
***********************************************************
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
************************************************************
*
* This class is an example implementation of what a client needs
* to do to connect to Skype.
*/
package net.lamot.java.jskype;
import net.lamot.java.jskype.windows.Messenger;
/**
* @author BaLamot
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class Main {
public static void main(String[] args) {
Messenger msgr = new Messenger();
msgr.initialize();
boolean run=true;
while (run) {
try {
Thread.yield();
Thread.sleep(100000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
run=false;
}
}
msgr.destroy();
System.out.println("Destroy");
}
public void onWindowsMessage() {
System.out.println("Main.onWindowsMessenger");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -