概述GUI(Graphical User Interface,图形化用户界面),Java中提供了两个包用于实现图形化用户界面,分别是java.Awt和javax.swing。其中Awt需要调用本地系统实现功能,属于重量级控件,不同系统中界面显示会有一些区别,因为其主要是依赖系统提供的接口。...
分类:
编程语言 时间:
2015-04-18 10:07:31
阅读次数:
258
Note.java 一个枚举类
package Lesson8Polymorphism.music;
public enum Note
{
MIDDLE_C, C_SHARP, B_FLAT;
}
music5.java
/**
* 书本:《Thinking In Java》
* 功能:接口
* 文件:Music.java
* 时间:2015年4月2日16:50:48
* 作...
分类:
编程语言 时间:
2015-04-18 08:43:33
阅读次数:
155
一:利用代理传值,就是利用代理进行通信。接口文件:#import @protocol Cdelegate -(void)change:(NSString *)name;@end.h文件@interface ViewController : UIViewController.m文件- (IBActio...
分类:
移动开发 时间:
2015-04-18 01:11:59
阅读次数:
289
1:在不同的controllerview之间通过对象进行传值 //传值方向 从A到B //A控制器界面://// ViewController.h// Index//#import #import "Person.h"@interface ViewController : UIViewContr.....
分类:
移动开发 时间:
2015-04-18 01:09:01
阅读次数:
201
(1)/** * This interface represents an ordered set of characters and defines the * methods to probe them.描述有序字符序列的接口。定义了探测这个序列的方法。 */public interface C...
分类:
其他好文 时间:
2015-04-17 20:20:00
阅读次数:
181
#import "ViewController.h"
@interface
ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoad];
// 1.UIBu...
分类:
其他好文 时间:
2015-04-17 18:25:47
阅读次数:
140
Android JNI (Java Native Interface)就是为了实现java 与其他语言相互调用的语言。当然在Android就是为了跟C,C++的调用。在Linux ,Mac中Java最后调用的就是.so的文件,在Window中就是.dll文件。
那么Java到C怎么对应起来?调用Java的哪个方法就是C中的哪个方法呢?通过在Java类中声明native的方法就开始了。
新建一个...
分类:
移动开发 时间:
2015-04-17 18:24:12
阅读次数:
157
Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources an...
分类:
移动开发 时间:
2015-04-17 18:11:24
阅读次数:
271
先见一个遮盖类1.h文件#import CGPoint CGRectGetCenter(CGRect rect);CGRect CGRectMoveToCenter(CGRect rect, CGPoint center);@interface UIView (ViewFrameGeometry)@...
分类:
其他好文 时间:
2015-04-17 17:56:28
阅读次数:
146
看看下面的程序有什么问题:BNRItem.h@interface BNRItem : NSObject@property (nonatomic, strong) BNRItem *containedItem;@property (nonatomic, strong) BNRItem *contain...
分类:
其他好文 时间:
2015-04-17 17:35:13
阅读次数:
110