Question: I like to build java WYSIWYG HTML to practice my or better learn Java swing all the simple swing layouts and simple components i understand , but what should i use to represent tables text place holders html graphic Div representation and so on.. they all have to have drag and drop icons that i drop to the main windows and reside it and move it for this what Java swing component shell i use?

Answer: 
This statement will cause an exception, or should:

```
NSLog(@"%@", screen.size.width);

```

The `width` property returns a `CGFloat`. You would need to change your log statement to:

```
NSLog(@"%f", screen.size.width);

```

If you want everything on one line:

```
NSLog(@"%f", [[[[UIScreen mainScreen] bounds] size] width]);

```
I would suggest:

```
   NSLog(@"%1.0f", [UIScreen mainScreen].bounds.size.width);

```

To get both height and width you can use [NSStringFromCGSize](http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/NSStringFromCGSize):

```
   NSLog(@"%@", NSStringFromCGSize([UIScreen mainScreen].bounds.size));

```