HTML Component

The rapid growth of HTML as a basic application platform makes displaying web content a topical question for many developers and designers, whether this content is various web sites or static HTML pages. Therefore, the need has arisen to create a reusable HTML component that can be repeatedly used by different applications and modified according to current business needs. The Java™ platform enables all functionalities to create such cross-platform encapsulation. The HTML...

Friday, May 30, 2008 | Java | Read More

Tutorial Examples and Model View Controller (MVC) Design

On the Java Tutorials Community Portal forum, developer Arjan Vermeij recently posted an update to an old Swing demo -- SliderDemo3. (Actually, he first posted his demo some time ago on a different forum, but I asked him to post it on our forum.) I'm sure many of you are familiar with Model-View-Controller (MVC) design. If you aren't, the purpose of MVC design is to separate the data and logic from the GUI, or the display, of an application. In fact, Arjan has...

Thursday, May 8, 2008 | Java | Read More

Books about Java

Most of you are aware that the Java Tutorial is available as a published book, but sometimes we are asked what portion of the website is included in the published book. The answer to that can be found on the tutorial's main page, but sometimes people miss the information. If you look at the tutorial's main page, you will see the section titled Trails Covering the Basics. Everything listed in that section is included in the printed book. I should add that, as of the last...

Wednesday, April 16, 2008 | Java | Read More

Translucent and Shaped Windows

If we've heard it once, we've heard it a thousand times. Developers want the ability to create translucent windows and shaped windows. Or perhaps shaped windows that are translucent. :-) Have you heard that this feature is now available? In the update 10 release of JDK 6, you can now create uniformly translucent, or per-pixel translucent (gradient, anyone?) windows. Or you can apply a shape to a non-decorated window. You will need release 6u10, build 12 or later, which is...

Monday, April 7, 2008 | Java | Read More

Tutorial Feedback Question - Preferred Position of Array Brackets

We received the following question this week on the tutorial feedback alias: In some places, one comes across: public static void main(String[] args) while at other places it is: public static void main(String args[]) Which is 'recommended' and why? I know that the preferred form is String[] args, but I decided to go to the source to find out why. In this case, that would be Alex Buckley, lead of the JLS (Java Language Specification) and JVMS (Java Virtual Machine...

Tuesday, October 23, 2007 | Java | Read More

Beans Binding

Did you ever dream of coding pairs of components that are bound by their properties? Your dreams are going to come true. With the new Beans Binding functionality (JSR 295) you can synchronize two properties of Java Beans™ components. Thus, you will be able to connect various components embodied in the Swing library, for example, the value of a text field (a JTextField component) and the current position of the slider (a JSlider component).Another example could be...

Wednesday, October 10, 2007 | Java | Read More

Visit the Oracle Blog


Contact Us


Integrated Cloud Applications & Platform Services