原文网址:http://blog.csdn.net/feng88724/article/details/6171450 本讲介绍一下Android基本组件:对话框AlertDialog。 API: 使用AlertDialog.Builder创建对话框需要了解以下几个方法: setTitle :为对话 ...
分类:
移动开发 时间:
2016-06-27 15:24:32
阅读次数:
220
怎么获取一个AlertDialog中的EditText中输入的内容? 怎么获取一个AlertDialog中的EditText中输入的内容? new AlertDialog.Builder(this) .setTitle("请输入") .setIcon(android.R.drawable.ic_di ...
分类:
其他好文 时间:
2016-06-21 17:05:49
阅读次数:
143
import java.awt.*; public class FrameHelo extends Frame{ public FrameHelo(String str) {super(str); setTitle(str); setBackground(Color.green); setLocat ...
分类:
其他好文 时间:
2016-06-21 15:42:57
阅读次数:
153
import java.awt.*;public class GridFlowout extends Frame { public GridFlowout (String str){ {setTitle(str); setBackground(Color.cyan); setLocation(100 ...
分类:
其他好文 时间:
2016-06-21 15:28:58
阅读次数:
159
在自定义返回按钮的时候,侧滑手势返回往往默认失效了,怎么让侧滑有效呢 UIButton *btn =[UIButton buttonWithType:UIButtonTypeCustom]; [btn setTitle:@"返回" forState:UIControlStateNormal]; [b ...
分类:
其他好文 时间:
2016-06-15 10:55:04
阅读次数:
119
HeyWeGo第四周项目总结 项目内容 使用java程序开发一款扫雷游戏 游戏项目规划: 项目进展 之前两周 界面的设计 setTitle("扫雷"):设定程序名称 setBackground(Color.WHITE):设定背景颜色 setSize(new Dimension(700, 700):设 ...
分类:
其他好文 时间:
2016-06-06 00:46:28
阅读次数:
172
CollapsingToolbarLayout包裹 Toolbar 的时候提供一个可折叠的 Toolbar,一般作为AppbarLayout的子视图使用。 当未折叠时显示的是大的Title,可以通过CollapsingToolbarLayout的setTitle()来设置,并通过setExpande ...
分类:
其他好文 时间:
2016-05-30 22:57:00
阅读次数:
184
实现:实现产生n个随机数,把n个随机数存入一个数组,对数组做去重,再排序,再使用table.left取出m个有序的数存入另一个数组并打樱附件是结果importconsole;
console.setTitle("IP_DHCP_list");
//产生num个随机数
varnum=console.getNumber("请输入整体ip地址个数(小于等..
分类:
其他好文 时间:
2016-05-26 19:05:31
阅读次数:
175
public class JTextAreaTest extends JFrame{ public JTextAreaTest() { setSize(200, 400); setTitle("定义自动换行的文本域"); setDefaultCloseOperation(WindowConstant ...
分类:
编程语言 时间:
2016-05-23 22:44:35
阅读次数:
241
public class AbsolutePosition extends JFrame{ public AbsolutePosition() { setTitle("本窗口使用绝对布局"); setLayout(null); setBounds(0, 0, 200, 150); Container ...
分类:
其他好文 时间:
2016-05-22 20:06:22
阅读次数:
129