`
futrueboy
  • 浏览: 83702 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
// crt_mbtowc.c /* Illustrates the behavior of the mbtowc function */ #include <stdlib.h> #include <stdio.h> int main( void ) { int i; char *pmbc = (char *)malloc( sizeof( char ) ); wchar_t wc = L'a'; wchar_t *pwcnull = NULL; wchar_t *p ...
#include <windows.h> #include <stdio.h> //function: charTowchar //purpose:char to WCHAR 、wchar_t、LPWSTR etc void charTowchar(const char *chr, wchar_t *wchar, int size) { MultiByteToWideChar( CP_ACP, 0, chr, strlen(chr)+1, wchar, size/sizeof(wchar[0]) ); } //functi ...
import java.io.*; import java.util.*; import java.net.*; public class WebTest { public static void main(String[] args) { System.out.println("beging..."); DownLoadPages("http://login.xiaonei.com/Login.do", "d:/fileDown.txt"); // visit("http://www. ...
// OK, now we are ready to get the cookies out of the URLConnection String cookies = getCookies(httpConn); System.out.println(cookies); httpConn = (HttpURLConnection) newURL.openConnection(); httpConn.setRequestProperty("User-Agent", "Mozilla/5.0 (compatibl ...
String post = "email=" + URLEncoder.encode("e-mail", "UTF-8") + "&password=" + "password"; url = new URL(urlStr); httpConn = (HttpURLConnection) url.openConnection(); //setInstanceFollowRedirects can then be used to set if ...
当你将应用程序隐藏 缩小到一个系统托盘 此时候 你更希望点击一下他 然后应用程序又跳回原来的样子 你可以这样写 frame.setVisible(true); frame.setExtendedState(frame.NORMAL); frame.setAlwaysOnTop(true); 这样就显示出原来应用程序的接界面了 隐藏和最小化可以这样设置 frame.setVisible(false); frame.setExtendedState(frame.ICONIFIED);
import java.util.*; import java.io.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Test extends JFrame { public Test() { final TrayIcon trayIcon; if (SystemTray.isSupported()) { SystemTray tray = SystemTray.getSystemTray(); Image image = To ...
import javax.swing.*; import java.awt.event.*; public class TestPost { JFrame mainFrame; public TestPost() { mainFrame = new JFrame("JFrameDemo Title"); // 创建一个JFrame mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 设置关闭动作 mainFrame.setSize(300, 300);// 设置窗口大小 ...
Global site tag (gtag.js) - Google Analytics