Showing posts with label size. Show all posts
Showing posts with label size. Show all posts

Applets and Web Pages

So far I have been concentrating on applets. The applet is normally the entire web page. The HTML for the web page is merely to name the applet, and give it a size. However this is not normal. You usually have some other presentation in the HTML page. Therefore I did a more realistic project that integrated applet output with the markup from the HTML source.

I had an exercise from my textbook dealing with times. In Java, you can get the number of milliseconds since 1970. This feature has been encapsulated with the Date class. The default constructor of Date initializes the object to the current date and time. Use DateFormat to choose how you want to show the date. Even though the class is abstract, you can still call the static members.

Code Viewers

I just a neat blog entry by SteveChy on an alternative way to display Java code. Check out the example image he provided. Better yet, read the post yourself at his Free Ideo Monoid blog yourself.

The general idea is to avoid colorization to specify things in your code. Instead he will use size and positioning to convey meaning. Some of the ideas looked good.

It appears that this is just a prototype. Let's hope this guy follows through and releases an app to view and maybe even edit Java code. Good stuff.