public class FlowLayoutPosition extends JFrame{ public FlowLayoutPosition() { setTitle("本窗体使用流布局管理器"); Container c=getContentPane(); //设置窗体使用流布局,使用组件右 ...
分类:
编程语言 时间:
2016-05-22 20:00:00
阅读次数:
201
Day09 多媒体编程一、对话框1. 确定取消对话框
创建对话框构建器对象,类似工厂模式AlertDialog.Builder builder = new Builder(this);设置标题和正文builder.setTitle("警告");
builder.setMessage("若练此功,必先自宫");设置确定和取消按钮builder.setPositiveButton("现在自宫", new...
分类:
移动开发 时间:
2016-05-20 10:04:40
阅读次数:
341
public void bt_8(View v) { final ProgressDialog progressDialog=new ProgressDialog(this); progressDialog.setTitle("提示"); progressDialog.setMessage("请等待 ...
分类:
其他好文 时间:
2016-05-16 17:09:06
阅读次数:
169
一.进度对话框 ProgressDialog 1.用法 1-new progressDialog(Context) 2-setTitle (标题) 3-setMessage (信息) 4-show() 显示 5-setProgressStyle(ProgressDialog.STYLE_HORIZO ...
分类:
其他好文 时间:
2016-05-15 21:25:18
阅读次数:
250
importconsole;
console.setTitle("音乐目录查询");
varTabSR={
BOA="vivid";
SHE="starline";
M2M="prettyboy";
fir="lydia"
}
varTabPath={
BOA="G:\other\music\boa";
SHE="G:\other\music\SHE";
M2M="G:\other\music\M2M";
fir="G:\other\music\FIR";
}
do{
..
分类:
其他好文 时间:
2016-05-15 20:01:30
阅读次数:
111
一.进度对话框 ProgressDialog 1.用法 1-new progressDialog(Context) 2-setTitle (标题) 3-setMessage (信息) 4-show() 显示 5-setProgressStyle(ProgressDialog.STYLE_HORIZO ...
分类:
其他好文 时间:
2016-05-15 15:23:52
阅读次数:
191
一.进度对话框 ProgressDialog 1.用法 1-new progressDialog(Context) 2-setTitle (标题) 3-setMessage (信息) 4-show() 显示 5-setProgressStyle(ProgressDialog.STYLE_HORIZO ...
分类:
其他好文 时间:
2016-05-14 17:02:18
阅读次数:
113
一.单选对话框 1.不能直接实例化使用 2.使用内部构造器来生成对话框 3.new AlertDialog.Builder(context) 实例化构造器 1-setTitle (标题) 2-setMessage (消息) 3-按钮 1°确认按钮 setPositiveButton(“文字”,点击事 ...
分类:
其他好文 时间:
2016-05-13 23:18:40
阅读次数:
194
一.自定义对话框 1.不能直接实例化使用 2.使用内部构造器来生成对话框 3.new AlertDialog.Builder(context) 实例化构造器 1-setTitle (标题) 2-setMessage (消息) 3-按钮 1°确认按钮 setPositiveButton(“文字”,点击 ...
分类:
其他好文 时间:
2016-05-13 23:17:18
阅读次数:
292
var btn = UIButton(frame: CGRect(x: 200, y: 200, width: 100, height: 100)) btn.setTitle("jicheng", forState: UIControlState.Normal) //btn.setTitleColo ...
分类:
编程语言 时间:
2016-05-13 11:47:11
阅读次数:
425