- 浏览: 85504 次
- 性别:
- 来自: 杭州
-
最新评论
-
futrueboy:
似乎有点不清楚,请大家原谅
Command Pattern(命令模式) -
futrueboy:
有什么问题,大家可以直说,欢迎发言!
Iterator Pattern(迭代模式) -
zhao3546:
这样做是可以的。
我试验过。
java HttpURLConnection 登录网站 -
jessdy:
随着WEB游戏越来越多,研究这种WEB外挂的人也越来越多
or ...
java HttpURLConnection 登录网站 -
dd350356750:
呵呵 。确实是个好东西。没试过不知道行不行。先用了。之前也 ...
java HttpURLConnection 登录网站
文章列表
// 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 ...
- 2008-09-11 15:14
- 浏览 2134
- 评论(0)
#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 ...
- 2008-09-11 09:41
- 浏览 8033
- 评论(0)
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. ...
- 2008-09-09 20:16
- 浏览 9743
- 评论(0)
// 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 ...
- 2008-09-09 20:14
- 浏览 2610
- 评论(0)
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);
- 2008-09-09 17:39
- 浏览 1561
- 评论(0)
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 ...
- 2008-09-09 16:25
- 浏览 1433
- 评论(0)
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);// 设置窗口大小
...
- 2008-09-09 16:21
- 浏览 7453
- 评论(0)