相对于BoxLayout,GridBugLayut等常用的Swing
layout,CardLayout是特殊的,前者是一个容器内布置组件,而后者是在一个容器内放置很多页面(但一个时间只用显示一个)。比如需要制作Step by
Step的桌面程序,使用CardLayout就非常方便快捷。下面用代码说...
分类:
其他好文 时间:
2014-05-10 20:24:18
阅读次数:
376
// Test.cpp : 定义控制台应用程序的入口点。//#include
"../I_Timer.H"#include void onTimer1(){ std::cout createTimer();#if 1 auto
myTimer1 = /*Timer::createTime...
分类:
其他好文 时间:
2014-05-05 23:28:48
阅读次数:
341
1、从文件中读取内容
auto sharedFileUtils = FileUtils::getInstance();
std::string ret;
sharedFileUtils->purgeCachedEntries();
std::vector searchPaths = sharedFileUtils->getSearchPath...
分类:
其他好文 时间:
2014-05-04 00:09:23
阅读次数:
408
这是程序代码,我是按照网上和视频讲解的步骤写的代码:import
java.sql.*;public class jdbc {/*** @param args*/public static void main(String[]
args) {// TODO Auto-generated method...
分类:
数据库 时间:
2014-05-03 23:00:11
阅读次数:
385
最近看了一个AndroidQuery的框架,里面的Demo,有个界面,让博主很喜欢。左右滑动十分顺畅,手感很好,于是拿来和大家分享一下。先看一下效果图:从图中可以看出,上面的布局是一个Layout里面嵌套有个ViewPager,ViewPager中包含着Fragment,Fragment的布局文件包含了一个简单的GridView,GridView的Item布局很简单,就是一个100*100大小的图...
分类:
移动开发 时间:
2014-05-03 21:22:10
阅读次数:
657
1、deletefromtable_name一行一行删除,只删除表数据,auto_increament仍停留在最后一天数据的下一个值。2、truncatetable_name快捷删除表数据。先删除整个表,然后重新建表结构。auto_increament从1开始。
分类:
数据库 时间:
2014-05-03 20:34:16
阅读次数:
386
.cpp
layout->setBackGroundImageScale9Enabled(true);
layout->setBackGroundImage("green_edit.png");
layout->setPosition(Point(0,0));
addChild(layout);
...
分类:
其他好文 时间:
2014-05-03 16:30:56
阅读次数:
322
auto root = Dictionary::create();
auto string = String::create("string element value");
root->setObject(string, "string element key");
auto array = Array::create();
...
分类:
其他好文 时间:
2014-05-03 16:27:48
阅读次数:
380
.h
#include "cocos2d.h"
#include "cocos-ext.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"
USING_NS_CC;
USING_NS_CC_EXT;
using namespace ui;
RenderTexture* _target;
Vector _...
分类:
其他好文 时间:
2014-05-02 20:33:15
阅读次数:
370
Android用户界面设计:基本按钮
本文向你展示了在你的Android应用程序中创建一个简单的Button或ImageButton控件的步骤。首先,你会学到如何向你的布局文件中添加按钮控件。然后你会学习如何用两种方法处理用户对按钮的点击。最后,我们讨论Android中按钮控件一些其它的可用特性。
本文向你展示了在你的Android应用程...
分类:
移动开发 时间:
2014-05-02 04:57:22
阅读次数:
453